-
Notifications
You must be signed in to change notification settings - Fork 19
SOFTWARE-3694 Add stash-cache tests to the container builds #26
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f2cc784
Distributing the travis among several scripts
a0d5ec8
Having the right permissions for the travis executable scripts
8ed0034
Adding the configuration for the origin container
fbe6f1e
typo in origins
24f3d2f
Checking everything is up and runnng
1eb9464
fixing the paths of the config
718c12f
Sleep 5sec give time to supervisord sto start
0e304d5
Give supervisord osmtime to catch up
adc1a60
Trying to figure out why it does not start on travis
0e9f683
Fixing the export of the origin
cffc87e
Fixing the tests to include cache test using host network
35834e7
added testing of each component
42671aa
Should just get the md5sum
fc92052
Should just get the md5sum
1e0522c
the test should test against port 8000
a302e78
Cleaning up the tests
682f147
Removing unsused file
7a3d9cd
Remove emacs file
ad8460d
Testing removing the supervisord for stashcache
7aebe4f
Testing removing the supervisord file for stashcache
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,16 @@ | ||
| #!/bin/bash -xe | ||
| # Script for pushing XCache docker images | ||
|
|
||
| if [[ "${TRAVIS_PULL_REQUEST}" != "false" ]]; then | ||
| echo "DockerHub deployment not performed for pull requests" | ||
| exit 0 | ||
| fi | ||
|
|
||
| # Credentials for docker push | ||
| echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
|
|
||
| for repo in $docker_repos; do | ||
| for tag in $timestamp fresh; do | ||
| docker push $org/$repo:$tag | ||
| done | ||
| done |
This file contains hidden or 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,3 @@ | ||
| pss.origin localhost:1094 | ||
| xrd.port 8000 | ||
|
|
This file contains hidden or 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 @@ | ||
| XC_ROOTDIR=/tmp |
This file contains hidden or 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,4 @@ | ||
| # Manually force the authentication to be public | ||
| set StashOriginPublicAuthfile = /etc/xrootd/public-origin-authfile | ||
| #set originexport = /stashcache-travis-ci-test | ||
| all.export /stashcache-travis-ci-test |
This file contains hidden or 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 @@ | ||
| u * /stashcache-travis-ci-test rl |
Empty file.
This file contains hidden or 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 @@ | ||
| XC_ORIGINEXPORT=/tmp |
This file contains hidden or 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 @@ | ||
| This is a test file for Docker CI of Stashcache origin and cache images. | ||
|
|
This file contains hidden or 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 @@ | ||
| This is a test file for travis ci stashcache docker test | ||
This file contains hidden or 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,18 @@ | ||
| #!/bin/bash -xe | ||
| # Script for testing StashCache docker images | ||
|
|
||
|
|
||
| docker run --rm \ | ||
| --network="host" \ | ||
| --env-file=$(pwd)/travis/stashcache-cache-config/cache-env \ | ||
| --volume $(pwd)/travis/stashcache-cache-config/90-docker-ci.cfg:/etc/xrootd/config.d//90-docker-ci.cfg \ | ||
| --name test_cache opensciencegrid/stash-cache:fresh & | ||
| docker ps | ||
| sleep 20 | ||
|
|
||
| online_md5="$(curl -sL http://localhost:8000/stashcache-travis-ci-test/test_file | md5sum | cut -d ' ' -f 1)" | ||
| local_md5="$(md5sum $(pwd)/travis/stashcache-origin-config/test_file | cut -d ' ' -f 1)" | ||
| if [ "$online_md5" != "$local_md5" ]; then | ||
| echo "MD5sums do not match on stashcache" | ||
| exit 1 | ||
| fi |
This file contains hidden or 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,21 @@ | ||
| #!/bin/bash -xe | ||
| # Script for testing StashCache docker images | ||
|
|
||
|
|
||
| docker run --rm \ | ||
| --network="host" \ | ||
| --env-file=$(pwd)/travis/stashcache-origin-config/origin-env \ | ||
| --volume $(pwd)/travis/stashcache-origin-config/empty_stash-origin-auth.conf:/etc/supervisord.d/stash-origin-auth.conf \ | ||
| --volume $(pwd)/travis/stashcache-origin-config/10-origin-authfile.cfg:/etc/xrootd/config.d/10-origin-authfile.cfg \ | ||
| --volume $(pwd)/travis/stashcache-origin-config/authfile:/etc/xrootd/public-origin-authfile \ | ||
| --volume $(pwd)/travis/stashcache-origin-config/test_file:/tmp/stashcache-travis-ci-test/test_file \ | ||
| --name test_origin opensciencegrid/stash-origin:fresh & | ||
| docker ps | ||
| sleep 20 | ||
|
|
||
| online_md5="$(curl -sL http://localhost:1094/stashcache-travis-ci-test/test_file | md5sum | cut -d ' ' -f 1)" | ||
| local_md5="$(md5sum $(pwd)/travis/stashcache-origin-config/test_file | cut -d ' ' -f 1)" | ||
| if [ "$online_md5" != "$local_md5" ]; then | ||
| echo "MD5sums do not match on origin" | ||
| exit 1 | ||
| fi |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.