From fefe0b489d6235482265456805c1312e079661ad Mon Sep 17 00:00:00 2001 From: jfederico Date: Thu, 13 Feb 2020 16:38:12 -0500 Subject: Added steps for building custom image --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 4a4d00c..055bc86 100644 --- a/README.md +++ b/README.md @@ -170,3 +170,23 @@ bundle exec rake servers:enable["SERVER_ID_AS SHOWN"] ``` For more information on what rake commands can be executed, see scalelite documentation. + +### Special cases + +#### Build your own image + +If you don;t have access to the DockerHub registry, you can always build your own image. Either by running `docker build` where scalelite code is placed, or using the build script provided in this repo at `scripts/build.sh`. The only advantage of using the script is that the last commit is included as the build number. + +``` +cd /scalelite +docker build -t blindsidenetwks/scalelite:latest . +``` + +or + +``` +cd /scalelite +../scalelite-run/scripts/build.sh blindsidenetwks/scalelite latest +``` + +Keep in mind that the docker-compose.yml script makes use of some other configuration files that are mounted inside the containers. If any modification to nginx is needed it has to be done on the sites.template file. Also, whatever name is chosen for the image should match the one used in docker-compose.yml. -- cgit v1.2.3