...like the Vagrant scripts (which have been renamed also).
Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
Acked-by: Daniel Axtens <dja@axtens.net>
.vagrant
-docker/db
+tools/docker/db
# vb.memory = "1024"
# end
- config.vm.provision :shell, :path => "tools/install/install.sh"
+ config.vm.provision :shell, :path => "tools/vagrant/install.sh"
end
# 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/
# 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
# 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"