diff options
author | wutianwei <wutianwei1@huawei.com> | 2017-11-30 14:44:04 +0800 |
---|---|---|
committer | wutianwei <wutianwei1@huawei.com> | 2017-11-30 14:50:54 +0800 |
commit | 8b67f90bd3d25c6457801303fd2a151127e74c58 (patch) | |
tree | 2c0d53194dd08fded7ae9e863b575e5f666a138d /compass-tasks-k8s | |
parent | cdbfdcb04670bba08b301789c6be08900da44f10 (diff) |
add ARG in Dockerfile
when run the command
"docker build --no-cache -t opnfv/compass-tasks:latest --build-arg BRANCH=master -f Dockerfile ."
if docker version is lower 1.13, it will fail when not using build-arg in Dockerfile
Change-Id: I891a37731d242aba4e37c7b56e0361c741e7eac8
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'compass-tasks-k8s')
-rw-r--r-- | compass-tasks-k8s/Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compass-tasks-k8s/Dockerfile b/compass-tasks-k8s/Dockerfile index 1203ffa..cd74cf8 100644 --- a/compass-tasks-k8s/Dockerfile +++ b/compass-tasks-k8s/Dockerfile @@ -1,6 +1,8 @@ -FROM huangxiangyu/compass-tasks:v0.3 +FROM opnfv/compass-tasks:latest #FROM localbuild/compass-tasks +ARG BRANCH=master + ADD ./run.sh /root/ RUN chmod +x /root/run.sh RUN /root/run.sh |