Skip to content

Commit 6bf1266

Browse files
authoredMar 16, 2025··
Merge pull request #928 from c-po/T5400-fix-schroedingers-env
Docker: T5400: do not initialize OPAM environment at all
2 parents 0423450 + a33a6d2 commit 6bf1266

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed
 

‎docker/Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2018-2024 VyOS maintainers and contributors
1+
# Copyright (C) 2018-2025 VyOS maintainers and contributors
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# in order to easy exprort images built to "external" world
@@ -367,9 +367,8 @@ RUN sed "s/^%sudo.*/%sudo\tALL=(ALL) NOPASSWD:ALL/g" -i /etc/sudoers && \
367367
echo "vyos_bld\tALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
368368
chmod a+s /usr/sbin/useradd /usr/sbin/groupadd
369369

370-
# Ensure sure all users have access to our OCAM and Go installation
371-
RUN echo "eval \$(opam env --root=/opt/opam --set-root)" >> /etc/skel/.bashrc && \
372-
echo "export PATH=/opt/go/bin:\$PATH" >> /etc/skel/.bashrc
370+
# Ensure sure all users have access to Go
371+
RUN echo "export PATH=/opt/go/bin:\$PATH" >> /etc/skel/.bashrc
373372

374373
# Rise upper limit for UID when working in an Active Direcotry integrated
375374
# environment. This solves the warning: vyos_bld's uid 1632000007 outside of the

‎docker/entrypoint.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ if ! grep -q $NEW_GID /etc/group; then
2424
fi
2525

2626
useradd --shell /bin/bash --uid $NEW_UID --gid $NEW_GID --non-unique --create-home $USER_NAME
27-
sudo cp /etc/skel/.* /home/$USER_NAME
28-
sudo chown -R $NEW_UID:$NEW_GID /home/$USER_NAME
27+
sudo chown $NEW_UID:$NEW_GID /home/$USER_NAME
2928
export HOME=/home/$USER_NAME
3029

3130
if [ "$(id -u)" == "0" ]; then

0 commit comments

Comments
 (0)
Please sign in to comment.