Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 9987887

Browse files
author
Glen Pike
committed
Tweak install deps script to allow installers to be run in series as well as parallel
1 parent b624bcb commit 9987887

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ git clone https://github.com/CoderDojo/cp-local-development.git && cd cp-local-d
4141
./install_deps.sh
4242
```
4343

44+
The dependency script runs all of the installations in parallel which may have issues on some machines / networks. For a slower, but steadier way, use the following:
45+
46+
```
47+
./install_deps.sh --series
48+
```
49+
4450
You may have permission errors on Windows in which case you need to change
4551
ownership to yourself.
4652

install_deps.sh

+14-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,17 @@
22

33
set -e
44

5-
docker-compose -f docker-compose.yarn.yml up
6-
docker-compose -f docker-compose.yarn.yml down
5+
if [[ "$1" == "--series" ]];
6+
then
7+
containers=("zen" "frontend" "badges" "dojos" "events"
8+
"eventbrite" "organisations" "users" "events_service"
9+
"users_service" "clubs_service" "email_service")
10+
11+
for container in ${containers[@]};
12+
do
13+
docker-compose -f docker-compose.yarn.yml run yarn_${container}
14+
done
15+
else
16+
docker-compose -f docker-compose.yarn.yml up
17+
docker-compose -f docker-compose.yarn.yml down
18+
fi

0 commit comments

Comments
 (0)