scriptの移動

This commit is contained in:
ixa2
2024-03-05 02:07:27 +00:00
parent 1c39fa0c52
commit 52b5e4ee53
4 changed files with 1 additions and 0 deletions

3
scripts/build.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
docker build -t taiko .

18
scripts/codespaces.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
docker run --detach \
--name taiko-mongo-debug \
--volume taiko-mongo:/data/db \
--publish 27017:27017 \
mongo
docker run --detach \
--name taiko-redis-debug \
--volume taiko-redis:/data \
--publish 6379:6379 \
redis
#pip install -r requirements.txt
#flask run
python -m flask run

22
scripts/deploy.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
docker run --detach \
--name taiko-mongo \
--volume taiko-mongo:/data/db \
mongo
docker run --detach \
--name taiko-redis \
--volume taiko-redis:/data \
redis
docker run --detach \
--name taiko \
--link taiko-mongo \
--link taiko-redis \
--env TAIKO_WEB_MONGO_HOST=taiko-mongo \
--env TAIKO_WEB_REDIS_HOST=taiko-redis \
--env LETSENCRYPT_HOST=taikoapp.uk \
--env VIRTUAL_HOST=taikoapp.uk \
--env VIRTUAL_PORT=8080 \
taiko