Skip to content

Instantly share code, notes, and snippets.

@zkingboos
Created March 3, 2020 01:29
Show Gist options
  • Save zkingboos/948b7055ff14a80dc1b8dbe75ef9fc95 to your computer and use it in GitHub Desktop.
Save zkingboos/948b7055ff14a80dc1b8dbe75ef9fc95 to your computer and use it in GitHub Desktop.
FROM gitpod/workspace-full
USER root
ARG DEBIAN_FRONTEND=noninteractive
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - \
&& add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
xenial \
stable" \
&& apt-cache policy docker-ce \
&& apt-get update \
&& apt-get install -y \
dmsetup \
iproute2 \
git \
git-man \
imagemagick \
imagemagick-6-common \
imagemagick-6.q16 \
libdevmapper1.02.1 \
libdjvulibre-dev \
libdjvulibre-text \
libdjvulibre21 \
libfribidi0 \
libjpeg-turbo8 \
libjpeg-turbo8-dev \
libmagickcore-6-arch-config \
libmagickcore-6-headers \
libmagickcore-6.q16-6 \
libmagickcore-6.q16-6-extra \
libmagickcore-6.q16-dev \
libmagickcore-dev \
libmagickwand-6-headers \
libmagickwand-6.q16-6 \
libmagickwand-6.q16-dev \
libmagickwand-dev \
libmysqlclient-dev \
libmysqlclient20 \
libnss-systemd \
libpam-systemd \
libruby2.5 \
libsqlite3-0 \
libsqlite3-dev \
libssh-4 \
libsystemd0 \
libudev1 \
linux-libc-dev \
python3-distutils \
python3-lib2to3 \
ruby2.5 \
systemd \
systemd-sysv \
unattended-upgrades \
apt-utils \
apt-transport-https \
netstat-nat \
ca-certificates \
overlayroot \
fuse-overlayfs \
curl \
gnupg2 \
uidmap \
lxc \
lxc-dev \
kmod \
software-properties-common \
docker-ce \
docker-ce-cli \
containerd.io \
&& service docker start \
&& usermod -aG docker gitpod \
&& newgrp docker
USER gitpod
RUN echo "export XDG_RUNTIME_DIR=/tmp/docker-33333" >> ~/.bashrc \
&& echo "export PATH=/home/gitpod/bin:$PATH" >> ~/.bashrc \
&& echo "export DOCKER_HOST=unix:///tmp/docker-33333/docker.sock" >> ~/.bashrc \
&& export SKIP_IPTABLES=1 \
&& curl -fsSL https://get.docker.com/rootless | sh
CMD . /home/gitpod/.bashrc
image:
file: .gitpod.Dockerfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment