File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 33
33
]
34
34
}
35
35
},
36
- "remoteUser" : " infinitime "
36
+ "remoteUser" : " ubuntu "
37
37
}
Original file line number Diff line number Diff line change @@ -65,8 +65,16 @@ RUN bash -c "source /opt/build.sh; GetNrfSdk;"
65
65
# McuBoot
66
66
RUN bash -c "source /opt/build.sh; GetMcuBoot;"
67
67
68
- # Add the infinitime user with sudo password "it" for developing in devcontainer
69
- RUN adduser infinitime && echo "infinitime:it" | chpasswd && usermod -aG sudo infinitime
68
+ ARG USERNAME=ubuntu
69
+
70
+ # Setup the ubuntu user with sudo password "ubuntu" for developing in devcontainer
71
+ RUN echo "$USERNAME:ubuntu" | chpasswd && usermod -aG sudo $USERNAME
72
+
73
+ RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \
74
+ && mkdir /commandhistory \
75
+ && touch /commandhistory/.bash_history \
76
+ && chown -R $USERNAME /commandhistory \
77
+ && echo "$SNIPPET" >> "/home/$USERNAME/.bashrc"
70
78
71
79
# Configure Git to accept the /sources directory as safe
72
80
RUN git config --global --add safe.directory /sources
You can’t perform that action at this time.
0 commit comments