{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Step 5 - Deploy and run the Web Processing Service locally" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now that the data transformation application is ready, let's deploy it locally and expose the service as a Web Processing Service." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* Using the Jupyter Lab Launcher, open a Terminal and type:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "```bash\n", "APP_NAME=\n", "cd /workspace/${APP_NAME}\n", "```\n", "\n", "* Type the command:\n", "\n", "``` bash\n", "mvn clean install\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The command above deploys the data transformation application files under the `/application` folder. A listener process will read the `application.xml` content, build and expose the OGC WPS interface." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* Open a browser, and type the `` value of your Ellip Workflows VM,\n", "* See the Welcome page and click on the **User Dashboard** link:\n", "\n", "![Ellip Workflows landing page](artifacts/step-5-landing.png)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* Click on the **Invoke** tab:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "![Ellip Workflows dashboard page](artifacts/step-5-dashboard.png)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* See the data transformation application's name in the *Process List* and click on it:\n", "\n", "![Data transformation Web Processing Service deployed locally](artifacts/step-5-wps.png)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* Scroll down and click on **Run Process** to launch the data transformation application. It will:\n", " * Download the Sentinel-1 product,\n", " * Instantiate the input.ipynb notebook (saved as result.ipynb),\n", " * Execute it,\n", " * Publish the results generated." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* Wait for the conclusion of the process:\n", "\n", "![Data transformation Web Processing Service running](artifacts/step-5-wps-running.png)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* When completed, see a page similar to:\n", "\n", "![Data transformation Web Processing Service completed](artifacts/step-5-wps-success.png)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* Click on the link under the **Last Jobs** section and see the results produced:\n", "\n", "![Data transformation Web Processing Service results](artifacts/step-5-result-list.png)\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Next step" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The next step, [Step 6 - Release the data transformation application](step-5.ipynb), will use the `ciop-release` utility to create a release of the data transformation application." ] } ], "metadata": { "kernelspec": { "display_name": "Python 2", "language": "python", "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.12" } }, "nbformat": 4, "nbformat_minor": 2 }