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

Updated kitchen and travis to support centos #71

Closed
wants to merge 5 commits into from

Conversation

Mierdin
Copy link
Member

@Mierdin Mierdin commented Jan 6, 2017

Closes #68 and #69

Matt Oswalt added 2 commits January 5, 2017 16:04
Signed-off-by: Matt Oswalt <[email protected]>
- name: centos-7
driver_config:
image: stackstorm/packagingtest:centos7
platform: rhel
Copy link
Member

@arm4b arm4b Jan 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checked, you were right.
There is centos option, according to https://github.com/test-kitchen/kitchen-docker#platform

@Mierdin
Copy link
Member Author

Mierdin commented Jan 6, 2017 via email

@arm4b
Copy link
Member

arm4b commented Jan 6, 2017

I investigated the build failure.
That's because we generate /etc/ssh/ssh_host_rsa_key already in our Centos Dockerfiles: https://github.com/StackStorm/st2-dockerfiles/blob/master/packagingtest/centos7/systemd/Dockerfile#L63 (and here's why it's needed).

I've submitted patch in kitchen-docker test-kitchen/kitchen-docker#253, but in a meantime you can try to use custom intermediate Dockerfile for centos6 and centos7 for kitchen-docker to work, see:

Hope it'll unblock you.

@Mierdin
Copy link
Member Author

Mierdin commented Jan 6, 2017 via email

@@ -0,0 +1,27 @@
# This Dockerfile is a temporary solution so that we can test our centos
Copy link
Member

@arm4b arm4b Jan 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to hide these intermediate Dockerfiles under .kitchen/ dir (for example).
Just to avoid confusion from users when we place Dockerfile in the root dir of repo.

@jvrplmlmn
Copy link
Contributor

FWIW this issue StackStorm/chef-stackstorm#30 in the chef-stackstorm discusses why you shouldn't use the stackstorm/packagingtest Docker images for testing.

@Mierdin
Copy link
Member Author

Mierdin commented Jan 17, 2017

Closing, as #81 and #82 solve this problem more correctly.

@Mierdin Mierdin closed this Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants