update dev scripts
This commit is contained in:
parent
f72a025dfe
commit
e24eeebe24
2 changed files with 18 additions and 3 deletions
19
dev-setup.sh
19
dev-setup.sh
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
command_exists() { type "$1" &>/dev/null; }
|
||||||
|
|
||||||
|
./test.sh
|
||||||
|
|
||||||
rm -rf ./data/
|
rm -rf ./data/
|
||||||
mkdir -p ./data/{fedora-repo,librewolf,other-workspace}
|
mkdir -p ./data/{fedora-repo,librewolf,other-workspace}
|
||||||
|
@ -6,8 +11,16 @@ mkdir -p ./data/{fedora-repo,librewolf,other-workspace}
|
||||||
mkdir -p ./dev/{pgadmin,gregory-pg}
|
mkdir -p ./dev/{pgadmin,gregory-pg}
|
||||||
chmod -R 777 ./dev/pgadmin
|
chmod -R 777 ./dev/pgadmin
|
||||||
|
|
||||||
podman-compose down
|
if command_exists "docker-compose"; then
|
||||||
podman-compose -f podman-compose.dev.yml up -d
|
docker-compose -f podman-compose.dev.yml down
|
||||||
|
docker-compose -f podman-compose.dev.yml up -d
|
||||||
|
elif command_exists "podman-compose"; then
|
||||||
|
podman-compose -f podman-compose.dev.yml down
|
||||||
|
podman-compose -f podman-compose.dev.yml up -d
|
||||||
|
else
|
||||||
|
echo "[ERROR] neither docker-compose nor podman-compose were found"
|
||||||
|
exit 127
|
||||||
|
fi
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
---
|
---
|
||||||
|
@ -19,4 +32,4 @@ echo 'pgadmin login:
|
||||||
echo 'pgadmin settings:
|
echo 'pgadmin settings:
|
||||||
Hostname: "postgres"
|
Hostname: "postgres"
|
||||||
Username: "gregory"
|
Username: "gregory"
|
||||||
Password: "pass"'
|
Password: "pass"'
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
# set env vars for testing
|
# set env vars for testing
|
||||||
export GREGORY_DB_ADDRESS=postgres
|
export GREGORY_DB_ADDRESS=postgres
|
||||||
export GREGORY_DB_USER=gregory
|
export GREGORY_DB_USER=gregory
|
Loading…
Add table
Add a link
Reference in a new issue