-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathup.sh
More file actions
executable file
·23 lines (19 loc) · 726 Bytes
/
up.sh
File metadata and controls
executable file
·23 lines (19 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -euo pipefail
if [ -f secrets.env.template ]
then
echo "It looks like you are using old environment variables setup"
echo "Read \"./docs/env-migrate.md\" on how to move into the new system."
exit 1
fi
if [ -f docker-compose.yml.envs ]
then
echo "It looks like you are using old environment variables setup"
echo "Read \"./docs/env-migrate.md\" on how to move into the new system."
exit 1
fi
sudo docker build -f Dockerfile.template -t gen . && docker run -it -v $(pwd):/gen -t gen
# docker compose by default reads `.env` file
# so no need to pass it as an option
DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 sudo docker compose build --parallel --progress=plain && \
sudo docker compose up -d