Skip to content
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

Base images syntax varies from contributed images #22

Open
fubarhouse opened this issue Aug 16, 2018 · 3 comments
Open

Base images syntax varies from contributed images #22

fubarhouse opened this issue Aug 16, 2018 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@fubarhouse
Copy link
Owner

fubarhouse commented Aug 16, 2018

Base images should be usable as custom images, but right now they are not.

This is actually stupid, however what if a role could be tested remotely...

It would actually be stupidly cool if that process was automated...

edit:

At this point in time, the following config will achieve this.

I just have to figure it out for automation in this tool.

ansible-playbook ./tests/test-source.yml -i '$DOCKER_IMAGE_NAME,' -c docker

playbook:

- hosts: all

This has successfully helped debug fubarhouse/ansible-role-curl#22, and the ability to simply run a playbook against an image without Ansible is incredibly useful and powerful. It has been an excellent exercise so far.

@fubarhouse
Copy link
Owner Author

I believe this can be closed, but I'll mark it for testing.

@fubarhouse fubarhouse added enhancement New feature or request needs testing Changes proposed need to be tested labels Sep 9, 2018
@fubarhouse fubarhouse removed the needs testing Changes proposed need to be tested label Sep 29, 2018
@fubarhouse
Copy link
Owner Author

 11:09 PM:~/Projects/Ansible/Node.js $ ansible-role-tester full --custom -t geerlingguy/python:2-stretch --remote
panic: runtime error: index out of range

goroutine 1 [running]:
github.com/fubarhouse/ansible-role-tester/cmd.glob..func2(0x14312c0, 0xc0000a03c0, 0x0, 0x4)
        /Users/karl/go/src/github.com/fubarhouse/ansible-role-tester/cmd/full.go:76 +0xef1
github.com/fubarhouse/ansible-role-tester/vendor/github.com/spf13/cobra.(*Command).execute(0x14312c0, 0xc0000a0380, 0x4, 0x4, 0x14312c0, 0xc0000a0380)
        /Users/karl/go/src/github.com/fubarhouse/ansible-role-tester/vendor/github.com/spf13/cobra/command.go:766 +0x2cc
github.com/fubarhouse/ansible-role-tester/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1431780, 0x4, 0x0, 0x0)
        /Users/karl/go/src/github.com/fubarhouse/ansible-role-tester/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
github.com/fubarhouse/ansible-role-tester/vendor/github.com/spf13/cobra.(*Command).Execute(0x1431780, 0x1006c20, 0xc000084058)
        /Users/karl/go/src/github.com/fubarhouse/ansible-role-tester/vendor/github.com/spf13/cobra/command.go:800 +0x2b
github.com/fubarhouse/ansible-role-tester/cmd.Execute()
        /Users/karl/go/src/github.com/fubarhouse/ansible-role-tester/cmd/root.go:121 +0x2d
main.main()
        /Users/karl/go/src/github.com/fubarhouse/ansible-role-tester/main.go:8 +0x20

Basically, we need to address the string parser.

@fubarhouse
Copy link
Owner Author

The logic here could be abstracted and consolidated, but we can leave that for another time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant