Continuous Deployment using Git & Docker
245
This image is available for pulling from Docker Hub.
Launch this container with the following environment variables to suit your situation:
Running this container is as simple as running the following command:
docker run -d \
-e GIT_REPO="https://github.com/my/repo.git" \
-e GIT_BRANCH="release-1.0.0" \
-e DOC_ROOT="/web" \
dortort/continuous-deployment:php
The following example uses a Bitbucket.org deployment key.
FROM dortort/continuous-deployment:php
RUN apt-get update \
&& apt-get install -y openssh-client --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /root/.ssh && ssh-keyscan -t rsa bitbucket.org >> /root/.ssh/known_hosts
COPY ssh_config /root/.ssh/config
COPY ssh_key /root/.ssh/key
RUN chmod 0600 /root/.ssh/key
ENV GIT_REPO="ssh://[email protected]/my/repo.git"
ENV GIT_BRANCH="master"
ENV DOC_ROOT="/web"
Content type
Image
Digest
sha256:ecc4a37d5…
Size
168 MB
Last updated
almost 11 years ago
docker pull dortort/continuous-deployment:php