Browse Source

Added steps for building custom image

master
jfederico 4 years ago
parent
commit
fefe0b489d
1 changed files with 20 additions and 0 deletions
  1. 20
    0
      README.md

+ 20
- 0
README.md View File

170
 ```
170
 ```
171
 
171
 
172
 For more information on what rake commands can be executed, see scalelite documentation.
172
 For more information on what rake commands can be executed, see scalelite documentation.
173
+
174
+### Special cases
175
+
176
+#### Build your own image
177
+
178
+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.
179
+
180
+```
181
+cd <YOUR ROOT>/scalelite
182
+docker build -t blindsidenetwks/scalelite:latest .
183
+```
184
+
185
+or
186
+
187
+```
188
+cd <YOUR ROOT>/scalelite
189
+../scalelite-run/scripts/build.sh blindsidenetwks/scalelite latest
190
+```
191
+
192
+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.

Loading…
Cancel
Save