Docker
Docker is the recommended way to run imulup. The images include the Pulumi CLI and language runtimes, and they come with privilege separation already set up.
Images
Section titled “Images”Images are published to ghcr.io/imulup/imulup for linux/amd64 and linux/arm64. There is a “full” variant with
every Pulumi language runtime, and a slim variant per language:
| Tag | Base | Size (arm64) |
|---|---|---|
<version>, latest |
pulumi/pulumi (all languages) |
~14 GB |
<version>-nodejs, nodejs |
pulumi/pulumi-nodejs |
~1.2 GB |
<version>-python, python |
pulumi/pulumi-python |
~0.8 GB |
<version>-go, go |
pulumi/pulumi-go |
~0.8 GB |
<version>-dotnet, dotnet |
pulumi/pulumi-dotnet |
~1.4 GB |
<version>-java, java |
pulumi/pulumi-java |
~1.8 GB |
<version> has no v prefix, for example 0.4.0-python. Pin a version tag in production so an upgrade only
happens when you choose it.
Every variant uses the same Pulumi CLI version. Pulumi YAML programs work in any variant.
What’s in the image
Section titled “What’s in the image”-
/usr/local/bin/imulupis the entrypoint. Pass flags as arguments, or setIMULUP_*environment variables. -
IMULUP_DATA_DIR=/datais declared as a volume. It holds the lock state, git mirrors and PR checkouts. -
Port
4141is exposed. -
There are two users:
imulup(uid 10001) runs the server.imulup-runner(uid 10002, home/home/imulup-runner) runs checkouts and workflow steps.
The image sets
IMULUP_SERVER_USERandIMULUP_STEP_USERto these users. The container must start as root: imulup reads its secrets and prepares/data, and then drops toimulup.
Steps run as imulup-runner, so they can’t install packages system-wide. Install dependencies into the project or
the runner’s home directory instead: a virtualenv, pip install --user, a local node_modules, and so on. See
Workflows.
Docker Compose
Section titled “Docker Compose”The repository has a ready-made Compose setup in deploy/:
cp deploy/.env.example deploy/.env # fill in the valuescp ~/Downloads/your-app.private-key.pem deploy/github-app.pemchmod 600 deploy/github-app.pemdocker compose -f deploy/compose.yaml up -dcompose.yaml looks like this:
services: imulup: image: ghcr.io/imulup/imulup:python restart: unless-stopped env_file: .env environment: IMULUP_DATA_DIR: /data RUST_LOG: ${RUST_LOG:-info} ports: - "${IMULUP_PUBLISH_PORT:-4141}:4141" volumes: - imulup-data:/data secrets: - gh_app_key healthcheck: test: ["CMD", "curl", "-fsS", "http://localhost:4141/healthz"] interval: 30s timeout: 5s retries: 3 start_period: 10s
volumes: imulup-data:
secrets: gh_app_key: file: ./github-app.pemAnd this is the minimum .env for a GitHub App:
IMULUP_GH_APP_ID=123456IMULUP_GH_APP_KEY_FILE=/run/secrets/gh_app_keyIMULUP_GH_WEBHOOK_SECRET=...IMULUP_REPO_ALLOWLIST=my-org/infraPULUMI_ACCESS_TOKEN=...If you authenticate with a token instead, set IMULUP_GH_TOKEN and IMULUP_GH_USER, and
remove both secrets: blocks.
To put imulup behind a reverse proxy on the same host, publish it on loopback only with
IMULUP_PUBLISH_PORT=127.0.0.1:4141. See Running in production.
docker run
Section titled “docker run”docker run -d --name imulup -p 4141:4141 \ -e IMULUP_GH_APP_ID -e IMULUP_GH_WEBHOOK_SECRET -e IMULUP_REPO_ALLOWLIST -e PULUMI_ACCESS_TOKEN \ -e IMULUP_GH_APP_KEY_FILE=/run/secrets/app.pem \ -v /etc/imulup/app.pem:/run/secrets/app.pem:ro \ -v imulup-data:/data \ ghcr.io/imulup/imulup:0.4.0-pythonBuilding the images
Section titled “Building the images”The images are built from one Dockerfile with Bake. PULUMI_VERSION in
docker-bake.hcl pins the Pulumi CLI for every variant.
docker buildx bake --load # all variants for the local platformdocker buildx bake --load nodejs # just oneVERSION=0.4.0 REGISTRY=ghcr.io/acme docker buildx bake --push \ --set '*.platform=linux/amd64,linux/arm64'To add tools your workflows need, such as a cloud CLI, build on top of a published image:
FROM ghcr.io/imulup/imulup:0.4.0-nodejsRUN apt-get update && apt-get install -y --no-install-recommends awscli \ && rm -rf /var/lib/apt/lists/*