Code Monkey home page Code Monkey logo

divio-docker-base's Introduction

divio/base

Base images for Python projects deployed on Divio Cloud.

Locally build an image

To locally build an image, run the following command:

./build.py --repo divio/base --tag 0.00-py3.6-alpine3.7 build

Check ./build.py --help for additional information.

Test all images

You can build and test all images locally by running:

ls -d py* | xargs -I '{}' ./build.py --repo divio/base --target=prod --tag test-{} build
ls -d py* | xargs -I '{}' ./build.py --repo divio/base --target=dev --tag test-{} build
ls -d py* | xargs --open-tty -I '{}' ./build.py --repo divio/base --target=dev --tag test-{} test

Release process

Tag commits with the desired Docker image tag, in the form:

git tag <version>-<flavour>

For your convenience, the release.py script can be used to streamline the tagging operations:

./release.py versions --next=minor py*

The command outputs the new tags which would be applied to the repository. Once asserted the result is correct, re-run the command with the --tag flag:

./release.py versions --next=minor --tag py*

Then push the tags to GitHub to trigger an automatic build on Docker Cloud:

git push --tags github

Please note that GitHub will not trigger webhooks when pushing more than 2 tags at the same time. When more than two images are updated, push using:

./release.py versions --push=github --last py*

Adding a new base image

Add a directory at the root containing an appropriate Dockerfile`. The image will be tagged as divio/base:<version>-<directory-name>.

Marking an image as EOL

To mark an image as EOL, just rename its folder by adding the EOL- prefix.

divio-docker-base's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.