tjohnn
08/29/2019, 4:05 AMjava.util.NoSuchElementException: No session data found for id b8130c2077351466
, it works fine without containerizing it. Also, I am new to docker . Is there something I need to do that I am missing?Robert Menke
08/29/2019, 11:36 AMtjohnn
08/29/2019, 11:48 AMchown
for the WORKDIR
I am using already, do I need to grant some access to the session directory separately?Robert Menke
08/29/2019, 1:19 PMtjohnn
08/29/2019, 3:34 PMtjohnn
08/29/2019, 3:35 PMFROM openjdk:8-jre-alpine
ENV APPLICATION_USER ktor
RUN adduser -D -g '' $APPLICATION_USER
RUN mkdir /app
RUN chown -R $APPLICATION_USER /app
USER $APPLICATION_USER
COPY ./build/libs/dekemi-site.jar /app/dekemi-site.jar
WORKDIR /app
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "dekemi-site.jar"]
Robert Menke
08/29/2019, 3:50 PMRobert Menke
08/29/2019, 3:53 PMdocker exec -it <name-of-your-container> /bin/bash
(find the name of your container via docker ps
), cd to the parent directory of wherever you’re writing sessions to, ls -la
to see what the existing permissions are, and if necessary in your dockerfile run chmod 775 <your-directory>
.tjohnn
08/29/2019, 6:05 PMtjohnn
08/29/2019, 6:06 PMRUN mkdir /.sessions
RUN chmod 775 /.sessions
?tjohnn
08/29/2019, 6:08 PMRobert Menke
08/29/2019, 6:16 PMtjohnn
08/29/2019, 10:21 PM