Skip to content

Commit

Permalink
Issue minishift#242 Add cri-o, buildah, podman and skopeo packages
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkumar committed Jul 13, 2018
1 parent cf9f525 commit 2f7fc10
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions centos-7.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ repo --name=updates --baseurl=http://mirror.centos.org/centos/7/updates/x86_64/
repo --name=extras --baseurl=http://mirror.centos.org/centos/7/extras/x86_64/
repo --name=atomic --baseurl=http://mirror.centos.org/centos/7/atomic/x86_64/adb/
repo --name=hvkvp --baseurl=https://copr-be.cloud.fedoraproject.org/results/gbraad/go-hvkvp/epel-7-x86_64/
repo --name=virt7-container-common-candidate --baseurl=https://cbs.centos.org/repos/virt7-container-common-candidate/x86_64/os/
repo --name=paas7-openshift-origin39-candidate --baseurl=https://cbs.centos.org/repos/paas7-openshift-origin39-candidate/x86_64/os/

shutdown

Expand Down Expand Up @@ -51,6 +53,10 @@ python-setuptools
dnsmasq
subscription-manager-rhsm-certificates
httpd-tools
cri-o
podman
buildah
skopeo

#Packages to be removed
-aic94xx-firmware
Expand Down
11 changes: 11 additions & 0 deletions scripts/handle-user-data
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ mount_partitions() {
mount --bind /mnt/$PARTNAME/var/lib/docker /var/lib/docker
restorecon -R /var/lib/docker

mkdir -p /mnt/$PARTNAME/var/lib/containers
mkdir -p /var/lib/containers
mount --bind /mnt/$PARTNAME/var/lib/containers /var/lib/containers
restorecon -R /var/lib/containers

mkdir -p /mnt/$PARTNAME/var/lib/boot2docker
mkdir -p /var/lib/boot2docker
mount --bind /mnt/$PARTNAME/var/lib/boot2docker /var/lib/boot2docker
Expand All @@ -53,6 +58,12 @@ mount_partitions() {
mkdir -p /etc/docker
mount --bind /mnt/$PARTNAME/var/lib/boot2docker/etc/docker /etc/docker

mkdir -p /mnt/$PARTNAME/etc/containers
cp -r /etc/containers/* /mnt/$PARTNAME/etc/containers
rm -rf /etc/containers
mkdir -p /etc/containers
mount --bind /mnt/$PARTNAME/etc/containers /etc/containers

mkdir -p /mnt/$PARTNAME/var/lib/minishift
mkdir -p /var/lib/minishift
mount --bind /mnt/$PARTNAME/var/lib/minishift /var/lib/minishift
Expand Down
2 changes: 1 addition & 1 deletion tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function verify_nfs_installation() {

function verify_bind_mount() {
output=`$BINARY ssh -- 'findmnt | grep "\[/var/lib/" | wc -l'`
assert_equal $output "9"
assert_equal $output "11"
print_success_message "Bind mount check"
}

Expand Down

0 comments on commit 2f7fc10

Please sign in to comment.