Skip to content

Instantly share code, notes, and snippets.

@sreichholf
Last active February 4, 2019 10:36
Show Gist options
  • Save sreichholf/0c98fff26a5550aad241942eb09dc7da to your computer and use it in GitHub Desktop.
Save sreichholf/0c98fff26a5550aad241942eb09dc7da to your computer and use it in GitHub Desktop.
# build the container
docker build -t oe.krogoth - < Dockerfile.krogoth
# enter bash in the container
docker run -h krogoth -v /oe:/oe -v /home:/home -u oe -it oe.krogoth
FROM ubuntu:xenial
VOLUME /oe
VOLUME /home
RUN apt-get update && apt-get install -y \
python \
dbus \
unattended-upgrades \
net-tools \
iputils-ping \
bash-completion \
command-not-found \
dialog \
less \
locales \
lsof \
man-db \
mc \
openssh-server \
vim \
bzip2 \
ca-certificates \
chrpath \
cpio \
diffstat \
file \
g++ \
gawk \
gcc \
git \
make \
patch \
texinfo \
wget
RUN echo "krogoth" > /etc/hostname
RUN ln -sf /bin/bash /bin/sh
RUN useradd -ms /bin/bash oe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment