Skip to content

Commit

Permalink
Allow to use minishift >= v1.13.0
Browse files Browse the repository at this point in the history
minishift v.1.13.0 change storage driver for docker from device mapper
to overlay2. And therefore it hit a bug with wrong SELinux label of files
in /var/lib/docker

This is a workaround for images which does not have a fix
minishift/minishift-centos-iso#216
minishift/minishift-centos-iso#217
  • Loading branch information
Lukas Slebodnik committed Jun 19, 2018
1 parent 024ac7e commit d148a27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playbooks/roles/minishift/tasks/init_minishift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
pause:
minutes: 3

- name: Workaround for wrong SELinux context
shell: "{{ minishift_bin }} ssh --profile {{ profile }} -- sudo restorecon -R /var/lib/docker"

- name: Stop the cluster
shell: "{{ minishift_bin }} stop --profile {{ profile }}"

Expand Down
3 changes: 3 additions & 0 deletions playbooks/roles/os_temps/tasks/start_mcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
- name: "Start minishift profile {{ profile }}"
shell: "{{ minishift_bin }} start --profile {{ profile }} --cpus {{ cpus }} --disk-size {{ disk_size }} --memory {{ memory }} --openshift-version {{ oc_version }} --iso-url file:///{{ minishift_dest_dir }}/minishift.iso"
when: minishift_status.stdout == "Stopped"

- name: "Workaround for wrong SELinux context"
shell: "{{ minishift_bin }} ssh --profile {{ profile }} -- sudo restorecon -R /var/lib/docker"

0 comments on commit d148a27

Please sign in to comment.