Git Product home page Git Product logo

docker-base's Introduction

Reaction Docker Base Images

CircleCI

This repo contains general Docker images used by various Reaction Commerce projects. Refer to the specific image documentation.

Images:

Published Images

Every merge/push to trunk branch will rebuild all Dockerfiles and push them to DockerHub as part of the CircleCI workflow.

These are the published image tags:

Adding a New Image

In /images, add a new folder named whatever you want the image name to be. In that folder, add a subfolder for each version of the image. This could be based on a version of the FROM image, the version of a dependency that is installed in it, or whatever else makes sense for that image. Regardless, append -v1 to the version folder name so that changes can be made in the future and published with a new tag, even if the underlying version designator hasn't changed.

In each version folder, add a file named Dockerfile. In it, define the image you want to build. If you need to copy any scripts into your image and run them, put them in a subfolder named scripts alongside your Dockerfile. Alternatively, if multiple images need the same script, you can place it in /scripts at the project root. All files there are copied into the image-specific scripts folder before each image is built. To copy them into your image, add something like this line to your Dockerfile:

COPY ./scripts /usr/local/src/app-scripts

Building an Image

On your development computer, you can test building an image with this command:

./dockerfiles.sh build images/image-name/version/Dockerfile

Substitute the proper path to your Dockerfile.

If for some reason you want to test building all images, you can leave off the Dockerfile path:

./dockerfiles.sh build

Pushing an Image to DockerHub

The command ./dockerfiles.sh push will push all built images to DockerHub, but you need proper permissions. It's best to let CircleCI do this, which it does after every successful merge to trunk.

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.