File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ install_dependency: &install_dependency
9
9
sudo apt update
10
10
sudo apt install python3-pip
11
11
sudo pip3 install awscli --upgrade
12
- sudo pip3 install docker==6.1.3
13
- sudo pip3 install docker-compose
12
+ # sudo pip3 install docker==6.1.3
13
+ # sudo pip3 install docker-compose
14
14
15
15
install_deploysuite : &install_deploysuite
16
16
name : Installation of install_deploysuite.
Original file line number Diff line number Diff line change @@ -10,5 +10,20 @@ set -eo pipefail
10
10
# sed -i='' "s|submissions-api:latest|$TAG|" docker/docker-compose.yml
11
11
echo " " > docker/api.env
12
12
docker-compose -f docker/docker-compose.yml build submissions-api
13
- docker images
13
+ # docker images
14
+ docker create --name app submissions-api:latest
15
+ if [ -d node_modules ]
16
+ then
17
+ mv package-lock.json old-package-lock.json
18
+ docker cp app:/submissions-api/package-lock.json package-lock.json
19
+ set +eo pipefail
20
+ UPDATE_CACHE=$( cmp package-lock.json old-package-lock.json)
21
+ set -eo pipefail
22
+ else
23
+ UPDATE_CACHE=1
24
+ fi
14
25
26
+ if [ " $UPDATE_CACHE " == 1 ]
27
+ then
28
+ docker cp app:/submissions-api/node_modules .
29
+ fi
You can’t perform that action at this time.
0 commit comments