pulumi/dist/actions/Dockerfile
Chris Smith 0ede30fdb6
Build/Push pulumi/actions container with new SDK releases (#2646)
* Build/Push pulumi/actions container with new SDK releases

* Address PR feedback
2019-04-18 15:32:19 -07:00

31 lines
1.3 KiB
Docker

ARG PULUMI_VERSION=latest
FROM pulumi/pulumi:${PULUMI_VERSION}
# Extend the base pulumi/pulumi container at a specific version. "latest"
# will always correspond to the most recently released SDK.
# Label things so it lights up in GitHub Actions!
LABEL "com.github.actions.name"="Pulumi"
LABEL "com.github.actions.description"="Deploy apps and infra to your favorite cloud!"
LABEL "com.github.actions.icon"="cloud-lightning"
LABEL "com.github.actions.color"="purple"
# pulumi/actions contains documentation, examples. The actual container image is at
# https://github.com/pulumi/pulumi.
LABEL "repository"="https://github.com/pulumi/actions"
LABEL "homepage"="http://pulumi.io/reference/gh-actions.html"
# Install deps not already included in base container image.
RUN apt-get update -y && \
apt-get install -y jq
# Copy the entrypoint script.
COPY ./entrypoint.sh /usr/bin/pulumi-action
# The app directory should contain the Pulumi program and is the pwd for the CLI.
WORKDIR /app
VOLUME ["/app"]
# This image uses a thin wrapper over the Pulumi CLI as its entrypoint. As a result, you may run commands
# simply by running `docker run pulumi/pulumi up` to run the program mounted in the `/app` volume location.
ENTRYPOINT ["/usr/bin/pulumi-action", "--non-interactive"]