From f7b10df3561109438a8f97738436ff137e0b8efb Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Sat, 22 Apr 2023 18:57:35 +0300 Subject: [PATCH] Add .gitpod.Dockerfile --- .gitpod.Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitpod.Dockerfile diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 000000000..e23431826 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,26 @@ +FROM ubuntu:jammy + +USER root + +# update system and install packages +RUN apt update && apt upgrade -y \ + && apt install -y ca-certificates gnupg lsb-release -yq git git-lfs sudo python3 python3-pip \ + vim nano iproute2 wget curl htop + +# install docker +RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \ + && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ + $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \ + && apt update \ + && apt install -y docker-ce docker-ce-cli containerd.io + +# install molecule and ansible +RUN pip3 install molecule[docker] ansible ansible-lint yamllint + +# clean +RUN apt clean && rm -rf /var/lib/apt/lists/* /tmp/* + +# Create the gitpod user. UID must be 33333. +RUN useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod + +USER gitpod