提交 9dd6bb24 编写于 作者: 6 635677437d755007c09848d3

update

上级 33f58bd0
......@@ -18,7 +18,7 @@ EOF
fi
# 其他镜像在python中异步创建
docker build -f config/python/Dockerfile -t webcode_python:1.0 .
docker build -f config/python/Dockerfile -t python .
pip install -r requirements -i https://mirrors.aliyun.com/pypi/simple/
python router.py
......@@ -37,9 +37,8 @@ class Language:
def build_image(self):
try:
print(self.name, "正在创建镜像")
generator = low_level_client.build(path=DOCKER_CONFIG_DIR.format(self.name),
tag=TAG_STR.format(self.name),
tag=self.name,
rm=True, decode=True)
while True:
# 打印日志,防止build太久看不到进度条
......
......@@ -20,7 +20,7 @@ def get_and_set_image(name):
if Languages[name].image:
return Languages[name].image
try:
image = client.images.get(TAG_STR.format(name))
image = client.images.get(name)
Languages[name].set_image(image)
return image
except ImageNotFound:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册