Skip to content

Commit 375740b

Browse files
committed
Set sudo password for developer user in dev container
This makes it possible to do live changes in a running container and debug issues there before adding to Dockerfile.
1 parent cafbf98 commit 375740b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ RUN bash -c "source /opt/build.sh; GetNrfSdk;"
6464
# McuBoot
6565
RUN bash -c "source /opt/build.sh; GetMcuBoot;"
6666

67-
# Add the infinitime user for connecting devcontainer
68-
RUN adduser infinitime
67+
# Add the infinitime user with sudo password "it" for developing in devcontainer
68+
RUN adduser infinitime && echo "infinitime:it" | chpasswd && usermod -aG sudo infinitime
6969

7070
# Configure Git to accept the /sources directory as safe
7171
RUN git config --global --add safe.directory /sources

0 commit comments

Comments
 (0)