File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ ARG LDFLAGS
55ADD . /workspace
66RUN export GO111MODULE=on \
77 && cd /workspace \
8- && CGO_ENABLED=0 init-stack go build -ldflags "${LDFLAGS}" -o /usr/local/ bin/registry main.go \
9- && upx -9 --brute /usr/local/ bin/registry
8+ && CGO_ENABLED=0 init-stack go build -ldflags "${LDFLAGS}" -o /bin/boot main.go \
9+ && upx -9 --brute /bin/boot
1010
1111
1212FROM registry.drycc.cc/drycc/base:${CODENAME}
@@ -16,10 +16,10 @@ ENV DRYCC_UID=1001 \
1616 DRYCC_HOME_DIR=/var/lib/registry \
1717 JQ_VERSION="1.7" \
1818 MC_VERSION="2023.09.20.15.22.31" \
19- REGISTRY_VERSION="2.8.2 "
19+ REGISTRY_VERSION="2.8.3 "
2020
2121COPY rootfs/bin/ /bin/
22- COPY --from=build /usr/local/ bin/registry /opt/registry/ bin/registry
22+ COPY --from=build /bin/boot / bin/boot
2323
2424RUN groupadd drycc --gid ${DRYCC_GID} \
2525 && useradd drycc -u ${DRYCC_UID} -g ${DRYCC_GID} -s /bin/bash -m -d ${DRYCC_HOME_DIR} \
@@ -49,5 +49,5 @@ ENV DRYCC_REGISTRY_CONFIG /opt/drycc/registry/etc/config.yml
4949
5050USER ${DRYCC_UID}
5151VOLUME ["${DRYCC_HOME_DIR}" ]
52- CMD ["/opt/registry/ bin/registry " ]
52+ CMD ["/bin/boot " ]
5353EXPOSE 5000
Original file line number Diff line number Diff line change @@ -49,4 +49,4 @@ echo -e "\\033[32m---> S3 service ${REGISTRY_IP}:5000 ready...\\033[0m"
4949# check that the registry is still up
5050podman tag " $1 " " ${REGISTRY_IP} :5000/registry:canary"
5151echo admin | podman login " ${REGISTRY_IP} :5000" --tls-verify=false --username admin --password-stdin > /dev/null 2>&1
52- podman push " ${REGISTRY_IP} :5000/registry:canary" --tls-verify=false
52+ podman push " ${REGISTRY_IP} :5000/registry:canary" --tls-verify=false
You can’t perform that action at this time.
0 commit comments