{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Step 6 - Release the data transformation application" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This step creates a release of the application leveraging the `ciop-release` utility to support the preparation of a new production release.\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`ciop-release` is a command-line utility that follows the [Gitflow workflow](https://nvie.com/posts/a-successful-git-branching-model/) and thus:\n", "\n", "* Creates a **'release'** branch created from the **'develop'** branch\n", "* Merges the **'release'** branch back into **'master'**\n", "* Tags the release with its name\n", "* Back-merges the release into **'develop'**\n", "* Removes the **'release'** branch\n", "* Puts the right content in the **'docker'** branch " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Once this step is concluded, the data transformation application is ready to be built and create a Docker image that can be instantiated in the Production Centre computing nodes." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* Using the JupyterLab Launcher, start a Terminal window and type the commands:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "```bash\n", "CLOUD_USERNAME=\n", "APP_NAME=\n", "export HOME=/home/${CLOUD_USERNAME}\n", "```\n", "\n", "```bash\n", "cd /workspace/${APP_NAME}\n", "git add -A .\n", "git commit -m \"First application version\"\n", "git push -u origin develop\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The steps above commit and push the data transformation application code to the **'develop'** branch of the software repository." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* Type the command below and follow the steps, confirm with 'Y' when asked and provide your Gitlab password when needed:\n", "\n", "```bash\n", "ciop-release\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* See, the following interface:\n", "\n", "\n", "![ciop-release output](artifacts/step-6-ciop-release-completed.png \"ciop-release output\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "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 }