Build the application for the Production CentreΒΆ
The Production Centre uses Docker images and deploys them in a Cloud based environment for large scale production campaigns.
This notebook will trigger the build of a Docker image containing the data transformation application.
In [1]:
import sys
import os
sys.path.append('../helpers')
import ellip_helpers
%load_ext autoreload
%autoreload 2
%store -r
- Instantiate a build job
In [2]:
build = ellip_helpers.EllipBuild(os.path.join('../operations', 'configuration.ipynb'),
build_type='App',
jenkins_username=jenkins_username,
jenkins_api_key=jenkins_api_key)
- Check the build job information
In [3]:
print build.job
communities/Gitlab Groups/ec-better/eth-z/applications/ewf-ethz-01-02-01/docker
- Submit the build job
In [4]:
build.submit()
Out[4]:
7
In [ ]:
build.build_number
7
- Monitor the build request:
In [7]:
if build.monitor():
print 'Job build completed'
else:
raise Exception ('Job build failed')
Job build completed
At this stage, there is a Docker container with the data transformation ready to be deployed on a Production Centre. This is accomplished in the deploy step.