From 9d0c825d5dfdec5618965a1488e7950eff968e07 Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Tue, 8 Aug 2017 12:31:18 -0500 Subject: 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 --- policy-drools/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'policy-drools') 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 -- cgit 1.2.3-korg