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

Enable CentOS7 CI in Travis #82

Merged
merged 3 commits into from
Jan 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .kitchen-docker/centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM stackstorm/packagingtest:centos7

RUN echo '<%= IO.read(@public_key).strip %>' >> /root/.ssh/authorized_keys
11 changes: 11 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ platforms:
platform: centos
dockerfile: .kitchen-docker/centos6/Dockerfile
run_command: /usr/sbin/sshd -D
# CentOS7 with Systemd
- name: centos-7
driver_config:
platform: centos
dockerfile: .kitchen-docker/centos7/Dockerfile
# TODO: Use non-root user after updating upstream Docker image: https://github.com/StackStorm/st2-dockerfiles/issues/38
username: root
password: docker.io
Copy link
Member Author

@arm4b arm4b Jan 16, 2017

Choose a reason for hiding this comment

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

As a workaround for CentOS7 we use different approach comparing to CentOS6 #81

As @Mierdin discovered before non-root login is blocked on current CentOS7 image, so we use root as simplest approach.

Additionally, I created CentOS7 packagingtest needs re-build #38 with detailed description so we fix it in future.

run_command: /sbin/init
volume:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

suites:
- name: default
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ env:
- DISTRO=ubuntu-14
- DISTRO=ubuntu-16
- DISTRO=centos-6
- DISTRO=centos-7

matrix:
fast_finish: true
allow_failures:
- env: DISTRO=centos-6
- env: DISTRO=centos-7

script:
# run kitchen tests (destroy, create, converge, setup, verify and destroy)
Expand Down