mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-13 11:40:41 +02:00
add tldextract
This commit is contained in:
parent
4651e02449
commit
f1478baf34
@ -154,6 +154,7 @@ A collection of delicious docker recipes.
|
|||||||
## Utility
|
## Utility
|
||||||
|
|
||||||
- [x] registry-cli
|
- [x] registry-cli
|
||||||
|
- [x] tldextract
|
||||||
|
|
||||||
## Media
|
## 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…
x
Reference in New Issue
Block a user