init docker cofig,
This commit is contained in:
19
002_source/scripts/backup.sh
Executable file
19
002_source/scripts/backup.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
# GLOBAL_EXCLUDE="--exclude={'**/.git','**/node_modules','**/.pnpm','**//**'}"
|
||||
|
||||
# tar -zcvf _archive/cms/018.tar.gz \
|
||||
# --exclude "node_modules" \
|
||||
# --exclude ".next" \
|
||||
# cms
|
||||
|
||||
rsync -avzh \
|
||||
--exclude ".next" \
|
||||
--exclude "node_modules" \
|
||||
--exclude ".pnpm" \
|
||||
--exclude ".git" \
|
||||
cms _archive/006_cms_start_categories_edit
|
||||
|
||||
echo "done"
|
36
002_source/scripts/dc_build.sh
Executable file
36
002_source/scripts/dc_build.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
# cms_ubuntu use nvm docker image
|
||||
cd ../005_references/nvm
|
||||
# docker build -t 192.168.10.61:5000/nvm_ubuntu:latest .
|
||||
# docker tag nvm_ubuntu 192.168.10.61:5000/nvm_ubuntu
|
||||
|
||||
# docker build -t nvm_ubuntu:latest .
|
||||
# docker run -it nvm_ubuntu:latest bash
|
||||
# docker run -it 192.168.10.61:5000/nvm_ubuntu:latest bash
|
||||
cd -
|
||||
|
||||
cd ./cms
|
||||
docker build -t 192.168.10.61:5000/cms_ubuntu:latest .
|
||||
cd -
|
||||
|
||||
# ionic_mobile
|
||||
cd ./ionic_mobile
|
||||
docker build -t 192.168.10.61:5000/ionic_mobile_ubuntu:latest .
|
||||
cd -
|
||||
|
||||
# api_ts
|
||||
cd ./api_ts
|
||||
docker build -t 192.168.10.61:5000/api_ts_ubuntu:latest .
|
||||
cd -
|
||||
|
||||
# # pocketbase
|
||||
|
||||
# echo "done"
|
||||
|
||||
docker push 192.168.10.61:5000/nvm_ubuntu:latest
|
||||
docker push 192.168.10.61:5000/cms_ubuntu:latest
|
||||
docker push 192.168.10.61:5000/api_ts_ubuntu:latest
|
||||
docker push 192.168.10.61:5000/ionic_mobile_ubuntu:latest
|
17
002_source/scripts/dc_dev.sh
Executable file
17
002_source/scripts/dc_dev.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
docker compose kill
|
||||
docker compose down
|
||||
|
||||
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d pocketbase api_ts --remove-orphans
|
||||
# docker compose logs -f pocketbase api_ts
|
||||
|
||||
echo "done"
|
||||
|
||||
|
||||
echo "please run yourself !!!!"
|
||||
echo "nodemon -w /pb_hooks --exec "pocketbase seed""
|
||||
echo ""
|
||||
docker compose exec -it pocketbase sh
|
20
002_source/scripts/dc_up.sh
Executable file
20
002_source/scripts/dc_up.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
# docker compose build
|
||||
|
||||
# cd cms
|
||||
# # nvm use 18
|
||||
# npm run build
|
||||
# cd -
|
||||
|
||||
# cd ionic_mobile
|
||||
# npm run build
|
||||
# cd -
|
||||
|
||||
docker compose up -d
|
||||
|
||||
docker compose logs -f
|
||||
|
||||
echo "done"
|
6
002_source/scripts/run.sh
Executable file
6
002_source/scripts/run.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
docker compose exec -it cms bash
|
||||
|
||||
echo "done"
|
Reference in New Issue
Block a user