Sign inSign up

ind9/python-stack

By ind9

•Updated almost 10 years ago

Docker container for building python based apps in a build server that can be deployed on marathon

Image
0

2.3K

ind9/python-stack repository overview

⁠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.

Tag summary

Content type

Image

Digest

Size

169.6 MB

Last updated

almost 10 years ago

docker pull ind9/python-stack