-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
80 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
# set up the system for the first time | ||
|
||
set -eo pipefail | ||
cd "$(dirname "${BASH_SOURCE[0]}")/../data" | ||
|
||
if [[ -f "config.toml" ]]; then | ||
echo "config.toml already exists; skipping" | ||
else | ||
echo "creating config.toml from config.example.toml" | ||
cp config.example.toml config.toml | ||
fi | ||
|
||
if [[ -f "ssh_host_key" ]]; then | ||
echo "ssh_host_key already exists; skipping" | ||
else | ||
echo "generating ssh_host_key" | ||
ssh-keygen -f ssh_host_key -t rsa -b 4096 -N "" | ||
fi | ||
|
||
cd ../docker | ||
echo "building base image" | ||
docker compose build base-image | ||
echo "pulling service images" | ||
docker compose pull --ignore-buildable | ||
cd ../etc | ||
echo "initializing database" | ||
./cli.sh db create --seed | ||
./user.sh db create --seed | ||
echo "building static web site" | ||
./build-web.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters