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

Issue #13 Add crio, podman, buildah and skopeo package #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "[email protected]"
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