New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an official image for Plone #1434
Changes from 20 commits
061bfe7
a8efb5a
b2137ce
e3ca822
1fd05ef
72a5312
4058b5e
2c76a7e
4712bba
cd7fd82
32a89f1
de1c8d0
c4ec044
f2a19b8
e822608
7768276
d87c01b
85e230f
014e822
ddb1c2e
dce1897
6030146
bfd74b9
278d4f0
744116f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Maintainers: Alin Voinea alin.voinea@gmail.com (@avoinea), | ||
Sven Strack sven@so36.net (@svx) | ||
GitRepo: https://github.com/plone/plone.docker.git | ||
|
||
Tags: 5.0.6, 5.0, 5, latest | ||
GitCommit: 443c34c35e774820621bf5c0966c81c3b45cb284 | ||
Directory: 5.0/5.0.6/debian | ||
|
||
Tags: 5.0.5 | ||
GitCommit: 443c34c35e774820621bf5c0966c81c3b45cb284 | ||
Directory: 5.0/5.0.5/debian | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these old versions officially supported upstream, or are you simply looking to backfill the tags and looking to remove them after they're built? (See also https://github.com/docker-library/official-images#tags-and-aliases) To put it another way, if there's a problem discovered in 5.0.5, will there be a 5.0.5.1 release, or is that what 5.0.6 is? Is there a compelling reason why a user would need to use 5.0.5 and couldn't upgrade to 5.0.6? When tags are removed here, they do not get removed from the Docker Hub, so are still available for users to pull as desired. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
5.0.6 is supposed to fix issues in 5.0.5. |
||
|
||
Tags: 5.0.4 | ||
GitCommit: 443c34c35e774820621bf5c0966c81c3b45cb284 | ||
Directory: 5.0/5.0.4/debian | ||
|
||
Tags: 5.0.3 | ||
GitCommit: 443c34c35e774820621bf5c0966c81c3b45cb284 | ||
Directory: 5.0/5.0.3/debian | ||
|
||
Tags: 5.0.2 | ||
GitCommit: 443c34c35e774820621bf5c0966c81c3b45cb284 | ||
Directory: 5.0/5.0.2/debian | ||
|
||
Tags: 4.3.11, 4.3, 4 | ||
GitCommit: 443c34c35e774820621bf5c0966c81c3b45cb284 | ||
Directory: 4.3/4.3.11/debian | ||
|
||
Tags: 4.3.10 | ||
GitCommit: 443c34c35e774820621bf5c0966c81c3b45cb284 | ||
Directory: 4.3/4.3.10/debian | ||
|
||
Tags: 4.3.9 | ||
GitCommit: 443c34c35e774820621bf5c0966c81c3b45cb284 | ||
Directory: 4.3/4.3.9/debian | ||
|
||
Tags: 4.3.8 | ||
GitCommit: 443c34c35e774820621bf5c0966c81c3b45cb284 | ||
Directory: 4.3/4.3.8/debian | ||
|
||
Tags: 4.3.7 | ||
GitCommit: 443c34c35e774820621bf5c0966c81c3b45cb284 | ||
Directory: 4.3/4.3.7/debian |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
[buildout] | ||
extends = develop.cfg | ||
develop += src/eea.facetednavigation | ||
eggs += eea.facetednavigation | ||
zcml += eea.facetednavigation-meta |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
image="$1" | ||
|
||
PLONE_TEST_SLEEP=3 | ||
PLONE_TEST_TRIES=5 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These appear to be unused in this script. 👍 |
||
|
||
cname="plone-container-$RANDOM-$RANDOM" | ||
cid="$(docker run -d -e PLONE_DEVELOP=src/eea.facetednavigation -e PLONE_ADDONS=eea.facetednavigation -e PLONE_ZCML=eea.facetednavigation-meta --name "$cname" "$image" cat)" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This container will likely be dead by the time the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed it. Thank you! |
||
trap "docker rm -vf $cid > /dev/null" EXIT | ||
|
||
docker exec -it "$cname" cat custom.cfg | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/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" "$image")" | ||
trap "docker rm -vf $cid > /dev/null" EXIT | ||
|
||
get() { | ||
docker run --rm -i \ | ||
--link "$cname":plone \ | ||
--entrypoint python \ | ||
"$image" \ | ||
-c "import urllib2; con = urllib2.urlopen('$1'); print con.read()" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indentation here should be tabs, not spaces. 🙏 |
||
} | ||
|
||
get_auth() { | ||
docker run --rm -i \ | ||
--link "$cname":plone \ | ||
--entrypoint python \ | ||
"$image" \ | ||
-c "import urllib2; request = urllib2.Request('$1'); request.add_header('Authorization', 'Basic $2'); print urllib2.urlopen(request).read()" | ||
} | ||
|
||
|
||
. "$dir/../../retry.sh" --tries "$PLONE_TEST_TRIES" --sleep "$PLONE_TEST_SLEEP" get "http://plone:8080" | ||
|
||
# Plone is up and running | ||
[[ $(get 'http://plone:8080') == *"Plone is up and running"* ]] | ||
|
||
# Create a Plone site | ||
[[ $(get_auth 'http://plone:8080/@@plone-addsite' 'YWRtaW46YWRtaW4=') == *"Create a Plone site"* ]] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you replace this magic auth string with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, both these tests should be quoted, ie: # Plone is up and running
[[ "$(get 'http://plone:8080')" == *"Plone is up and running"* ]]
# Create a Plone site
[[ "$(get_auth 'http://plone:8080/@@plone-addsite' "$(echo -n 'admin:admin' | base64)")" == *"Create a Plone site"* ]] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" | ||
|
||
image="$1" | ||
|
||
PLONE_TEST_SLEEP=3 | ||
PLONE_TEST_TRIES=5 | ||
|
||
# Start ZEO server | ||
zname="zeo-container-$RANDOM-$RANDOM" | ||
zid="$(docker run -d --name "$zname" "$image" zeoserver)" | ||
|
||
# Start Plone as ZEO Client | ||
pname="plone-container-$RANDOM-$RANDOM" | ||
pid="$(docker run -d --name "$pname" --link=$zname:zeo -e ZEO_ADDRESS=zeo:8100 "$image")" | ||
|
||
# Tear down | ||
trap "docker rm -vf $pid $zid > /dev/null" EXIT | ||
|
||
get() { | ||
docker run --rm -i \ | ||
--link "$pname":plone \ | ||
--entrypoint python \ | ||
"$image" \ | ||
-c "import urllib2; con = urllib2.urlopen('$1'); print con.read()" | ||
} | ||
|
||
get_auth() { | ||
docker run --rm -i \ | ||
--link "$pname":plone \ | ||
--entrypoint python \ | ||
"$image" \ | ||
-c "import urllib2; request = urllib2.Request('$1'); request.add_header('Authorization', 'Basic $2'); print urllib2.urlopen(request).read()" | ||
} | ||
|
||
. "$dir/../../retry.sh" --tries "$PLONE_TEST_TRIES" --sleep "$PLONE_TEST_SLEEP" get "http://plone:8080" | ||
|
||
# Plone is up and running | ||
[[ $(get 'http://plone:8080') == *"Plone is up and running"* ]] | ||
|
||
# Create a Plone site | ||
[[ $(get_auth 'http://plone:8080/@@plone-addsite' 'YWRtaW46YWRtaW4=') == *"Create a Plone site"* ]] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comments as the previous test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add
<>
around these email addresses please?ie: