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

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

Notifications You must be signed in to change notification settings

ind9/python-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages