Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
2fbfe5cd
Commit
2fbfe5cd
authored
Mar 17, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Would help if I added these files in the right directory
parent
dc6a1f42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
test/integration/roles/test_docker/tasks/docker-setup-debian.yml
+6
-0
test/integration/roles/test_docker/tasks/docker-tests.yml
+41
-0
No files found.
test/integration/roles/test_docker/tasks/docker-setup-debian.yml
0 → 100644
View file @
2fbfe5cd
-
name
:
Install docker packages (apt)
apt
:
state
:
present
# Note: add docker-registry when available
name
:
docker.io,python-docker,netcat-openbsd
test/integration/roles/test_docker/tasks/docker-tests.yml
0 → 100644
View file @
2fbfe5cd
-
name
:
Start docker daemon
service
:
name
:
docker
state
:
started
-
name
:
Download busybox image
docker
:
image
:
busybox
state
:
present
pull
:
missing
-
name
:
Run a small script in busybox
docker
:
image
:
busybox
state
:
reloaded
pull
:
always
command
:
"
nc
-l
-p
2000
-e
xargs
-n1
echo
hello"
detach
:
True
-
name
:
Get the docker container id
shell
:
"
docker
ps
|
grep
busybox
|
awk
'{
print
$1
}'"
register
:
container_id
-
debug
:
var=container_id
-
name
:
Get the docker container ip
shell
:
"
docker
inspect
{{
container_id.stdout_lines[0]
}}
|
grep
IPAddress
|
awk
-F
'
\"
'
'{
print
$4
}'"
register
:
container_ip
-
debug
:
var=container_ip
-
name
:
Try to access the server
shell
:
"
echo
'world'
|
nc
{{
container_ip.stdout_lines[0]
}}
2000"
register
:
docker_output
-
debug
:
var=docker_output
-
name
:
check that the script ran
assert
:
that
:
-
"
'hello
world'
in
docker_output.stdout_lines"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment