diff --git a/test-service/Dockerfile b/test-service/Dockerfile index a323b548..79ba0a89 100644 --- a/test-service/Dockerfile +++ b/test-service/Dockerfile @@ -3,17 +3,13 @@ ARG APP_NAME ARG APP_VERSION ENV VERSION=$APP_VERSION -RUN yum update -y -RUN yum install -y tar lsof - RUN mkdir -p /opt/creek COPY bin /bin COPY log4j /log -COPY ${APP_NAME}-${APP_VERSION}.tar /opt/creek +COPY ${APP_NAME}-${APP_VERSION} /opt/creek/${APP_NAME}-${APP_VERSION} WORKDIR /opt/creek -RUN tar xf ${APP_NAME}-${APP_VERSION}.tar RUN ln -s ${APP_NAME}-${APP_VERSION} service ENTRYPOINT ["/bin/run.sh"] diff --git a/test-service/build.gradle.kts b/test-service/build.gradle.kts index 1753fe6b..9fef2b0d 100644 --- a/test-service/build.gradle.kts +++ b/test-service/build.gradle.kts @@ -49,7 +49,7 @@ tasks.register("prepareDocker") { from( layout.projectDirectory.file("Dockerfile"), - layout.buildDirectory.file("distributions/${project.name}-${project.version}.tar"), + tarTree(layout.buildDirectory.file("distributions/${project.name}-${project.version}.tar")), layout.projectDirectory.dir("include"), )