mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
Cleanup: I removed the obsolete options.
The classic way provides more flexibility
This commit is contained in:
parent
bc868e6b39
commit
e9849e6c9c
@ -6,10 +6,9 @@ COPY Gemfile /build/
|
|||||||
COPY *.gemspec /build/
|
COPY *.gemspec /build/
|
||||||
|
|
||||||
RUN bundle config set jobs "$(nproc)" \
|
RUN bundle config set jobs "$(nproc)" \
|
||||||
&& bundle config set without 'development test' \
|
|
||||||
&& bundle install
|
&& bundle install
|
||||||
|
|
||||||
COPY . /build
|
COPY . /build
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /build
|
||||||
ENTRYPOINT [ "/build/bin/wayback_machine_downloader" ]
|
ENTRYPOINT [ "/build/bin/wayback_machine_downloader", "--directory", "/build/websites" ]
|
||||||
|
|||||||
21
README.md
21
README.md
@ -81,36 +81,19 @@ services:
|
|||||||
tty: true
|
tty: true
|
||||||
image: wayback_machine_downloader:latest
|
image: wayback_machine_downloader:latest
|
||||||
container_name: wayback_machine_downloader
|
container_name: wayback_machine_downloader
|
||||||
environment:
|
|
||||||
- ENVIRONMENT=${ENVIRONMENT:-development}
|
|
||||||
- OPTIONS=${OPTIONS:-""}
|
|
||||||
- TARGET_URL=${TARGET_URL}
|
|
||||||
volumes:
|
volumes:
|
||||||
- .:/build:rw
|
- .:/build:rw
|
||||||
- ./websites:/build/websites:rw
|
- ./websites:/build/websites:rw
|
||||||
command: --directory /build/websites ${OPTIONS} ${TARGET_URL}
|
|
||||||
```
|
```
|
||||||
#### Usage:
|
#### Usage:
|
||||||
Now You can create a Docker image as named "wayback_machine_downloader" with the following command:
|
Now you can create a Docker image as named "wayback_machine_downloader" with the following command:
|
||||||
```bash
|
```bash
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
```
|
```
|
||||||
|
|
||||||
After that you must set TARGET_URL environment variable:
|
|
||||||
```bash
|
|
||||||
export TARGET_URL="https://example.com/"
|
|
||||||
```
|
|
||||||
|
|
||||||
The **OPTIONS** env. variable is optional this may include additional settings which are found in the "**Advanced usage**" section below.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
```bash
|
|
||||||
export OPTIONS="--list -f 20060121"
|
|
||||||
```
|
|
||||||
|
|
||||||
After that you can run the exists container with the following command:
|
After that you can run the exists container with the following command:
|
||||||
```bash
|
```bash
|
||||||
docker compose run --rm wayback_machine_downloader https://example.com
|
docker compose run --rm wayback_machine_downloader https://example.com [options]
|
||||||
```
|
```
|
||||||
|
|
||||||
## ⚙️ Configuration
|
## ⚙️ Configuration
|
||||||
|
|||||||
@ -5,11 +5,6 @@ services:
|
|||||||
tty: true
|
tty: true
|
||||||
image: wayback_machine_downloader:latest
|
image: wayback_machine_downloader:latest
|
||||||
container_name: wayback_machine_downloader
|
container_name: wayback_machine_downloader
|
||||||
environment:
|
|
||||||
- ENVIRONMENT=${DEVELOPMENT:-production}
|
|
||||||
- OPTIONS=${OPTIONS:-""}
|
|
||||||
- TARGET_URL=${TARGET_URL}
|
|
||||||
volumes:
|
volumes:
|
||||||
- .:/build:rw
|
- .:/build:rw
|
||||||
- ./websites:/websites:rw
|
- ./websites:/build/websites:rw
|
||||||
command: /build/bin/wayback_machine_downloader ${TARGET_URL} ${OPTIONS}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user