Skip to content

Instantly share code, notes, and snippets.

@vielmetti
Forked from rn/packet.net.md
Created July 26, 2017 20:51
Show Gist options
  • Save vielmetti/9b8f5cf3737b947a93943615105de651 to your computer and use it in GitHub Desktop.
Save vielmetti/9b8f5cf3737b947a93943615105de651 to your computer and use it in GitHub Desktop.
LinuxKit ARM64 notes
# Deploy a Ubuntu 16.04 LTS server on packet.net
# ssh into as root
# Install docker. Starting with 17.07 Docker ships prebuild arm64 binaries.
# when writing the first RC was out, so we are using the testing channel for now
# loosely following https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#recommended-extra-packages-for-trusty-1404
apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add arm64 testing
add-apt-repository \
"deb [arch=arm64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
test"
apt-get update
apt-get install -y docker-ce
# Create users and add them to the docker group
adduser rneugeba
usermod -aG docker rneugeba
# We may also need notary for signing.
# There are no prebuild arm64 binaries to building from source
git clone [email protected]:docker/notary.git && cd notary
git checkout v0.5.0
docker run --rm -ti -v $(pwd):/go/src/github.com/docker/notary arm64v8/debian:stretch
# then in the container
export GOPATH=/go
apt-get update && apt-get install -y libltdl-dev golang-go git make
cd /go/src/github.com/docker/notary/
make client
exit
# now install the binary
cp ./bin/notary /usr/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment