Merge pull request #49 from TheMonkeyz/docker

Add support for docker. Can be built straight on docker hub.
This commit is contained in:
hartator
2016-07-29 10:05:08 -05:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

5
Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM ruby:2.1
COPY . /build
RUN cd build && \
bundle install
ENTRYPOINT [ "/usr/local/bundle/bin/wayback_machine_downloader" ]

View File

@@ -40,6 +40,16 @@ Or if you want to download every images without anything else:
wayback_machine_downloader http://example.com --only "/\.(gif|jpg|jpeg)$/i"
## Using the Docker images
All the options should work the same, just run it with this command instead of installing the gem:
docker run --rm -it -v $PWD/websites:/websites hartator/wayback-machine-downloader
You can use git branches as image tags to test new features on Docker Hub automated builds:
docker run --rm -it -v $PWD/websites:/websites yourname/yourrepo:yourfeature
## Contributing
Contributions are welcome! Just submit a pull request via GitHub.