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
c571a0e6
Commit
c571a0e6
authored
Mar 18, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some debugging for why docker tests are failing in jenkins
parent
9082905a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
test/integration/roles/test_docker/tasks/registry-tests.yml
+12
-10
No files found.
test/integration/roles/test_docker/tasks/registry-tests.yml
View file @
c571a0e6
...
...
@@ -14,26 +14,27 @@
register
:
image_id
-
name
:
Tag docker image into the local registry
shell
:
"
docker
tag
{{
image_id.stdout_lines[0]
}}
localhost:5000/mine"
command
:
"
docker
tag
{{
image_id.stdout_lines[0]
}}
localhost:5000/mine"
-
name
:
Push docker image into the private registry
shell
:
"
docker
push
localhost:5000/mine"
command
:
"
docker
push
localhost:5000/mine"
-
name
:
Remove the busybox image from the local docker
shell
:
"
docker
rmi
-f
busybox"
command
:
"
docker
rmi
-f
busybox"
-
name
:
Remove the new image from the local docker
shell
:
"
docker
rmi
-f
localhost:5000/mine"
command
:
"
docker
rmi
-f
localhost:5000/mine"
-
name
:
Get number of images in docker
shell
:
"
docker
images
|wc
-l
"
command
:
"
docker
images
"
register
:
docker_output
-
debug
:
var=docker_output
# docker prints a header so the header should be all that's present
-
name
:
Check that there are no images in docker
assert
:
that
:
-
"
'1'
in
docker_output.stdout_lines
"
-
"
{{
docker_output.stdout_lines|
length
}}
<=
1
"
-
name
:
Retrieve the image from private docker registry
docker
:
...
...
@@ -69,16 +70,17 @@
-
"
'hello
world'
in
docker_output.stdout_lines"
-
name
:
Remove the new image from the local docker
shell
:
"
docker
rmi
-f
localhost:5000/mine"
command
:
"
docker
rmi
-f
localhost:5000/mine"
-
name
:
Get number of images in docker
shell
:
"
docker
images
|wc
-l
"
command
:
"
docker
images
"
register
:
docker_output
-
debug
:
var=docker_output
-
name
:
Check that there are no images in docker
assert
:
that
:
-
"
'1'
in
docker_output.stdout_lines
"
-
"
{{
docker_output.stdout_lines|
length
}}
<=
1
"
-
name
:
Setup nginx with a user/password
copy
:
...
...
@@ -152,7 +154,7 @@
-
"
'hello
world'
in
docker_output.stdout_lines"
-
name
:
Remove the private repo image from the local docker
shell
:
"
docker
rmi
-f
dockertest.ansible.com:8080/mine"
command
:
"
docker
rmi
-f
dockertest.ansible.com:8080/mine"
-
name
:
Remove domain name to hosts
lineinfile
:
...
...
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