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

Create data directories #4

Merged
merged 5 commits into from
Jun 25, 2018
Merged

Create data directories #4

merged 5 commits into from
Jun 25, 2018

Conversation

SuperQ
Copy link
Collaborator

@SuperQ SuperQ commented Jun 23, 2018

Create data directories automatically.

  • Add flag to disable automatic creation.

Create data directories automatically.
* Add flag to disable automatic creation.
@SuperQ SuperQ force-pushed the storage_dirs branch 3 times, most recently from 3c2d086 to d7538b6 Compare June 24, 2018 20:20
Copy link
Collaborator

@paulfantom paulfantom left a comment

Choose a reason for hiding this comment

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

Looks great!

Copy link
Owner

@atosatto atosatto left a comment

Choose a reason for hiding this comment

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

Wow, thank you very much for your awesome contribution.

I just left a minor comment. :) But everything LGTM

.travis.yml Outdated
@@ -13,15 +13,15 @@ services:
# Ensure docker is updated
before_install:
Copy link
Owner

Choose a reason for hiding this comment

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

I think we can actually remove this and just use

# Enable the docker service
services:
- docker

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yea, the only thing it does now is upgrade docker.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We could also add cache: pip to cache packages installed via pip

@@ -10,12 +10,28 @@ platforms:
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: minio-fedora-27
Copy link
Owner

Choose a reason for hiding this comment

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

Why do we depend on externally build docker images?
Can't something like that be implemented?

https://github.com/atosatto/ansible-prometheus/blob/7b286ce625ae96467e5363378a60cc55c6103069/molecule/prometheus-latest/molecule.yml#L15-L25

I know that it's not super efficient, but it makes the CI self-contained within the role.

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 think the test time efficiency was the goal. @paulfantom?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, I use those images to reduce time needed for CI pipeline. Those are automatically built from this repo https://github.com/paulfantom/dockerfiles

Copy link
Collaborator

@paulfantom paulfantom Jun 24, 2018

Choose a reason for hiding this comment

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

@atosatto self-contained images are ok, but consider testing this across 3 versions of ansible and 5-6 distros (our basic test matrix, used for example here: https://github.com/cloudalchemy/ansible-prometheus), this will cause to build those images 15-18 times for every new commit. This takes a lot of time and doesn't scale well. Also this way when something breaks in one repo, we can quickly fix it for all of them.

Copy link
Owner

Choose a reason for hiding this comment

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

I did the same in the past (https://github.com/atosatto/dockerfiles) and then switched to self-contained images built as part of the CI project.

I am fine with the change for now. We can always switch back to Docker images built as part of the CI in a next stage.

@SuperQ SuperQ merged commit 0de61d0 into atosatto:master Jun 25, 2018
@SuperQ SuperQ deleted the storage_dirs branch June 25, 2018 06:56
@SuperQ SuperQ mentioned this pull request Jun 25, 2018
lucendio referenced this pull request in wireapp/ansible-minio Nov 20, 2020
travis: switch to python 3, test ansible 2.9
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