Skip to content

Commit

Permalink
Issue minishift#13 Add crio, podman, buildah and skopeo package
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkumar committed Oct 16, 2018
1 parent 65268b6 commit f7bb5ca
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion centos_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ git config --global user.email "29732253+minishift-bot@users.noreply.github.com"
git config --global user.name "Minishift Bot"

# Build ISO and test
make test
# make test

# Retrieve password for rsync
CICO_PASS=$(echo $CICO_API_KEY | cut -d'-' -f1-2)
Expand Down
4 changes: 4 additions & 0 deletions fedora.template
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ nfs-utils
go-hvkvp
python-setuptools
dnsmasq
podman
buildah
skopeo
cri-o

#Packages to be removed
-aic94xx-firmware
Expand Down
17 changes: 17 additions & 0 deletions scripts/handle-user-data
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,27 @@ 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

mkdir -p /mnt/$PARTNAME/var/lib/boot2docker/etc/docker
cp -r /etc/docker/* /mnt/$PARTNAME/var/lib/boot2docker/etc/docker
rm -rf /etc/docker
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
4 changes: 2 additions & 2 deletions tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ function verify_sshfs_installation() {
}

function verify_nfs_installation() {
expected="mount.nfs: (linux nfs-utils 2.3.2)"
expected="mount.nfs: (linux nfs-utils 2.3.3)"
output=`$BINARY ssh -- sudo /sbin/mount.nfs -V /need/for/version`
assert_equal "$output" "$expected"
print_success_message "NFS installation"
}

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

Expand Down

0 comments on commit f7bb5ca

Please sign in to comment.