Skip to content
Snippets Groups Projects
Commit 82684d6c authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Docker: added socat port forwarding to file service at container startup

parent dbe35cfd
Branches
Tags
No related merge requests found
Pipeline #969 passed
......@@ -24,5 +24,8 @@ WORKDIR /vospace-ui-backend
RUN mvn clean package -DskipTests -Pinclude-gui
FROM openjdk:14-jdk-alpine
RUN apk add socat
COPY --from=0 /vospace-ui-backend/target/vospace-ui.jar /vospace-ui.jar
ENTRYPOINT ["java","-jar","/vospace-ui.jar"]
ADD docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
#!/bin/sh
if [ ! -z "$FILE_SERVICE_PORT" ]; then
socat TCP-LISTEN:$FILE_SERVICE_PORT,fork TCP:vospace_file_service:$FILE_SERVICE_PORT &
fi
java -jar /vospace-ui.jar
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment