Last active
September 12, 2019 07:20
-
-
Save evrardjp/58015ed78d4cea3264dba561832eb213 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env | grep -q SSH_AUTH_SOCK || echo "SSH AGENT NOT RUNNING" | |
git clone https://github.com/evrardjp/socok8s.git | |
cd socok8s | |
git checkout mega_patch | |
scripts/dev/caasp4.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zypper ar http://download.suse.de/ibs/SUSE:/CA/openSUSE_Leap_15.1/SUSE:CA.repo | |
zypper install -y podman podman-cni-config git ca-certificates-suse libvirt qemu-kvm jq | |
cat << EOF >> /etc/libvirt/libvirtd.conf | |
listen_tls = 0 | |
listen_tcp = 1 | |
auth_tcp = "none" | |
EOF | |
systemctl daemon-reload; systemctl start libvirtd | |
virsh pool-define-as default dir - - - - /images | |
virsh pool-build default | |
virsh pool-start default | |
virsh pool-autostart default |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DEPLOYMENT_MECHANISM=libvirt | |
export SOCOK8S_WORKSPACE=/root/workspace | |
export SOCOK8S_ENVNAME=workspace1 | |
export LIBVIRT_DEFAULT_URI=qemu+tcp://192.168.102.196:16509/system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.define "caasp", autostart: true do |caasp| | |
caasp.box = "dcermak/openSUSE-Leap-15.1-Vagrant.x86_64" | |
caasp.vm.hostname = "caasp" | |
caasp.vm.provider :libvirt do |domain| | |
domain.memory = 4096 | |
domain.cpus = 2 | |
domain.storage :file, :size => '5G', :device => 'vdb', :type => 'raw' | |
end | |
caasp.network "private_network", ip: "192.168.102.196" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment