File tree Expand file tree Collapse file tree 3 files changed +5
-28
lines changed Expand file tree Collapse file tree 3 files changed +5
-28
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ COPY Gemfile /build/
6
6
COPY *.gemspec /build/
7
7
8
8
RUN bundle config set jobs "$(nproc)" \
9
- && bundle config set without 'development test' \
10
9
&& bundle install
11
10
12
11
COPY . /build
13
12
14
- WORKDIR /
15
- ENTRYPOINT [ "/build/bin/wayback_machine_downloader" ]
13
+ WORKDIR /build
14
+ ENTRYPOINT [ "/build/bin/wayback_machine_downloader" , "--directory" , "/build/websites" ]
Original file line number Diff line number Diff line change @@ -81,36 +81,19 @@ services:
81
81
tty : true
82
82
image : wayback_machine_downloader:latest
83
83
container_name : wayback_machine_downloader
84
- environment :
85
- - ENVIRONMENT=${ENVIRONMENT:-development}
86
- - OPTIONS=${OPTIONS:-""}
87
- - TARGET_URL=${TARGET_URL}
88
84
volumes :
89
85
- .:/build:rw
90
86
- ./websites:/build/websites:rw
91
- command : --directory /build/websites ${OPTIONS} ${TARGET_URL}
92
87
` ` `
93
88
#### 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:
95
90
` ` ` bash
96
91
docker compose up -d --build
97
92
```
98
93
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
-
111
94
After that you can run the exists container with the following command:
112
95
``` bash
113
- docker compose run --rm wayback_machine_downloader https://example.com
96
+ docker compose run --rm wayback_machine_downloader https://example.com [options]
114
97
```
115
98
116
99
## ⚙️ Configuration
Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ services:
5
5
tty : true
6
6
image : wayback_machine_downloader:latest
7
7
container_name : wayback_machine_downloader
8
- environment :
9
- - ENVIRONMENT=${DEVELOPMENT:-production}
10
- - OPTIONS=${OPTIONS:-""}
11
- - TARGET_URL=${TARGET_URL}
12
8
volumes :
13
9
- .:/build:rw
14
- - ./websites:/websites:rw
15
- command : /build/bin/wayback_machine_downloader ${TARGET_URL} ${OPTIONS}
10
+ - ./websites:/build/websites:rw
You can’t perform that action at this time.
0 commit comments