mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 18:38:40 +00:00
feat: use ubuntu:22.04 in devcontainer (#8647)
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
This commit is contained in:
parent
15a8970e23
commit
683712b7ff
1 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM ubuntu:latest@sha256:d24fc795ac86ab8e488a65bfd6695169655f3a43cbec59205121b594cde0c41b
|
||||
FROM ubuntu:22.04@sha256:965fbcae990b0467ed5657caceaec165018ef44a4d2d46c7cdea80a9dff0d1ea
|
||||
|
||||
RUN apt-get update && apt-get install -y sudo git curl apt-transport-https ca-certificates gnupg-agent software-properties-common
|
||||
ARG USERNAME=root
|
||||
|
@ -6,17 +6,17 @@ RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
|
|||
&& chmod 0440 /etc/sudoers.d/$USERNAME
|
||||
|
||||
# Install Golang
|
||||
RUN curl -LO https://dl.google.com/go/go1.20.linux-amd64.tar.gz \
|
||||
&& tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz \
|
||||
&& rm go1.20.linux-amd64.tar.gz \
|
||||
RUN curl -LO https://dl.google.com/go/go1.21.3.linux-amd64.tar.gz \
|
||||
&& tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz \
|
||||
&& rm go1.21.3.linux-amd64.tar.gz \
|
||||
&& echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
|
||||
|
||||
# Install Docker
|
||||
# Install Docker
|
||||
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
||||
RUN echo \
|
||||
"deb [arch=amd64 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
|
||||
"deb [arch=amd64 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
|
||||
RUN apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io
|
||||
|
||||
# Install kubectl and Minikube
|
||||
|
|
Loading…
Add table
Reference in a new issue