diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-08-08 12:31:18 -0500 |
---|---|---|
committer | Jorge Hernandez <jh1730@att.com> | 2017-08-08 12:31:18 -0500 |
commit | 9d0c825d5dfdec5618965a1488e7950eff968e07 (patch) | |
tree | 8f40c340af9c84121b6b986343d65817831eb3d9 | |
parent | e572b590bfe254a1bbccf70b567580b72802f656 (diff) |
wget instead of ADD to get binary for docker
get flyway binaries through wget in Dockerfile
vs using ADD construct
Change-Id: I4f6c014f4ede6394fd8cbb55fbfb6dfc7e7b1667
Issue-ID: POLICY-66
Signed-off-by: Jorge Hernandez <jh1730@att.com>
-rw-r--r-- | policy-drools/Dockerfile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/policy-drools/Dockerfile b/policy-drools/Dockerfile index a360b012..3f3dc77e 100644 --- a/policy-drools/Dockerfile +++ b/policy-drools/Dockerfile @@ -7,15 +7,17 @@ RUN mkdir -p /opt/app/policy/opt /tmp/policy-install && \ WORKDIR /tmp/policy-install COPY install-drools.zip apps.zip docker-install.sh do-start.sh wait-for-port.sh ./ -ADD http://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/4.2.0/flyway-commandline-4.2.0.tar.gz /opt/app RUN unzip install-drools.zip && \ unzip apps.zip && \ rm install-drools.zip apps.zip && \ chown -R policy * && \ chmod +x *.sh && \ - ln -s /opt/app/flyway-4.2.0 /opt/app/flyway && \ - ln -s /opt/app/flyway/flyway /usr/local/bin + wget http://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/4.2.0/flyway-commandline-4.2.0.tar.gz && \ + tar -C /opt/app -xzf flyway-commandline-4.2.0.tar.gz && \ + chmod +x /opt/app/flyway-4.2.0/flyway && \ + ln -f -s /opt/app/flyway-4.2.0 /opt/app/flyway && \ + ln -f -s /opt/app/flyway/flyway /usr/local/bin USER policy CMD ./do-start.sh |