Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
chore: add python27 dockerfile (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
oremj authored and bbangert committed Jul 13, 2016
1 parent 058c601 commit bfc4f16
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
14 changes: 14 additions & 0 deletions Dockerfile.python27
@@ -0,0 +1,14 @@
FROM python:2.7

RUN mkdir -p /app
COPY . /app

WORKDIR /app

RUN \
apt-get install -y -qq libexpat1-dev gcc libssl-dev libffi-dev && \
make clean && \
pip install -r requirements.txt && \
python setup.py develop

CMD ["autopush"]
13 changes: 10 additions & 3 deletions circle.yml
Expand Up @@ -22,7 +22,10 @@ dependencies:
"$CIRCLE_PROJECT_REPONAME"
"$CIRCLE_BUILD_URL"
> version.json
- docker build -t app:build .
- docker build -t app:buildpypy .

- docker build -f ./Dockerfile.python27 -t app:build27 .

# write the sha256 sum to an artifact to make image verification easier
- docker images --no-trunc | awk '/^app/ {print $3}' | tee $CIRCLE_ARTIFACTS/docker-image-shasum256.txt
Expand All @@ -38,8 +41,10 @@ deployment:
commands:
- "[ ! -z $DOCKERHUB_REPO ]"
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- "docker tag app:build ${DOCKERHUB_REPO}:latest"
- "docker tag app:build27 ${DOCKERHUB_REPO}:latest"
- "docker tag app:buildpypy ${DOCKERHUB_REPO}:latest-pypy"
- "docker push ${DOCKERHUB_REPO}:latest"
- "docker push ${DOCKERHUB_REPO}:latest-pypy"

hub_releases:
# push all tags
Expand All @@ -48,6 +53,8 @@ deployment:
- "[ ! -z $DOCKERHUB_REPO ]"
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- "echo ${DOCKERHUB_REPO}:${CIRCLE_TAG}"
- "docker tag app:build ${DOCKERHUB_REPO}:${CIRCLE_TAG}"
- "docker tag app:build27 ${DOCKERHUB_REPO}:${CIRCLE_TAG}"
- "docker tag app:buildpypy ${DOCKERHUB_REPO}:${CIRCLE_TAG}-pypy"
- "docker images"
- "docker push ${DOCKERHUB_REPO}:${CIRCLE_TAG}"
- "docker push ${DOCKERHUB_REPO}:${CIRCLE_TAG}-pypy"

0 comments on commit bfc4f16

Please sign in to comment.