Forum

ArchiveBox - how to...
 
Notifications
Clear all

ArchiveBox - how to run docker on windows with docker-compose

1 Posty
2 Users
0 Likes
3,030 Widok
0
Topic starter

how?

1 Answer
0
Topic starter

1. install https://www.docker.com/products/docker-desktop
2. install some other dependencies

1
2
3
4
5
1. @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateybin"
 
2. choco install docker
 
3. choco install docker-compose
1. @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateybin"

2. choco install docker

3. choco install docker-compose

then use

1
2
3
git clone https://github.com/pirate/ArchiveBox && cd ArchiveBox
mkdir data && chmod 777 data
docker-compose up -d
git clone  https://github.com/pirate/ArchiveBox  && cd ArchiveBox
mkdir data && chmod 777 data
docker-compose up -d

then

1
echo " https://example.com " | docker-compose exec -T archivebox /bin/archive
echo "https://example.com" | docker-compose exec -T archivebox /bin/archive

may not work.. soo you need to enter mannualy into containter (first check running containters docker container ls) and enter using root user

1
docker exec -it --user root CONTAINER_ID bash
docker exec -it --user root CONTAINER_ID bash

find archive.py and run int using

1
python3 archive.py http://website.url
python3 archive.py  http://website.url 

(dont forget to update youtube-dl using apt install pip then pip install -U youtube-dl)

Odpowiedź

Author Name

Author Email

Your question *

Preview 0 Revisions Saved
Share: