diff --git a/Dockerfile b/Dockerfile index 1e2d152..53377fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,9 @@ COPY Gemfile /build/ COPY *.gemspec /build/ RUN bundle config set jobs "$(nproc)" \ - && bundle config set without 'development test' \ && bundle install COPY . /build -WORKDIR / -ENTRYPOINT [ "/build/bin/wayback_machine_downloader" ] +WORKDIR /build +ENTRYPOINT [ "/build/bin/wayback_machine_downloader", "--directory", "/build/websites" ] diff --git a/README.md b/README.md index 7f4dfa5..e4e7ebb 100644 --- a/README.md +++ b/README.md @@ -81,36 +81,19 @@ services: tty: true image: wayback_machine_downloader:latest container_name: wayback_machine_downloader - environment: - - ENVIRONMENT=${ENVIRONMENT:-development} - - OPTIONS=${OPTIONS:-""} - - TARGET_URL=${TARGET_URL} volumes: - .:/build:rw - ./websites:/build/websites:rw - command: --directory /build/websites ${OPTIONS} ${TARGET_URL} ``` #### 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 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: ```bash -docker compose run --rm wayback_machine_downloader https://example.com +docker compose run --rm wayback_machine_downloader https://example.com [options] ``` ## ⚙️ Configuration diff --git a/docker-compose.yml b/docker-compose.yml index 3ab4dd6..c7af014 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,11 +5,6 @@ services: tty: true image: wayback_machine_downloader:latest container_name: wayback_machine_downloader - environment: - - ENVIRONMENT=${DEVELOPMENT:-production} - - OPTIONS=${OPTIONS:-""} - - TARGET_URL=${TARGET_URL} volumes: - .:/build:rw - - ./websites:/websites:rw - command: /build/bin/wayback_machine_downloader ${TARGET_URL} ${OPTIONS} \ No newline at end of file + - ./websites:/build/websites:rw \ No newline at end of file