From: Stephen Finucane Date: Tue, 17 Apr 2018 09:20:28 +0000 (+0100) Subject: docker: Remove bash aliases X-Git-Tag: v2.1.0-rc1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7484a8c044565ac8e683efdddfd726a5ecdc542a;p=thirdparty%2Fpatchwork.git docker: Remove bash aliases These seem to be a hangover from the Vagrant days. I don't personally use them anymore and I'm not sure anyone else does. I think they can go. Signed-off-by: Stephen Finucane Cc: Daniel Axtens --- diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 68a62e15..109410bb 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -43,15 +43,7 @@ RUN pip2 install virtualenv tox && \ # we deliberately leave the requirements files in tmp so we can # ping the user in entrypoint.sh if the change them! -COPY tools/docker/bashrc /tmp/bashrc - -# we put the code in ~/patchwork rather than ~ so that we -# can put in these bashrc snippets without dirtying the -# working directory -RUN cat /tmp/bashrc >> /home/patchwork/.bashrc - COPY tools/docker/entrypoint.sh /usr/local/bin/entrypoint.sh - ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] USER patchwork WORKDIR /home/patchwork/patchwork diff --git a/tools/docker/bashrc b/tools/docker/bashrc deleted file mode 100644 index eb2ed7dd..00000000 --- a/tools/docker/bashrc +++ /dev/null @@ -1,5 +0,0 @@ -# This snippet is appended to ~/.bashrc when the container is created - -alias runserver='python3 $PROJECT_HOME/manage.py runserver 0.0.0.0:8000' -alias createsu='python3 $PROJECT_HOME/manage.py createsuperuser' -