-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathdocker_start.sh
More file actions
executable file
·45 lines (36 loc) · 949 Bytes
/
docker_start.sh
File metadata and controls
executable file
·45 lines (36 loc) · 949 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
# starts the dev server with Docker
# _ _ ____ ____
# | | | |/ ___| __ )
# | |_| | | | _ \
# | _ | |___| |_) |
# |_| |_|\____|____/
echo "
@HCB@@@@@HCB@
T S
H $ T
E A C A
B H K R
U © H A T
C C K C S
K L U B H
@ HCB HCB HCB E
@ @
HACK FOUNDATION
HCB, A Hack Club Project
© The Hack Foundation
"
echo "Thank you for developing HCB!
"
if [[ $* == *--with-solargraph* ]]
then
docker compose -f docker-compose.yml -f docker-compose.solargraph.yml up -d solargraph
else
echo "To enable Solargraph, run docker_start.sh with the --with-solargraph flag."
fi
# strip --with-solargraph and pass the remaining args to docker compose run
ARGS=()
for arg in "$@"; do
[[ "$arg" != "--with-solargraph" ]] && ARGS+=("$arg")
done
docker compose run --service-ports web "${ARGS[@]}"