mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix lint and improve docker-compose instructions
This commit is contained in:
parent
ac72423886
commit
1b96c582a7
3 changed files with 22 additions and 7 deletions
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
|
@ -66,7 +66,7 @@ jobs:
|
||||||
|
|
||||||
- name: Test built package with pytest
|
- name: Test built package with pytest
|
||||||
run: |
|
run: |
|
||||||
./.venv/bin/python -m pipenv run pytest -s
|
./.venv/bin/python -m pytest -s
|
||||||
|
|
||||||
docker-test:
|
docker-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -111,5 +111,13 @@ jobs:
|
||||||
|
|
||||||
- name: Curl to Django app
|
- name: Curl to Django app
|
||||||
run: |
|
run: |
|
||||||
sleep 10
|
sleep 8
|
||||||
curl --silent --location 'http://127.0.0.1:8000' | grep 'https://github.com/pirate/ArchiveBox/wiki'
|
curl --silent --location 'http://127.0.0.1:8000' | grep 'ArchiveBox Admin'
|
||||||
|
docker-compose run archivebox config --set PUBLIC_INDEX=True
|
||||||
|
docker-compose run archivebox add 'http://example.com/#test_docker' --index-only
|
||||||
|
docker-compose stop archivebox
|
||||||
|
docker-compose up -d
|
||||||
|
sleep 8
|
||||||
|
curl --silent --location 'http://127.0.0.1:8000' | grep 'Add Links'
|
||||||
|
curl --silent --location 'http://127.0.0.1:8000' | grep 'http://example.com/#test_docker'
|
||||||
|
docker-compose down
|
||||||
|
|
14
README.md
14
README.md
|
@ -70,12 +70,20 @@ To get started, you can [install them manually](https://github.com/pirate/Archiv
|
||||||
```bash
|
```bash
|
||||||
# Docker
|
# Docker
|
||||||
mkdir data && cd data
|
mkdir data && cd data
|
||||||
docker run -v $PWD:/data archivebox init
|
docker run -v $PWD:/data nikisweeting:archivebox init
|
||||||
docker run -v $PWD:/data archivebox add 'https://example.com'
|
docker run -v $PWD:/data nikisweeting:archivebox add 'https://example.com'
|
||||||
docker run -v $PWD:/data -p 8000 archivebox server
|
docker run -v $PWD:/data -p 8000 nikisweeting:archivebox server
|
||||||
open https://127.0.0.1:8000
|
open https://127.0.0.1:8000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Docker Compose
|
||||||
|
# Download https://github.com/pirate/ArchiveBox/tree/master/docker-compose.yml
|
||||||
|
docker-compose run archivebox init
|
||||||
|
docker-compose run archivebox add 'https://example.com'
|
||||||
|
docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Bare Metal
|
# Bare Metal
|
||||||
# Use apt on Ubuntu/Debian, brew on mac, or pkg on BSD
|
# Use apt on Ubuntu/Debian, brew on mac, or pkg on BSD
|
||||||
|
|
|
@ -20,7 +20,6 @@ from .config import (
|
||||||
PYTHON_ENCODING,
|
PYTHON_ENCODING,
|
||||||
ANSI,
|
ANSI,
|
||||||
IS_TTY,
|
IS_TTY,
|
||||||
SHOW_PROGRESS,
|
|
||||||
TERM_WIDTH,
|
TERM_WIDTH,
|
||||||
OUTPUT_DIR,
|
OUTPUT_DIR,
|
||||||
SOURCES_DIR_NAME,
|
SOURCES_DIR_NAME,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue