Kaynağa Gözat

Added steps for building custom image

master
jfederico 4 yıl önce
ebeveyn
işleme
fefe0b489d
1 değiştirilmiş dosya ile 20 ekleme ve 0 silme
  1. 20
    0
      README.md

+ 20
- 0
README.md Dosyayı Görüntüle

@@ -170,3 +170,23 @@ bundle exec rake servers:enable["SERVER_ID_AS SHOWN"]
170 170
 ```
171 171
 
172 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…
İptal
Kaydet