1 Star 0 Fork 0

Heisenberg/archerysec

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
integration-test.sh 827 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -ex
# Docker Build
export CONTAINER_NAME=archery
export REPO=archeryec
docker build -t $REPO .
docker run -e NAME=user -e EMAIL=[email protected] -e PASSWORD=fake@pass -d -e DJANGO_SETTINGS_MODULE=archerysecurity.settings.base -p 127.0.0.1:8000:8000 --name=$CONTAINER_NAME $REPO
docker logs $CONTAINER_NAME
docker ps -a
docker logs $CONTAINER_NAME
echo "Checking to see if Archery is running"
# Check whether the container is running and came up as expected
set +e
STATE="inactive"
for i in $(seq 1 5); do
curl -s -o /dev/null http://127.0.0.1:8000/login?next=/
if [ "$?" == "0" ]; then
STATE="running"
break
fi
sleep 10
done
if [ "$STATE" != "running" ]; then
docker ps -a
docker logs $CONTAINER_NAME
echo "Container did not come up properly" >&2
exit 1
fi
set +ex
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Jesse3692/archerysec.git
[email protected]:Jesse3692/archerysec.git
Jesse3692
archerysec
archerysec
master

搜索帮助