forked from GeospatialResearch/Digital-Twins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_docker.sh
30 lines (23 loc) · 888 Bytes
/
build_docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
## Sets any necessary pre-requisite folders and builds/pulls docker images.
## Uses the local repository as priority over published docker images.
# Pull docker images from online where available
docker compose pull
# Build images that are different from the online source
docker compose build
# Save images to tar for backup in case docker goes down
echo "Saving images to fredt.tar"
docker save -o fredt.tar \
postgis/postgis:16-3.4 \
lparkinson/backend-flood-resilience-dt:1.2 \
lparkinson/celery-flood-resilience-dt:1.2 \
lparkinson/www-flood-resilience-dt:1.2 \
lparkinson/geoserver-flood-resilience-dt:1.2 \
redis:7 \
echo "Saving docker build dependency images to build_dep.tar"
docker save -o build_dep.tar \
lparkinson/bg_flood:v0.9 \
continuumio/miniconda3:23.10.0-1 \
node:lts \
docker.osgeo.org/geoserver:2.21.2 \
nginx:stable