-
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.
- move docker/docker-py clone to the Dockerfile - put "integration test daemon startup" code in a separate file for both scripts to source - add new test-docker-py Makefile target - include "python-websocket" package in Dockerfile for running the tests Signed-off-by: Andrew "Tianon" Page <[email protected]>
- Loading branch information
Showing
7 changed files
with
51 additions
and
56 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
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,24 @@ | ||
#!/bin/bash | ||
|
||
# see test-integration-cli for example usage of this script | ||
|
||
export PATH="$DEST/../binary:$DEST/../dynbinary:$PATH" | ||
|
||
if ! command -v docker &> /dev/null; then | ||
echo >&2 'error: binary or dynbinary must be run before .integration-daemon-start' | ||
false | ||
fi | ||
|
||
# intentionally open a couple bogus file descriptors to help test that they get scrubbed in containers | ||
exec 41>&1 42>&2 | ||
|
||
DOCKER_GRAPHDRIVER=${DOCKER_GRAPHDRIVER:-vfs} | ||
DOCKER_EXECDRIVER=${DOCKER_EXECDRIVER:-native} | ||
|
||
( set -x; exec \ | ||
docker --daemon --debug \ | ||
--storage-driver "$DOCKER_GRAPHDRIVER" \ | ||
--exec-driver "$DOCKER_EXECDRIVER" \ | ||
--pidfile "$DEST/docker.pid" \ | ||
&> "$DEST/docker.log" | ||
) & |
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 pid in $(find "$DEST" -name docker.pid); do | ||
DOCKER_PID=$(set -x; cat "$pid") | ||
( set -x; kill $DOCKER_PID ) | ||
wait $DOCKERD_PID || true | ||
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
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