Skip to content

Commit

Permalink
Exposing alfresco & share logs to local volume
Browse files Browse the repository at this point in the history
  • Loading branch information
angelborroy-ks committed Sep 11, 2018
1 parent c4eef06 commit d78ed67
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion alfresco/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ ENV LC_ALL C.UTF-8 \

ARG TOMCAT_DIR=/usr/local/tomcat

RUN mkdir -p $TOMCAT_DIR/amps
# Logs always under $TOMCAT/logs folder
RUN echo "cd $TOMCAT_DIR/logs" > $TOMCAT_DIR/bin/setenv.sh \
&& chmod +x $TOMCAT_DIR/bin/setenv.sh

# Install modules and addons
RUN mkdir -p $TOMCAT_DIR/amps
COPY modules/amps $TOMCAT_DIR/amps
COPY modules/jars $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib

Expand Down
6 changes: 5 additions & 1 deletion share/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ FROM alfresco/alfresco-share:6.0

ARG TOMCAT_DIR=/usr/local/tomcat

RUN mkdir -p $TOMCAT_DIR/amps_share
# Logs always under $TOMCAT/logs folder
RUN echo "cd $TOMCAT_DIR/logs" > $TOMCAT_DIR/bin/setenv.sh \
&& chmod +x $TOMCAT_DIR/bin/setenv.sh

# Install modules and addons
RUN mkdir -p $TOMCAT_DIR/amps_share
COPY modules/amps_share $TOMCAT_DIR/amps_share
COPY modules/jars $TOMCAT_DIR/webapps/share/WEB-INF/lib

Expand Down
3 changes: 3 additions & 0 deletions volumes/config/alfresco-global.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Required to isolate logs folder
dir.root=/usr/local/tomcat/alf_data

# Copied from https://github.com/Alfresco/acs-community-packaging/blob/master/docker-alfresco/Dockerfile
alfresco-pdf-renderer.root=/usr/bin/
alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer
Expand Down

0 comments on commit d78ed67

Please sign in to comment.