aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/docker_images/files/base/Dockerfile
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-05-05 08:10:29 +0000
committerpmikus <peter.mikus@protonmail.ch>2023-05-05 08:10:29 +0000
commitd4f8ab4aa9b8f918e31d85802dad62a225bbe775 (patch)
tree078897dc551989a2e50cead23526613ba3877d22 /fdio.infra.ansible/roles/docker_images/files/base/Dockerfile
parent089b5394689ac28e2e77e16d51197c19cc3dd486 (diff)
fix(ansible): Docker image roles
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ic9f9044ffd7ba1a8720fc029aaf2bd154eb043a5
Diffstat (limited to 'fdio.infra.ansible/roles/docker_images/files/base/Dockerfile')
-rw-r--r--fdio.infra.ansible/roles/docker_images/files/base/Dockerfile8
1 files changed, 7 insertions, 1 deletions
diff --git a/fdio.infra.ansible/roles/docker_images/files/base/Dockerfile b/fdio.infra.ansible/roles/docker_images/files/base/Dockerfile
index 0a17bf6404..cbbaf35f6f 100644
--- a/fdio.infra.ansible/roles/docker_images/files/base/Dockerfile
+++ b/fdio.infra.ansible/roles/docker_images/files/base/Dockerfile
@@ -67,6 +67,7 @@ RUN apt-get -q update \
vim \
wget \
zlib1g-dev \
+ && ln -s -f /usr/lib/x86_64-linux-gnu/libc.a /usr/lib/x86_64-linux-gnu/liblibc.a \
&& curl -fsSL https://get.docker.com | sh \
&& rm -rf /var/lib/apt/lists/*
@@ -146,7 +147,12 @@ RUN pip3 install \
snowballstemmer==2.2.0 \
urllib3==1.26.10
-RUN useradd -rm -d /home/testuser -s /bin/bash -g root -G sudo -u 1000 testuser \
+RUN groupadd -g 1000 testuser \
+ && useradd -rm -d /home/testuser -s /bin/bash -g testuser -G sudo -u 1000 testuser \
&& echo 'testuser:Csit1234' | chpasswd
+RUN echo 'root:Csit1234' | chpasswd \
+ && sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \
+ && echo "export VISIBLE=now" >> /etc/profile
+
RUN service ssh start \ No newline at end of file