]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docker: Remove bash aliases
authorStephen Finucane <stephen@that.guru>
Tue, 17 Apr 2018 09:20:28 +0000 (10:20 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 26 Apr 2018 09:47:02 +0000 (10:47 +0100)
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 <stephen@that.guru>
Cc: Daniel Axtens <dja@axtens.net>
tools/docker/Dockerfile
tools/docker/bashrc [deleted file]

index 68a62e158cbe6f57bb9d50e4129fa871407dc3b4..109410bb1ff4c71a53440320b777539d3c2759ae 100644 (file)
@@ -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 (file)
index eb2ed7d..0000000
+++ /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'
-