Skip to content
Snippets Groups Projects
Commit 1351464d authored by Suru Dissanaike's avatar Suru Dissanaike
Browse files

removed user conf that was not used

parent da6ab112
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ FROM ubuntu:18.04 ...@@ -3,7 +3,7 @@ FROM ubuntu:18.04
LABEL maintainer="suru.dissanaike@iopsys.eu" LABEL maintainer="suru.dissanaike@iopsys.eu"
LABEL build="docker build -t iopsys-codeanalysis ." LABEL build="docker build -t iopsys-codeanalysis ."
LABEL run="docker run -d --name codeanalysis --rm -v ${PWD}:/opt/work -e LOCAL_USER_ID=`id -u $USER` iopsys-codeanalysis" LABEL run="docker run -d --name codeanalysis --rm -v ${PWD}:/opt/work -e LOCAL_USER_ID=`id -u $USER` iopsys-codeanalysis"
LABEL exec="docker exec --user=user -it codeanalysis bash" LABEL exec="docker exec -it codeanalysis bash"
RUN \ RUN \
......
#!/bin/bash #!/bin/bash
# Create user
USER_ID=${LOCAL_USER_ID:-9001}
useradd --shell /bin/bash -u $USER_ID -G sudo -o -c "" -m user
adduser --disabled-password user
export HOME=/home/user
echo "user ALL = NOPASSWD : ALL" >> /etc/sudoers
# Start supervisor # Start supervisor
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf -l /var/log/supervisord.log -j /var/run/supervisord.pid /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf -l /var/log/supervisord.log -j /var/run/supervisord.pid
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment