【发布时间】:2016-10-31 12:12:11
【问题描述】:
只是想知道 working_dir 文件对通过 docker-compose 加载的图像真正做了什么。一个示例 docker-compose.yml 文件如下:
dev:
extends:
file: common.yml
service: workspace
volumes:
- $ATOMSPACE_SOURCE_DIR:/atomspace
- $COGUTILS_SOURCE_DIR:/cogutils
# Uncomment the following lines if you want to work on moses
# - $MOSES_SOURCE_DIR:/moses
working_dir: /opencog # This is the same as the volume mount point below
links:
- postgres:db
- relex:relex
postgres:
image: opencog/postgres
# Uncomment the following lines if you want to work on a production
# system.
# NOTE: The environment variable `PROD` is set `True` then the entrypoint
# script in opencog/postgres does additional configurations.
# environment:
# - PROD=True
relex:
image: opencog/relex
command: /bin/sh -c "./opencog-server.sh"
【问题讨论】:
-
虽然有
docker-compose.yml,但你还是有Dockerfile来构建镜像的吧?