summaryrefslogtreecommitdiff
path: root/docker/entrypoint.sh
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-26 13:57:01 +0100
committerChristian Poessinger <christian@poessinger.com>2019-01-26 13:57:01 +0100
commitc268053839010c5abbef223498a71a5ecce8a632 (patch)
tree2a252a41c9b465a1f0551619fa62883144f0488d /docker/entrypoint.sh
parent32bae0ef24706e11d9b072b5d2c99f33c26cf050 (diff)
downloadvyos-build-c268053839010c5abbef223498a71a5ecce8a632.tar.gz
vyos-build-c268053839010c5abbef223498a71a5ecce8a632.zip
Docker: evaluate OPAM environment during build time
Diffstat (limited to 'docker/entrypoint.sh')
-rwxr-xr-xdocker/entrypoint.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index ed6ca7d9..8db41103 100755
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -23,10 +23,6 @@ if ! grep -q $NEW_GID /etc/group; then
groupadd --gid $NEW_GID $USER_NAME
fi
-# libvyosconfig depends on OCaml/OPAM so we make sure
-# we can use it
-echo "eval \$(opam env --root=/opt/opam --set-root)" >> /etc/skel/.bashrc
-
useradd --shell /bin/bash --uid $NEW_UID --gid $NEW_GID --non-unique --create-home $USER_NAME
usermod --append --groups sudo $USER_NAME
sudo chown $NEW_UID:$NEW_GID /home/$USER_NAME