mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add tldextract
This commit is contained in:
parent
4651e02449
commit
f1478baf34
@ -154,6 +154,7 @@ A collection of delicious docker recipes.
|
||||
## Utility
|
||||
|
||||
- [x] registry-cli
|
||||
- [x] tldextract
|
||||
|
||||
## Media
|
||||
|
||||
|
12
tldextract/Dockerfile
Normal file
12
tldextract/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
#
|
||||
# Dockerfile for tldextract
|
||||
#
|
||||
|
||||
FROM alpine:3
|
||||
|
||||
RUN apk add --no-cache py3-tldextract \
|
||||
&& tldextract --update \
|
||||
&& tldextract --version
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tldextract"]
|
||||
CMD ["--help"]
|
17
tldextract/README.md
Normal file
17
tldextract/README.md
Normal file
@ -0,0 +1,17 @@
|
||||
tldextract
|
||||
==========
|
||||
|
||||
[tldextract][1] accurately separates a URL's subdomain, domain, and public
|
||||
suffix, using the Public Suffix List (PSL).
|
||||
|
||||
## Tutorial
|
||||
|
||||
```bash
|
||||
# Create an alias
|
||||
$ alias tldextract='docker run --rm -u $(id -u):$(id -g) vimagick/tldextract'
|
||||
|
||||
# Run it
|
||||
$ tldextract -j www.google.com
|
||||
```
|
||||
|
||||
[1]: https://github.com/john-kurkowski/tldextract
|
Loading…
Reference in New Issue
Block a user