scriptの移動
This commit is contained in:
3
scripts/build.sh
Normal file
3
scripts/build.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -t taiko .
|
||||
18
scripts/codespaces.sh
Normal file
18
scripts/codespaces.sh
Normal 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
22
scripts/deploy.sh
Normal 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
|
||||
Reference in New Issue
Block a user