Skip to content

Commit

Permalink
add docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicptr committed Apr 3, 2020
1 parent d605a74 commit 2c14fd2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,11 @@ scoop:
description: |
A versatile tool to crawl dozens of URLs from a given source, like a sitemap or an URL list.
license: MIT
## Docker
dockers:
- dockerfile: Dockerfile
image_templates:
- "atomicptr/crab:latest"
- "atomicptr/crab:{{.Tag}}"
- "atomicptr/crab:v{{.Major}}"
- "atomicptr/crab:v{{.Major}}.{{.Minor}}"
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Do not build this yourself, this is for goreleaser
FROM scratch
COPY crab /
ENTRYPOINT ["/crab"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ $ scoop bucket add atomicptr https://github.com/atomicptr/scoop-bucket
$ scoop install crab
```

### Docker

```bash
$ docker run --rm atomicptr/crab --help
# Example
$ docker run --rm atomicptr/crab crawl:sitemap https://domain.com/sitemap.xml
```

## Usage

Crawl singular URLs:
Expand Down

0 comments on commit 2c14fd2

Please sign in to comment.