Skip to content

Commit

Permalink
Add bind_support LABEL for images supporting BIND_ADDRESS
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Jul 23, 2024
1 parent fc903c0 commit d968a79
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* 如果您的 `sync.sh` 最终只需要调用一个外部程序的话,应该以 `exec program` 的方式调用,方便接收 signal。
* 同步时产生的日志应该都输出到 `stdout``stderr`
* 在不会过分麻烦您的前提下,请让构建出来的镜像尽可能小,构建的时间尽可能短。
* 如果 image 添加了对 `BIND_ADDRESS` 的支持,在 `Dockerfile` 中添加 `LABEL bind_support=true`(反之不需要)。

如果您对整个项目是如何构建的感兴趣的话,可以继续往下阅读。

Expand Down
1 change: 1 addition & 0 deletions apt-sync/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/base:alpine
LABEL maintainer="iBug <[email protected]>"
LABEL bind_support=true
RUN apk add --no-cache --update wget perl ca-certificates git python3 py3-requests && \
mkdir -p /usr/local/lib/tunasync
ADD tunasync /usr/local/lib/tunasync
Expand Down
1 change: 1 addition & 0 deletions aptsync/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/base:alpine
LABEL maintainer="Jian Zeng <anonymousknight96 AT gmail.com>"
LABEL bind_support=true
ENV APTSYNC_NTHREADS=20 \
APTSYNC_CREATE_DIR=true \
APTSYNC_UNLINK=0
Expand Down
1 change: 1 addition & 0 deletions archvsync/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/base:alpine
LABEL maintainer="Jian Zeng <anonymousknight96 AT gmail.com>"
LABEL bind_support=true
ENV BASEDIR=/usr/local
RUN apk add --no-cache rsync && mkdir -p "$BASEDIR/etc"
ADD ["common", "ftpsync", "$BASEDIR/bin/"]
Expand Down
1 change: 1 addition & 0 deletions curl-helper/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ustcmirror/base:alpine
LABEL maintainer="Yifan Gao [email protected]"
LABEL bind_support=true
RUN apk add --no-cache curl coreutils grep findutils bash
ADD curl-helper.sh /
1 change: 1 addition & 0 deletions debian-cd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/base:alpine
LABEL maintainer="Jian Zeng <anonymousknight96 AT gmail.com>"
LABEL bind_support=true
VOLUME ["/debian"]
ADD ["sync.sh", "pre-sync.sh", "prepare.sh", "/"]
ADD ["jigdo-mirror", "cd-mirror", "/usr/local/bin/"]
Expand Down
1 change: 1 addition & 0 deletions fedora/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/base:alpine
LABEL maintainer="Shengjing Zhu <[email protected]>"
LABEL bind_support=true
RUN apk add --no-cache zsh curl rsync ca-certificates gawk grep bzip2 coreutils diffutils findutils \
&& curl -fLo /usr/local/bin/quick-fedora-mirror https://pagure.io/quick-fedora-mirror/raw/master/f/quick-fedora-mirror \
&& chmod +x /usr/local/bin/quick-fedora-mirror
Expand Down
1 change: 1 addition & 0 deletions freebsd-ports/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/gitsync
LABEL maintainer="Yifan Gao <[email protected]>"
LABEL bind_support=true
RUN apk add --no-cache curl coreutils parallel gawk sed grep tar findutils bash
ADD sync-ports.sh /
ENV SYNC_SCRIPT=/sync-ports.sh
1 change: 1 addition & 0 deletions github-release/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/base:alpine
LABEL maintainer="Yulong Ming <[email protected]>"
LABEL bind_support=true
RUN apk add --no-cache python3 py3-requests py3-yaml && \
mkdir -p /usr/local/lib/tunasync
ADD tunasync /usr/local/lib/tunasync
Expand Down
1 change: 1 addition & 0 deletions lftpsync/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ustcmirror/base:alpine
LABEL maintainer="Jian Zeng <anonymousknight96 AT gmail.com>"
LABEL bind_support=true
RUN apk add --no-cache lftp ca-certificates
ADD sync.sh /
1 change: 1 addition & 0 deletions rclone/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/base:alpine
LABEL maintainer="Jian Zeng <anonymousknight96 AT gmail.com>"
LABEL bind_support=true

ARG RCLONE_VERSION=v1.50.2
ENV RCLONE_DELETE_AFTER=true \
Expand Down
1 change: 1 addition & 0 deletions rsync/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN gcc -Wall -fPIC -shared -o lchmod.so lchmod.c

FROM ustcmirror/base:alpine
LABEL maintainer="Jian Zeng <anonymousknight96 AT gmail.com>"
LABEL bind_support=true
RUN apk add --no-cache rsync openssh-client
ADD sync.sh /
COPY --from=builder /tmp/lchmod.so /usr/local/lib/lchmod.so
Expand Down
1 change: 1 addition & 0 deletions tsumugu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/base:alpine
LABEL maintainer="Keyu Tao <taoky AT ustclug.org>"
LABEL bind_support=true
ARG TSUMUGU_VERSION=20240715

RUN apk add --no-cache wget ca-certificates && \
Expand Down
1 change: 1 addition & 0 deletions winget-source/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/base:alpine
LABEL maintainer="YR Chen <[email protected]>"
LABEL bind_support=true

RUN apk add --no-cache nodejs

Expand Down
1 change: 1 addition & 0 deletions yukina/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ustcmirror/base:alpine
LABEL maintainer="Keyu Tao <taoky AT ustclug.org>"
LABEL bind_support=true
ARG YUKINA_VERSION=20240715

RUN apk add --no-cache wget ca-certificates zstd && \
Expand Down

0 comments on commit d968a79

Please sign in to comment.