-
-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |