Implement deploy strategy for local development; refactor container to use startup script.
This commit is contained in:
12
scripts/dev.sh
Executable file
12
scripts/dev.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# cleanup() {
|
||||
# echo "Stopping Docker containers..."
|
||||
# docker-compose down
|
||||
# }
|
||||
|
||||
# trap cleanup EXIT SIGINT SIGTERM
|
||||
cd ../
|
||||
echo "Starting application..."
|
||||
docker compose -p harbormaster-server -f docker/docker-compose.dev.yml up -d --build
|
||||
echo "Tailing logs..."
|
||||
docker logs harbormaster-server -f
|
||||
6
scripts/startup.sh
Executable file
6
scripts/startup.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
cd /root
|
||||
|
||||
echo "Starting application..."
|
||||
chmod +x ./harbormaster
|
||||
./harbormaster
|
||||
Reference in New Issue
Block a user