ArchiveBox - how to run docker on windows with docker-compose« Wróć do listy pytań

how?
Wysłane przez mrmucha
Zadane przez 23/06/2019 21:12
0

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%\chocolatey\bin"
 
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%\chocolatey\bin"

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)

Wysłane przez mrmucha
Odpowiedziane 23/06/2019 21:18