From 60c6adf7f5068c5f89dde637031b0e41085061d6 Mon Sep 17 00:00:00 2001 From: "Martin M. S. Pedersen" Date: Fri, 15 May 2020 10:01:35 +0200 Subject: [PATCH 1/3] Fix example in Dockerfile. The source for a mount must be absolute. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 63361bb3..785b433b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ # - ArchiveBox # Usage: # docker build github.com/pirate/ArchiveBox -t archivebox -# echo 'https://example.com' | docker run -i --mount type=bind,source=./data,target=/data archivebox /bin/archive -# docker run --mount type=bind,source=./data,target=/data archivebox /bin/archive 'https://example.com/some/rss/feed.xml' +# echo 'https://example.com' | docker run -i --mount type=bind,source=$PWD/data,target=/data archivebox /bin/archive +# docker run --mount type=bind,source=$PWD/data,target=/data archivebox /bin/archive 'https://example.com/some/rss/feed.xml' # Documentation: # https://github.com/pirate/ArchiveBox/wiki/Docker#docker From 930688820b688aaf46b00430d7bf08d594b13b8c Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 18 May 2020 16:54:58 -0400 Subject: [PATCH 2/3] change to volume mount style --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 785b433b..a0ce3bc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ # Usage: # docker build github.com/pirate/ArchiveBox -t archivebox # echo 'https://example.com' | docker run -i --mount type=bind,source=$PWD/data,target=/data archivebox /bin/archive -# docker run --mount type=bind,source=$PWD/data,target=/data archivebox /bin/archive 'https://example.com/some/rss/feed.xml' +# docker run -v ./data:/data archivebox /bin/archive 'https://example.com/some/rss/feed.xml' # Documentation: # https://github.com/pirate/ArchiveBox/wiki/Docker#docker From 6c4c6862e2052d4d0b0c7640361dfd93d6ea7748 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 18 May 2020 16:55:39 -0400 Subject: [PATCH 3/3] change to volume mount style --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a0ce3bc1..70a89c64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ # - ArchiveBox # Usage: # docker build github.com/pirate/ArchiveBox -t archivebox -# echo 'https://example.com' | docker run -i --mount type=bind,source=$PWD/data,target=/data archivebox /bin/archive +# echo 'https://example.com' | docker run -i -v ./data:/data archivebox /bin/archive # docker run -v ./data:/data archivebox /bin/archive 'https://example.com/some/rss/feed.xml' # Documentation: # https://github.com/pirate/ArchiveBox/wiki/Docker#docker