Public Repository

Last pushed: a year ago
Short Description
Minimal build of xenial for the arm64 architecture.
Full Description

The script used is :

#!/bin/bash

set -ex

apt-get install qemu qemu-kvm\
debootstrap

sudo debootstrap \
--arch=arm64 \
--verbose \
--foreign \
--components=main,restricted,universe,multiverse \
--include=docker.io,curl,zsh,git,git-core,openssl,openssh-server,sudo \
$1 \
$1-rootfs

cp /usr/bin/qemu-aarch64-static $1-rootfs/usr/bin
cp resize_rootfs.sh $1-rootfs/root/

chroot $1-rootfs /bin/bash /debootstrap/debootstrap --second-stage

chroot $1-rootfs /bin/bash

useradd -m -G adm,sudo -p $(openssl passwd -1 ubuntu) ubuntu

apt-get clean
apt-get autoremove
apt-get autoclean

exit

cd $1-rootfs ; tar -cvf ../$1-rootfs.tar . ; cd ..

Docker Pull Command
Owner
hellhand

Comments (0)