diff --git a/seeddms.sh b/seeddms.sh index 502349f..f919156 100755 --- a/seeddms.sh +++ b/seeddms.sh @@ -19,8 +19,8 @@ docker run --rm seeddms cat /srv/seeddms/create_tables-postgres.sql | docker exe # Copy existing files into persistent storage mkdir -p /srv/seeddms/conf /srv/seeddms/data -docker run --rm -v /srv/seeddms/conf:/mnt/conf seeddms cp -rp /srv/seeddms/www/conf/. /mnt/conf -docker run --rm -v /srv/seeddms/data:/mnt/conf seeddms cp -rp /srv/seeddms/data/. /mnt/conf +docker run --rm -v /srv/seeddms/conf:/mnt/conf seeddms cp -rp /srv/seeddms/conf/. /mnt/conf +docker run --rm -v /srv/seeddms/data:/mnt/data seeddms cp -rp /srv/seeddms/data/. /mnt/data chown -R 8010:8010 /srv/seeddms/data # Configure SeedDMS diff --git a/seeddms/Dockerfile b/seeddms/Dockerfile index cf254be..fcc0f62 100644 --- a/seeddms/Dockerfile +++ b/seeddms/Dockerfile @@ -15,7 +15,7 @@ RUN \ # Install full-featured wget to work around sourceforge bugs apk --no-cache add wget \ # Install SeedDMS - && wget https://sourceforge.net/projects/seeddms/files/seeddms-5.1.6/seeddms-quickstart-5.1.6.tar.gz/download -O /srv/seeddms.tgz \ + && wget https://sourceforge.net/projects/seeddms/files/seeddms-5.1.7/seeddms-quickstart-5.1.7.tar.gz/download -O /srv/seeddms.tgz \ && tar xzf /srv/seeddms.tgz -C /srv \ && mv /srv/seeddms51x /srv/seeddms \ && rm -f /srv/seeddms.tgz \ @@ -26,8 +26,9 @@ RUN \ && chown -R seeddms:seeddms /srv/seeddms \ # Cleanup && apk --no-cache del wget \ - && cp /srv/seeddms/www/install/create_tables-postgres.sql /srv/seeddms/create_tables-postgres.sql \ - && rm -rf /srv/seeddms/www/install + && mv /srv/seeddms/www/install/create_tables-postgres.sql /srv/seeddms/create_tables-postgres.sql \ + && rm -rf /srv/seeddms/seeddms/install /srv/seeddms/www/install \ + && rm -rf /srv/seeddms/data/conf /srv/seeddms/www/ext/example COPY docker/etc/ /etc/ @@ -38,7 +39,7 @@ RUN \ cd /srv/seeddms \ && patch -p0