From ee7c25c767c357bd12570889f8ccd79ba9ea4eb9 Mon Sep 17 00:00:00 2001 From: am97 Date: Tue, 9 Oct 2018 17:35:02 +0200 Subject: Create new Docker dev image (#1173) * Move the old dev docker files to support/docker/janitor * Create new Docker dev image --- support/docker/dev/usage.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 support/docker/dev/usage.md (limited to 'support/docker/dev/usage.md') diff --git a/support/docker/dev/usage.md b/support/docker/dev/usage.md new file mode 100644 index 000000000..319d7db30 --- /dev/null +++ b/support/docker/dev/usage.md @@ -0,0 +1,20 @@ +### Usage +1. Build the image: + ``` + docker build -t my_peertube_dev . + ``` +1. Start the container: + ``` + docker run -d -i -p 3000:3000 -p 9000:9000 --name peertube my_peertube_dev + ``` + This will create a new Docker volume containing PeerTube sources. + +1. Start PeerTube inside the container: + ``` + docker exec -it peertube npm run dev + ``` +1. In another window, find the path to the Docker volume + ``` + docker inspect peertube | less +/Mounts + ``` + You can now make changes to the files. They should be automatically recompiled. -- cgit v1.2.3