Skip to content

Commit

Permalink
Allow for noble where ubuntu user already exists in container
Browse files Browse the repository at this point in the history
  • Loading branch information
plars committed Nov 22, 2024
1 parent 73ab39b commit cd0b3d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/extra/testflinger-testenv/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG BASE_IMAGE=ubuntu:20.04
FROM ${BASE_IMAGE}
ENV container docker
ENV container=docker
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common expect sudo openssh-client virtualenv curl wget build-essential python3-setuptools python3-dev python3-pip python3-requests python3-psutil git
RUN adduser -u 1000 --disabled-password ubuntu
RUN adduser -u 1000 --disabled-password ubuntu | /bin/true
RUN echo "ubuntu ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/ubuntu && \
chmod 0440 /etc/sudoers.d/ubuntu
#Avoid sudo rlimit error
Expand Down

0 comments on commit cd0b3d8

Please sign in to comment.