Go to file
Michael Bradley, Jr 48b854f7f1 simplify use of -e 2018-07-24 17:18:25 -05:00
script Add readme; build/release script 2018-07-11 09:30:32 -04:00
.bash_env "dot." -> "." -- allows more compact docker COPY 2018-07-24 15:23:47 -05:00
.bash_env_nvm_load "dot." -> "." -- allows more compact docker COPY 2018-07-24 15:23:47 -05:00
.bash_env_nvm_unload "dot." -> "." -- allows more compact docker COPY 2018-07-24 15:23:47 -05:00
.bashrc "dot." -> "." -- allows more compact docker COPY 2018-07-24 15:23:47 -05:00
.npmrc "dot." -> "." -- allows more compact docker COPY 2018-07-24 15:23:47 -05:00
Dockerfile linebreak 2018-07-24 16:39:53 -05:00
README.md Typo-- 2018-07-11 14:57:03 -04:00
docker-entrypoint.sh docker + user entry 2018-07-24 15:24:37 -05:00
install-extras.sh script (not run during build) for adding some cli tools 2018-07-24 15:24:44 -05:00
run.sh simplify use of -e 2018-07-24 17:18:25 -05:00
user-entrypoint.sh docker + user entry 2018-07-24 15:24:37 -05:00

README.md

Embark for Docker

Updating versions

  • Open Dockerfile
  • On the ENV directive, update necessary versions.

An exception to this is the NodeJS version, which needs to be updated in the FROM directive instead.

Building

Building requires Docker to be installed on your local machine.

Scripted

If you have Ruby installed in your system, run:

$ ruby script/build

To release, add --release as a parameter of the build script.

Manually

Building and releasing manually isn't too hard either, but there are a couple steps.

Tags

To facilitate the images being found, we tag them with the following rules (as an example, the 3.1.5 version will be used.)

  • Tag with statusim/embark:latest if 3.1.5 is the latest version.
  • Tag with statusim/embark:3.1.5
  • Tag with statusim/embark:3.1 if 3.1.5 is the highest patch level on 3.1
  • Tag with statusim/embark:3 if 3.1.5 is the highest minor and patch level on 3

Generating the image

To generate the image, run:

docker build . -t statusim/embark:<version> [...tags]

Releasing

Releasing requires that you're authenticated to Docker Hub. To do so, run:

$ docker login

Scripted

If you have Ruby installed in your system, run:

$ ruby script/build --release

Manual

Pushing the tags manually implies that the image has been previously built. To push your local images, run:

docker push statusim/embark:version