summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-11 22:08:46 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-11 22:08:46 +0100
commitab233b998359598eefc57b6cbe2ece50854647c9 (patch)
treeb4a481515e42b84c7f06a11c0378f7192321d1d9 /docker
parentdff256ed5b3fb7c69561b82e9614776104be531f (diff)
downloadvyos-documentation-ab233b998359598eefc57b6cbe2ece50854647c9.tar.gz
vyos-documentation-ab233b998359598eefc57b6cbe2ece50854647c9.zip
Docker: convert (dos2unix) entrypoint
We need to convert the entrypoint with appropriate line endings, else there will be an error: 'standard_init_linux.go:175: exec user process caused "no such file or directory"'
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile10
-rwxr-xr-xdocker/entrypoint.sh1
2 files changed, 9 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 3aa9e14c..80e58b1a 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -26,7 +26,8 @@ RUN apt-get update && apt-get install -y \
sudo \
gosu \
graphviz \
- curl
+ curl \
+ dos2unix
RUN pip3 install sphinx-autobuild
@@ -43,4 +44,11 @@ RUN sed "s/^%sudo.*/%sudo\tALL=(ALL) NOPASSWD:ALL/g" -i /etc/sudoers && \
RUN curl -sfL https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh -s v1.7.1
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
+
+# we need to convert the entrypoint with appropriate line endings, else
+# there will be an error:
+# standard_init_linux.go:175: exec user process caused
+# "no such file or directory"
+RUN dos2unix /usr/local/bin/entrypoint.sh
+
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index d9cbc33c..8db41103 100755
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -1,6 +1,5 @@
#!/bin/bash
set -e
-exec "$@"
USER_NAME="vyos_bld"
NEW_UID=$(stat -c "%u" .)