From e9ea788d21ac7775ac2f5842f3861d3915f5ee9b Mon Sep 17 00:00:00 2001 From: Luke Kysow <1034429+lkysow@users.noreply.github.com> Date: Wed, 28 Nov 2018 15:40:48 -0600 Subject: [PATCH] Deployment docs for OpenShift. After merging https://github.com/runatlantis/atlantis/pull/346, we now support OpenShift however users need an additional flag to atlantis server for it to work. --- runatlantis.io/docs/deployment.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/runatlantis.io/docs/deployment.md b/runatlantis.io/docs/deployment.md index dd7c70ed7..54a6d439d 100644 --- a/runatlantis.io/docs/deployment.md +++ b/runatlantis.io/docs/deployment.md @@ -526,6 +526,13 @@ If you want to add SSL you can use something like [https://github.com/jetstack/c certs and mount them into the Pod. Then set the `ATLANTIS_SSL_CERT_FILE` and `ATLANTIS_SSL_KEY_FILE` environment variables to enable SSL. You could also set up SSL at your LoadBalancer. +### OpenShift +The Atlantis Docker image is compatible with OpenShift, however you need to run +with an additional flag: `--data-dir=/home/atlantis`. This is required because +OpenShift runs Docker images with random user id's that use `/` as their home directory. +Since Atlantis defaults to using the home directory as its data dir and `/` doesn't have the correct permissions, +you need to set `--data-dir` or the environment variable `ATLANTIS_DATA_DIR` to `/home/atlantis`. + ## AWS Fargate If you'd like to run Atlantis on [AWS Fargate](https://aws.amazon.com/fargate/) check out the Atlantis module on the Terraform Module Registry: https://registry.terraform.io/modules/terraform-aws-modules/atlantis/aws