diff options
author | Mike Crute <mike@crute.us> | 2021-01-18 06:23:32 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2021-01-18 06:23:32 +0000 |
commit | da78e57358c2e11d47159cb83a2ec365a6cc7a99 (patch) | |
tree | ff5faf71dfc2f4086f5046f9f475b7df1fb60955 | |
parent | 4d88024b44c7bad8460553daaf9c6c0be155cf4e (diff) | |
download | dockerfiles-da78e57358c2e11d47159cb83a2ec365a6cc7a99.tar.bz2 dockerfiles-da78e57358c2e11d47159cb83a2ec365a6cc7a99.tar.xz dockerfiles-da78e57358c2e11d47159cb83a2ec365a6cc7a99.zip |
Add skopeo image
-rw-r--r-- | skopeo/Dockerfile | 9 | ||||
-rw-r--r-- | skopeo/Makefile | 20 |
2 files changed, 29 insertions, 0 deletions
diff --git a/skopeo/Dockerfile b/skopeo/Dockerfile new file mode 100644 index 0000000..5a7b0a3 --- /dev/null +++ b/skopeo/Dockerfile | |||
@@ -0,0 +1,9 @@ | |||
1 | FROM alpine:edge | ||
2 | LABEL maintainer="Mike Crute <mike@crute.us>" | ||
3 | |||
4 | RUN set -euxo pipefail; \ | ||
5 | apk add --no-cache \ | ||
6 | skopeo \ | ||
7 | ; | ||
8 | |||
9 | ENTRYPOINT [ "/usr/bin/skopeo" ] | ||
diff --git a/skopeo/Makefile b/skopeo/Makefile new file mode 100644 index 0000000..28e15d5 --- /dev/null +++ b/skopeo/Makefile | |||
@@ -0,0 +1,20 @@ | |||
1 | IMAGE=docker.crute.me/skopeo:latest | ||
2 | |||
3 | all: | ||
4 | docker pull alpine:edge | ||
5 | docker build -t $(IMAGE) . | ||
6 | |||
7 | all-no-cache: | ||
8 | docker build --no-cache -t $(IMAGE) . | ||
9 | |||
10 | run: | ||
11 | docker run -d --net=host \ | ||
12 | -p 53:53/tcp \ | ||
13 | -p 53:53/udp \ | ||
14 | -p 953:953 \ | ||
15 | -v /home/mcrute/tmp/bind/conf:/etc/bind \ | ||
16 | -v /home/mcrute/tmp/bind/cache:/var/cache/bind \ | ||
17 | $(IMAGE) | ||
18 | |||
19 | publish: | ||
20 | docker push $(IMAGE) | ||