More about deploying Adapptio on your own infrastructure.
First you need to obtain token allows you to access Adapptio repository. For this, please, contact us.
Building image with GitLab CI/CD pipeline
Create new repositry
Once you have created a new repository, you also need to add several variables to your pipeline. Go to the CI/CD Gitlab settings (Settings -> CI/CD -> Variables) and add:
ARTIFACTS_LOGIN = <your-app-id>
ARTIFACTS_TOKEN = <obtained-token>
Dockerfile
Add to your repository this dockerfile.
prod.Dockerfile
ARG BASE_TAG
FROM ${BASE_IMAGE}:${BASE_TAG} as runtime
ARG BLUEPRINTS_DIR
# add blueprints
RUN rm -rf ./repo
ADD ${BLUEPRINTS_DIR} ./repo
CI/CD pipeline
And finaly add the CI/CD files and fill all the variables in the .param.yaml and .gitlab-ci.yaml file (section between lines 16 and 24).
.params.yaml
variables:
# Change this to update Adapptio runtime image
# Example "v9597de1b-master"
BASE_TAG: "<adapptio-image-version>"
# Change this to update application version
# Example: "v3"
BLUEPRINT_TAG: "<application-version>"