-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
40 additions
and
14 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
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,6 +1,6 @@ | ||
======================================================================================= | ||
Installing DEVELOPment addons /app/src/helloworld | ||
THIS IS NOT MEANT TO BE USED IN PRODUCTION | ||
Read about it: https://github.com/plone/plone-backend/#extending-from-this-image | ||
Read about it: https://6.docs.plone.org/install/containers/images/backend.html | ||
======================================================================================= | ||
Hello World! |
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,26 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" | ||
|
||
image="$1" | ||
|
||
PLONE_TEST_SLEEP=3 | ||
PLONE_TEST_TRIES=5 | ||
|
||
cname="plone-container-$RANDOM-$RANDOM" | ||
cid="$(docker run -d --name "$cname" -e LISTEN_PORT=8081 "$image")" | ||
trap "docker rm -vf $cid > /dev/null" EXIT | ||
|
||
get() { | ||
docker run --rm -i \ | ||
--link "$cname":plone \ | ||
--entrypoint /app/bin/python \ | ||
"$image" \ | ||
-c "from urllib.request import urlopen; con = urlopen('$1'); print(con.read())" | ||
} | ||
|
||
. "$dir/../../retry.sh" --tries "$PLONE_TEST_TRIES" --sleep "$PLONE_TEST_SLEEP" get "http://plone:8081" | ||
|
||
# Plone is up and running | ||
[[ "$(get 'http://plone:8081')" == *"Plone is up and running"* ]] |
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