Skip to content

Commit e9849e6

Browse files
committed
Cleanup: I removed the obsolete options.
The classic way provides more flexibility
1 parent bc868e6 commit e9849e6

File tree

3 files changed

+5
-28
lines changed

3 files changed

+5
-28
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ COPY Gemfile /build/
66
COPY *.gemspec /build/
77

88
RUN bundle config set jobs "$(nproc)" \
9-
&& bundle config set without 'development test' \
109
&& bundle install
1110

1211
COPY . /build
1312

14-
WORKDIR /
15-
ENTRYPOINT [ "/build/bin/wayback_machine_downloader" ]
13+
WORKDIR /build
14+
ENTRYPOINT [ "/build/bin/wayback_machine_downloader", "--directory", "/build/websites" ]

README.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -81,36 +81,19 @@ services:
8181
tty: true
8282
image: wayback_machine_downloader:latest
8383
container_name: wayback_machine_downloader
84-
environment:
85-
- ENVIRONMENT=${ENVIRONMENT:-development}
86-
- OPTIONS=${OPTIONS:-""}
87-
- TARGET_URL=${TARGET_URL}
8884
volumes:
8985
- .:/build:rw
9086
- ./websites:/build/websites:rw
91-
command: --directory /build/websites ${OPTIONS} ${TARGET_URL}
9287
```
9388
#### Usage:
94-
Now You can create a Docker image as named "wayback_machine_downloader" with the following command:
89+
Now you can create a Docker image as named "wayback_machine_downloader" with the following command:
9590
```bash
9691
docker compose up -d --build
9792
```
9893

99-
After that you must set TARGET_URL environment variable:
100-
```bash
101-
export TARGET_URL="https://example.com/"
102-
```
103-
104-
The **OPTIONS** env. variable is optional this may include additional settings which are found in the "**Advanced usage**" section below.
105-
106-
Example:
107-
```bash
108-
export OPTIONS="--list -f 20060121"
109-
```
110-
11194
After that you can run the exists container with the following command:
11295
```bash
113-
docker compose run --rm wayback_machine_downloader https://example.com
96+
docker compose run --rm wayback_machine_downloader https://example.com [options]
11497
```
11598

11699
## ⚙️ Configuration

docker-compose.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ services:
55
tty: true
66
image: wayback_machine_downloader:latest
77
container_name: wayback_machine_downloader
8-
environment:
9-
- ENVIRONMENT=${DEVELOPMENT:-production}
10-
- OPTIONS=${OPTIONS:-""}
11-
- TARGET_URL=${TARGET_URL}
128
volumes:
139
- .:/build:rw
14-
- ./websites:/websites:rw
15-
command: /build/bin/wayback_machine_downloader ${TARGET_URL} ${OPTIONS}
10+
- ./websites:/build/websites:rw

0 commit comments

Comments
 (0)