Merge branch 'dev' into plugins-browsertrix

This commit is contained in:
Nick Sweeting 2024-04-24 16:59:26 -07:00 committed by GitHub
commit e59406541d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 30 deletions

View file

@ -11,7 +11,7 @@ on:
env: env:
DOCKER_IMAGE: archivebox-ci DOCKER_IMAGE: archivebox-ci
jobs: jobs:
buildx: buildx:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -24,21 +24,21 @@ jobs:
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with: with:
version: latest version: latest
install: true install: true
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64
- name: Builder instance name - name: Builder instance name
run: echo ${{ steps.buildx.outputs.name }} run: echo ${{ steps.buildx.outputs.name }}
- name: Available platforms - name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }} run: echo ${{ steps.buildx.outputs.platforms }}
- name: Cache Docker layers - name: Cache Docker layers
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -51,21 +51,27 @@ jobs:
uses: docker/login-action@v3 uses: docker/login-action@v3
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Collect Docker tags - name: Collect Docker tags
# https://github.com/docker/metadata-action
id: docker_meta id: docker_meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: archivebox/archivebox,nikisweeting/archivebox images: archivebox/archivebox,nikisweeting/archivebox
tags: | tags: |
# :stable
type=ref,event=branch type=ref,event=branch
# :0.7.3
type=semver,pattern={{version}} type=semver,pattern={{version}}
# :0.7
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
# :sha-463ea54
type=sha type=sha
type=raw,value=latest,enable={{is_default_branch}} # :latest
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'stable') }}
- name: Build and push - name: Build and push
id: docker_build id: docker_build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -77,7 +83,7 @@ jobs:
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
cache-from: type=local,src=/tmp/.buildx-cache cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new cache-to: type=local,dest=/tmp/.buildx-cache-new
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64
- name: Image digest - name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }} run: echo ${{ steps.docker_build.outputs.digest }}
@ -88,7 +94,7 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
repository: archivebox/archivebox repository: archivebox/archivebox
# This ugly bit is necessary if you don't want your cache to grow forever # This ugly bit is necessary if you don't want your cache to grow forever
# until it hits GitHub's limit of 5GB. # until it hits GitHub's limit of 5GB.
# Temp fix # Temp fix

View file

@ -27,9 +27,9 @@ if (which docker-compose > /dev/null && docker pull archivebox/archivebox:latest
if [ -f "./index.sqlite3" ]; then if [ -f "./index.sqlite3" ]; then
mv -i ~/archivebox/* ~/archivebox/data/ mv -i ~/archivebox/* ~/archivebox/data/
fi fi
curl -fsSL 'https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/main/docker-compose.yml' > docker-compose.yml curl -fsSL 'https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/stable/docker-compose.yml' > docker-compose.yml
mkdir -p ./etc mkdir -p ./etc
curl -fsSL 'https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/main/etc/sonic.cfg' > ./etc/sonic.cfg curl -fsSL 'https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/stable/etc/sonic.cfg' > ./etc/sonic.cfg
docker compose run --rm archivebox init --setup docker compose run --rm archivebox init --setup
echo echo
echo "[+] Starting ArchiveBox server using: docker compose up -d..." echo "[+] Starting ArchiveBox server using: docker compose up -d..."

View file

@ -47,17 +47,17 @@ services:
# $ docker compose restart archivebox_scheduler # $ docker compose restart archivebox_scheduler
archivebox_scheduler: archivebox_scheduler:
image: archivebox/archivebox:latest image: archivebox/archivebox:latest
command: schedule --foreground --update --every=day command: schedule --foreground --update --every=day
environment: environment:
- TIMEOUT=120 # use a higher timeout than the main container to give slow tasks more time when retrying - TIMEOUT=120 # use a higher timeout than the main container to give slow tasks more time when retrying
# - PUID=502 # set to your host user's UID & GID if you encounter permissions issues # - PUID=502 # set to your host user's UID & GID if you encounter permissions issues
# - PGID=20 # - PGID=20
volumes: volumes:
- ./data:/data - ./data:/data
# cpus: 2 # uncomment / edit these values to limit scheduler container resource consumption # cpus: 2 # uncomment / edit these values to limit scheduler container resource consumption
# mem_limit: 2048m # mem_limit: 2048m
# restart: always # restart: always
### This runs the optional Sonic full-text search backend (much faster than default rg backend). ### This runs the optional Sonic full-text search backend (much faster than default rg backend).
@ -71,7 +71,7 @@ services:
# not needed after first run / if you have already have ./etc/sonic.cfg present # not needed after first run / if you have already have ./etc/sonic.cfg present
dockerfile_inline: | dockerfile_inline: |
FROM quay.io/curl/curl:latest AS config_downloader FROM quay.io/curl/curl:latest AS config_downloader
RUN curl -fsSL 'https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/main/etc/sonic.cfg' > /tmp/sonic.cfg RUN curl -fsSL 'https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/stable/etc/sonic.cfg' > /tmp/sonic.cfg
FROM valeriansaliou/sonic:latest FROM valeriansaliou/sonic:latest
COPY --from=config_downloader /tmp/sonic.cfg /etc/sonic.cfg COPY --from=config_downloader /tmp/sonic.cfg /etc/sonic.cfg
expose: expose:
@ -98,7 +98,7 @@ services:
# restricted to access from localhost by default because it has no authentication # restricted to access from localhost by default because it has no authentication
- 127.0.0.1:8080:8080 - 127.0.0.1:8080:8080
### Example: Put Nginx in front of the ArchiveBox server for SSL termination and static file serving. ### Example: Put Nginx in front of the ArchiveBox server for SSL termination and static file serving.
# You can also any other ingress provider for SSL like Apache, Caddy, Traefik, Cloudflare Tunnels, etc. # You can also any other ingress provider for SSL like Apache, Caddy, Traefik, Cloudflare Tunnels, etc.
@ -172,7 +172,7 @@ services:
### Example: run all your ArchiveBox traffic through a WireGuard VPN tunnel to avoid IP blocks. ### Example: run all your ArchiveBox traffic through a WireGuard VPN tunnel to avoid IP blocks.
# You can also use any other VPN that works at the docker IP level, e.g. Tailscale, OpenVPN, etc. # You can also use any other VPN that works at the docker IP level, e.g. Tailscale, OpenVPN, etc.
# wireguard: # wireguard:
# image: linuxserver/wireguard:latest # image: linuxserver/wireguard:latest
# network_mode: 'service:archivebox' # network_mode: 'service:archivebox'

2
docs

@ -1 +1 @@
Subproject commit a1b69c51ba9b249c0b2a6efd141dbb792fc36ad2 Subproject commit f23abba9773b67ad9f2fd04d6f2e8e056dfa6521