-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from MaxDragonheart/feat_update_ulgis_#29
Feat update ulgis #29
- Loading branch information
Showing
13 changed files
with
103 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
GS_VERSION=2.20.1 | ||
GS_VERSION=2.20.4 | ||
GS_DEMO_DATA=False | ||
GS_HTTP_PORT=8300 | ||
GS_INITIAL_MEMORY=1G | ||
GS_MAXIMUM_MEMORY=4G | ||
GS_MAXIMUM_MEMORY=4G |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Docker | ||
|
||
Build: `docker build -t LAYER-NAME .` | ||
|
||
Build with args: `docker build --build-arg ARG1=VALUE1 --build-arg ARG2=VALUE2 -t LAYER-NAME .` | ||
|
||
Run and access to container: `docker run -it LAYER-NAME` | ||
|
||
Start container: `docker container run -it -d --name CONTAINER-NAME -p 8081:8080 LAYER-NAME` | ||
|
||
List of active container: `docker ps` | ||
|
||
List of images: `docker images` | ||
|
||
Purge images and volumes: `docker system prune -a --volumes` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,53 @@ | ||
#!/usr/bin/env bash | ||
|
||
##### FOR TEST ONLY | ||
#GS_VERSION=2.21.0 | ||
#GS_DEMO_DATA=True | ||
##### FOR TEST ONLY | ||
|
||
GEOSERVER_LINK="http://sourceforge.net/projects/geoserver/files/GeoServer/${GS_VERSION}/geoserver-${GS_VERSION}-war.zip" | ||
GEOSERVER_WAR=data/geoserver.war | ||
GEOSERVER_FOLDER=data/geoserver | ||
|
||
echo " ---> Start download of Geoserver $GS_VERSION" | ||
|
||
echo " ---> Download Geoserver in downloads/" | ||
pwd | ||
echo " ---> Download Geoserver in $PWD/downloads/" | ||
mkdir downloads/ | ||
echo " ---> Geoserver download link: $GEOSERVER_LINK" | ||
wget "$GEOSERVER_LINK" -P downloads/ | ||
|
||
echo " ---> Unzip Geoserver from downloads/geoserver-$GS_VERSION-war.zip to data/" | ||
echo " ---> Unzip and copy Geoserver" | ||
echo " ------> from $PWD/downloads/geoserver-$GS_VERSION-war.zip" | ||
echo " ------> to $PWD/data/" | ||
unzip downloads/geoserver-"$GS_VERSION"-war.zip '*.war' -d data/ | ||
|
||
echo " ---> Unzip .war from $GEOSERVER_WAR to $GEOSERVER_FOLDER" | ||
echo " ---> Unzip .war" | ||
echo " ------> from $PWD/$GEOSERVER_WAR" | ||
echo " ------> to $PWD/$GEOSERVER_FOLDER" | ||
unzip "$GEOSERVER_WAR" -d "$GEOSERVER_FOLDER" | ||
|
||
echo " ---> Delete of downloads/ and $GEOSERVER_WAR" | ||
echo " ---> Deletion of:" | ||
echo " ------> $PWD/downloads/" | ||
echo " ------> $PWD/$GEOSERVER_WAR" | ||
rm -rf downloads/ | ||
rm -rf "$GEOSERVER_WAR" | ||
|
||
if [ "$GS_DEMO_DATA" = False ]; | ||
then | ||
echo " ---> Remove demo data" | ||
|
||
rm -rf data/geoserver/data/data/ | ||
rm -rf data/geoserver/data/layergroups/ | ||
rm -rf data/geoserver/data/palettes/ | ||
rm -rf data/geoserver/data/styles/ | ||
rm -rf data/geoserver/data/workspaces/ | ||
|
||
mkdir data/geoserver/data/data/ | ||
mkdir data/geoserver/data/layergroups/ | ||
mkdir data/geoserver/data/palettes/ | ||
mkdir data/geoserver/data/styles/ | ||
mkdir data/geoserver/data/workspaces/ | ||
fi | ||
|
||
|
||
echo " ---> Geoserver download completed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters