Skip to content

Commit 75657e5

Browse files
authored
fix: add conincidentally ignored files (#2)
1 parent 310e65e commit 75657e5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

build/bin/entrypoint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh -e
2+
3+
exec ${OPERATOR} $@

build/bin/user_setup

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -x
3+
4+
# ensure $HOME exists and is accessible by group 0 (we don't know what the runtime UID will be)
5+
echo "${USER_NAME}:x:${USER_UID}:0:${USER_NAME} user:${HOME}:/sbin/nologin" >> /etc/passwd
6+
mkdir -p ${HOME}
7+
chown ${USER_UID}:0 ${HOME}
8+
chmod ug+rwx ${HOME}
9+
10+
# no need for this script to remain in the image after running
11+
rm $0

0 commit comments

Comments
 (0)