Self Hosted

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:

  1. ARTIFACTS_LOGIN = <your-app-id>

  2. 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).

Testing deployment using Docker compose

Create docker compose file in a workspace on your computer.

Run docker and type:

The application should be available at URL:

Last updated

Was this helpful?