Skip to content

Commit

Permalink
adding a docker entrypointn script and changing the umask in the bash…
Browse files Browse the repository at this point in the history
…rc to fix issue #3
  • Loading branch information
micah-prime committed Dec 11, 2018
1 parent 46330c7 commit ab4f93d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ RUN apt-get clean \
&& rm -rf $WNSCRIPTS


#ENTRYPOINT ["/code/katana/run_katana"]
ENTRYPOINT ["run_katana"]
CMD ["/bin/bash"]
# ENTRYPOINT ["/code/katana/run_katana"]
# ENTRYPOINT ["run_katana"]
# CMD ["/bin/bash"]
COPY ./docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
RUN echo "umask 0002" >> /etc/bash.bashrc
ENTRYPOINT ["/docker-entrypoint.sh"]
12 changes: 12 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -e

run_katana='python3 /code/katana/scripts/run_katana'

if [ $# -eq 0 ]; then
exec "/bin/bash"
else
echo "Running katana with"
echo "$@"
exec $run_katana "$@"
fi

0 comments on commit ab4f93d

Please sign in to comment.