Skip to content

Commit

Permalink
Change multi-line bash run
Browse files Browse the repository at this point in the history
  • Loading branch information
mrauhala committed Jan 6, 2024
1 parent 14431bd commit 9bed7a2
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions 2.24/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,22 @@ RUN \
done

# Install GeoServer
RUN curl -sS -L -O https://sourceforge.net/projects/geoserver/files/GeoServer/$GEOSERVER_VERSION/geoserver-$GEOSERVER_VERSION-war.zip && \
unzip -d $CATALINA_HOME/webapps/ geoserver-$GEOSERVER_VERSION-war.zip geoserver.war && \
unzip -d $CATALINA_HOME/webapps/geoserver $CATALINA_HOME/webapps/geoserver.war && \
rm geoserver-$GEOSERVER_VERSION-war.zip $CATALINA_HOME/webapps/geoserver.war && \
mv $CATALINA_HOME/webapps/geoserver/WEB-INF/lib/marlin-*.jar $CATALINA_HOME/lib/marlin.jar && \
rm -rf $CATALINA_HOME/webapps/geoserver/data/workspaces/{tiger,nurc,sf,topp,cite} && \
rm -rf $CATALINA_HOME/webapps/geoserver/data/data/{nyc,sf,shapefiles,taz_shapes} && \
rm -rf $CATALINA_HOME/webapps/geoserver/data/{layergroups,coverages}/* && \
rm -rf $CATALINA_HOME/webapps/geoserver/data/styles/tiger_* && \
mkdir -p $GEOSERVER_DATA_DIR $GEOWEBCACHE_CACHE_DIR && \
mv $CATALINA_HOME/webapps/geoserver/data/* $GEOSERVER_DATA_DIR && \
sed -e 's/>PARTIAL-BUFFER2</>SPEED</g' -i $CATALINA_HOME/webapps/geoserver/WEB-INF/web.xml && \
chgrp -R 0 $CATALINA_HOME $GEOWEBCACHE_CACHE_DIR $GEOSERVER_DATA_DIR && \
RUN <<EOT bash
curl -sS -L -O https://sourceforge.net/projects/geoserver/files/GeoServer/$GEOSERVER_VERSION/geoserver-$GEOSERVER_VERSION-war.zip
unzip -d $CATALINA_HOME/webapps/ geoserver-$GEOSERVER_VERSION-war.zip geoserver.war
unzip -d $CATALINA_HOME/webapps/geoserver $CATALINA_HOME/webapps/geoserver.war
rm geoserver-$GEOSERVER_VERSION-war.zip $CATALINA_HOME/webapps/geoserver.war
mv $CATALINA_HOME/webapps/geoserver/WEB-INF/lib/marlin-*.jar $CATALINA_HOME/lib/marlin.jar
rm -rf $CATALINA_HOME/webapps/geoserver/data/workspaces/{tiger,nurc,sf,topp,cite,sde}
rm -rf $CATALINA_HOME/webapps/geoserver/data/data/{nyc,sf,shapefiles,taz_shapes}
rm -rf $CATALINA_HOME/webapps/geoserver/data/{layergroups,coverages}/*
rm -rf $CATALINA_HOME/webapps/geoserver/data/styles/tiger_*
mkdir -p $GEOSERVER_DATA_DIR $GEOWEBCACHE_CACHE_DIR
mv $CATALINA_HOME/webapps/geoserver/data/* $GEOSERVER_DATA_DIR
sed -e 's/>PARTIAL-BUFFER2</>SPEED</g' -i $CATALINA_HOME/webapps/geoserver/WEB-INF/web.xml
chgrp -R 0 $CATALINA_HOME $GEOWEBCACHE_CACHE_DIR $GEOSERVER_DATA_DIR
chmod -R g=u $CATALINA_HOME $GEOWEBCACHE_CACHE_DIR $GEOSERVER_DATA_DIR
EOT

# Install GeoServer Plugins
RUN for PLUGIN in ${GEOSERVER_PLUGINS}; \
Expand Down

0 comments on commit 9bed7a2

Please sign in to comment.