Skip to content

Commit

Permalink
Add .gitpod.Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Apr 22, 2023
1 parent 5bf8878 commit f7b10df
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f7b10df

Please sign in to comment.