]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docker: Move 'docker' directory to 'tools'
authorStephen Finucane <stephenfinucane@hotmail.com>
Mon, 29 Aug 2016 23:35:38 +0000 (00:35 +0100)
committerStephen Finucane <stephenfinucane@hotmail.com>
Thu, 1 Sep 2016 18:15:35 +0000 (19:15 +0100)
...like the Vagrant scripts (which have been renamed also).

Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
Acked-by: Daniel Axtens <dja@axtens.net>
.dockerignore
Vagrantfile
docker-compose.yml
tools/docker/Dockerfile [moved from docker/Dockerfile with 92% similarity]
tools/docker/bashrc [moved from docker/bashrc with 100% similarity]
tools/docker/db/.dockerignore [moved from docker/db/.dockerignore with 100% similarity]
tools/docker/db/.gitignore [moved from docker/db/.gitignore with 100% similarity]
tools/docker/db/Dockerfile [moved from docker/db/Dockerfile with 100% similarity]
tools/docker/entrypoint.sh [moved from docker/entrypoint.sh with 97% similarity]
tools/vagrant/install.sh [moved from tools/install/install.sh with 100% similarity]

index 24473bbe1237736bbe2b1c22c47f96398837f08c..83cfa98ad72081002875a4f9287c867cb0a01051 100644 (file)
@@ -1,3 +1,3 @@
 .vagrant
-docker/db
+tools/docker/db
 
index b316d41f5eba6262cca2a6da656bd51039ae5cb0..2ddbca099775a8c45c593be4c8d659ae5d62441d 100644 (file)
@@ -22,5 +22,5 @@ Vagrant.configure(2) do |config|
   #   vb.memory = "1024"
   # end
 
-  config.vm.provision :shell, :path => "tools/install/install.sh"
+  config.vm.provision :shell, :path => "tools/vagrant/install.sh"
 end
index 881a72ad6de14c5c902d30180709e049fd83de6c..7db3486ac734337dc8d599fc1453d455f2766a35 100644 (file)
@@ -5,12 +5,12 @@
 # or upgrade to v2 and use the build-arg to override it.
 
 db:
-  build: docker/db
+  build: tools/docker/db
   volumes:
-   - ./docker/db/data:/var/lib/mysql
+   - ./tools/docker/db/data:/var/lib/mysql
 web:
   build: .
-  dockerfile: ./docker/Dockerfile
+  dockerfile: ./tools/docker/Dockerfile
   command: python3 manage.py runserver 0.0.0.0:8000
   volumes:
     - .:/home/patchwork/patchwork/
similarity index 92%
rename from docker/Dockerfile
rename to tools/docker/Dockerfile
index ea2a8fc5ab779c70aa883230b83f62260695d981..99a03bde1840d0d00e53f0f64ef46364759cd31a 100644 (file)
@@ -32,14 +32,14 @@ RUN pip3  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 docker/bashrc /tmp/bashrc
+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 docker/entrypoint.sh /usr/local/bin/entrypoint.sh
+COPY tools/docker/entrypoint.sh /usr/local/bin/entrypoint.sh
 
 ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
 USER patchwork
similarity index 100%
rename from docker/bashrc
rename to tools/docker/bashrc
similarity index 97%
rename from docker/entrypoint.sh
rename to tools/docker/entrypoint.sh
index 744ed69076f39b67b24b237468a946a86b8651b5..d8ca7984baf66f81ee678cc3f5ab991dd423f039 100755 (executable)
@@ -27,7 +27,7 @@ EOF
 
 # check if patchwork is mounted. Checking if we exist is a
 # very good start!
-if [ ! -f ~patchwork/patchwork/docker/entrypoint.sh ]; then
+if [ ! -f ~patchwork/patchwork/tools/docker/entrypoint.sh ]; then
     echo "The patchwork directory doesn't seem to be mounted!"
     echo "Are you using docker-compose?"
     echo "If not, you need -v PATH_TO_PATCHWORK:/home/patchwork/patchwork"