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

Latest commit

 

History

History
17 lines (12 loc) · 1003 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 1003 Bytes

python-stack

Docker image that's used to build python apps using heroku compatible python buildpack. We use herokuish to run them. This is meant to be run as part of the build process in GoCD. The generated artifacts will be deployed on marathon.

Usage

We expect the app material to be mounted on /app inside the container. After launching the container, the final slug tarball will be available as app.tar.gz inside the material folder.

# Assuming the material is checkout into app folder in PWD
$ docker run -e USER_ID="$(id -u $(whoami))" -e GROUP_ID="$(id -g $(whoami))" -v $PWD/app:/app ind9/python-stack

Hooks

  • bin/pre_package - Run before the generating the slug tarball. Any changes to the directory structure will be reflected in the generated slug.

Note

We need to do that id foo while doing docker run because else the mounted directory would have root files which GoCD can't delete or overwrite on the next run.