Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Add Ubuntu Bionic support/testing #39

Merged
merged 2 commits into from
Mar 22, 2018
Merged

Conversation

odyssey4me
Copy link
Collaborator

In order to support and to validate support for
Ubuntu 18.04 (Bionic), we add the appropriate
molecule configuration to test it, along with
the only change necessary for the tests to pass.

@odyssey4me
Copy link
Collaborator Author

odyssey4me commented Mar 21, 2018

Odd, the image referenced is public so it should work. I'm entirely new at using docker though, so any pointers which might help are welcome. :)

This relates to paulfantom/dockerfiles#1

molecule.yml Outdated
@@ -17,6 +17,12 @@ docker:
privileged: true
volume_mounts:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: bionic
image: odyssey4me/ubuntu-molecule
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll adjust this once paulfantom/dockerfiles#1 merges and the image is published.

Copy link
Member

Choose a reason for hiding this comment

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

PR is merged and images are public 🎉

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Awesome, thanks!

@paulfantom
Copy link
Member

This is great! Just change image name and I'll merge it.

README.md Outdated
@@ -68,7 +68,7 @@ We provide demo site for full monitoring solution based on prometheus and grafan
The preferred way of locally testing the role is to use Docker and [molecule](https://github.com/metacloud/molecule) (v1.25). You will have to install Docker on your system. See Get started for a Docker package suitable to for your system.
All packages you need to can be specified in one line:
```sh
pip install ansible ansible-lint>=3.4.15 molecule==1.25.0 docker testinfra>=1.7.0
pip install ansible 'ansible-lint>=3.4.15' 'molecule==1.25.0' docker git-semver 'testinfra>=1.7.0,<=1.10.1'
Copy link
Member

Choose a reason for hiding this comment

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

One thing, git-semver isn't needed for local testing, please remove it from this line.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@paulfantom
Copy link
Member

paulfantom commented Mar 21, 2018

And about issue with travis not downloading your docker image:
We are using a simple script to prefetch docker images, so molecule won't build them in every CI pipeline. This script is located in .travis/images.sh and needs to have every image used by molecule.

@odyssey4me
Copy link
Collaborator Author

Thanks for the tip about the images script - I missed that!

Jesse Pretorius added 2 commits March 22, 2018 10:42
To ensure the instructions are accurate (based on
.travis.yml) and also to ensure that the shell
interpreter does not interpret the requirements
boundaries for each pip requirement as something
else, the install line is updated.
In order to support and to validate support for
Ubuntu 18.04 (Bionic), we add the appropriate
molecule configuration to test it, along with
the only change necessary for the tests to pass.

A trailing whitespace is also removed from
.travis/images.sh as it's unnecessary.
@paulfantom paulfantom merged commit 0445029 into cloudalchemy:master Mar 22, 2018
@paulfantom
Copy link
Member

Thanks!

@lock
Copy link

lock bot commented Mar 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants