Skip to content

Commit

Permalink
docs: Custom container doc update (#4054)
Browse files Browse the repository at this point in the history
* Updating curl

* Updating docs for custom image

* Updating docs for custom image

* fixing note

* some style change

* Update runatlantis.io/docs/deployment.md

Co-authored-by: Rui Chen <[email protected]>

---------

Co-authored-by: Rui Chen <[email protected]>
  • Loading branch information
jamengual and chenrui333 authored Dec 14, 2023
1 parent f95e8db commit a8bd38f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions runatlantis.io/docs/custom-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ by CDKTF will be add to the Atlantis modified file list.
# Dockerfile
FROM ghcr.io/runatlantis/atlantis:v0.19.7
USER root
RUN apk add npm && npm i -g cdktf-cli
```

Expand Down
5 changes: 5 additions & 0 deletions runatlantis.io/docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,14 @@ If you need to modify the Docker image that we provide, for instance to add the
FROM ghcr.io/runatlantis/atlantis:{latest version}
# copy a terraform binary of the version you need
USER root
COPY terragrunt /usr/local/bin/terragrunt
```
Beginning with version 0.26.0, the Atlantis image has been updated to run under the atlantis user, replacing the previous root user configuration. This change necessitates adjustments in existing container definitions and scripts to accommodate the new user settings. In scenarios where additional packages from other images are required, users can temporarily switch to the root user by inserting USER root in the Dockerfile. Following the installation of necessary packages, it is advisable to revert to the atlantis user for initiating the Atlantis service.
Additionally, the /docker-entrypoint.d/ directory offers a flexible option for introducing extra scripts to be executed prior to the launch of the Atlantis server. This feature is particularly beneficial for users seeking to customize their Atlantis instance without the need to develop a dedicated pipeline.
**Important Notice**: There is a critical update regarding the data directory in Atlantis. In versions prior to 0.26.0, the directory was configured to be accessible by the root user. However, with the transition to the atlantis user in newer versions, it is imperative to update the directory permissions accordingly in your current deployment when upgrading to a version later than 0.26.0. This step ensures seamless access and functionality for the atlantis user.
1. Build your Docker image
```bash
docker build -t {YOUR_DOCKER_ORG}/atlantis-custom .
Expand Down

0 comments on commit a8bd38f

Please sign in to comment.