-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simple podman shell scripts for manual test run
- Loading branch information
Showing
7 changed files
with
80 additions
and
2 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
datadir |
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 @@ | ||
../../../../../config |
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,2 @@ | ||
GSCLOUD_VERSION=1.0-RC7 | ||
|
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,11 @@ | ||
#!/bin/bash | ||
|
||
# read GSCLOUD_VERSION from ./env | ||
export $(cat ./env) | ||
|
||
podman pull docker.io/library/rabbitmq:3.9-management | ||
|
||
for i in discovery config gateway rest webui wms wfs wcs admin-server | ||
do | ||
podman pull docker-daemon:geoservercloud/geoserver-cloud-$i:$GSCLOUD_VERSION | ||
done |
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,7 @@ | ||
#!/bin/bash | ||
|
||
for service in gateway rest webui wms wfs wcs admin-server discovery config rabbitmq | ||
do | ||
podman container stop -i $service | ||
podman container rm -i $service | ||
done |
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,56 @@ | ||
#!/bin/bash | ||
|
||
podman network create gscloud 2>/dev/null | ||
|
||
podman volume create rabbitmq_data 2>/dev/null | ||
|
||
# read GSCLOUD_VERSION from ./env | ||
export $(cat ./env) | ||
|
||
STD_OPTS="-d --network gscloud" | ||
|
||
# Note rabbitmq and discovery are the only containers addressed | ||
# by hostname inside the cluster, so we're adding the --hostname | ||
# parameter to `podman run` on them. All other container urls are | ||
# resolved by discovery. | ||
|
||
echo Starting rabbitmq... | ||
podman run $STD_OPTS --name=rabbitmq --hostname=rabbitmq \ | ||
-v rabbitmq_data:/var/lib/rabbitmq \ | ||
--restart always \ | ||
rabbitmq:3.9-management | ||
|
||
echo Starting discovery:$GSCLOUD_VERSION... | ||
podman run $STD_OPTS --name=discovery --hostname=discovery \ | ||
-p 8761:8761 \ | ||
--restart always \ | ||
geoservercloud/geoserver-cloud-discovery:$GSCLOUD_VERSION | ||
|
||
echo Starting config:$GSCLOUD_VERSION... | ||
podman run $STD_OPTS --name=config \ | ||
--restart always \ | ||
-e SPRING_PROFILES_ACTIVE=native \ | ||
-v ./config:/opt/app/config:z \ | ||
-e CONFIG_NATIVE_PATH=/opt/app/config \ | ||
geoservercloud/geoserver-cloud-config:$GSCLOUD_VERSION | ||
|
||
echo Starting gateway:$GSCLOUD_VERSION... | ||
podman run $STD_OPTS --name=gateway \ | ||
-p 9090:8080 \ | ||
geoservercloud/geoserver-cloud-gateway:$GSCLOUD_VERSION | ||
|
||
echo Starting admin-server:$GSCLOUD_VERSION... | ||
podman run $STD_OPTS --name=admin-server \ | ||
-p 9091:8080 \ | ||
geoservercloud/geoserver-cloud-admin-server:$GSCLOUD_VERSION | ||
|
||
mkdir -p datadir | ||
#for i in webui wms wfs wcs rest | ||
for i in webui wms wfs | ||
do | ||
echo Starting $i:$GSCLOUD_VERSION... | ||
podman run $STD_OPTS --name=$i \ | ||
-e SPRING_PROFILES_ACTIVE=datadir \ | ||
-v ./datadir:/opt/app/data_directory:z \ | ||
geoservercloud/geoserver-cloud-$i:$GSCLOUD_VERSION | ||
done |