Skip to content

Instantly share code, notes, and snippets.

@avigail-oron
Last active October 2, 2019 08:19
Show Gist options
  • Save avigail-oron/f281b1d25d700cdd41ee7361239d3230 to your computer and use it in GitHub Desktop.
Save avigail-oron/f281b1d25d700cdd41ee7361239d3230 to your computer and use it in GitHub Desktop.
//OS: Ubuntu 16.04
//install Qemu with ARM
sudo apt install qemu-system-aarch64
//create a tap device for the VM - it's part of same network
sudo ip tuntap add dev sptap0 mode tap user ubuntu
sudo ip link set dev sptap0 up
//connect the tap and physical nic via a brisge:
sudo ip addr flush dev enp0s31f6
sudo ip addr flush dev sptap0
sudo brctl addbr brdemo
sudo brctl addif brdemo enp0s31f6 sptap0
sudo ip link set dev brdemo up
sudo dhclient brdemo
sudo ip route add default via 10.100.100.1 dev brdemo
//Install Buildah
sudo apt-get update -qq
sudo apt-get install -qq -y software-properties-common
sudo add-apt-repository -y ppa:projectatomic/ppa
sudo apt-get update -qq
sudo apt-get -qq -y install buildah
//configure the dockerhub repo in the repo file
sudo nano /etc/containers/registries.conf
//add the following to the file:
[registries.search]
registries = ['docker.io']
//clone the git repo
//set the ssh keys from repo as the demouser ssh keypair
./buildarmcontainer.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment