This commit is contained in:
qiaofeng1227 2023-10-19 17:45:17 +08:00
parent 27db1d0ce7
commit 863859004a
5 changed files with 7 additions and 7 deletions

View file

@ -7,9 +7,9 @@ COPY init_portainer.go /
RUN go build -o init_portainer /init_portainer.go
RUN chmod +x /init_portainer
COPY environment.go /
RUN go build -o environment /environment.go
RUN chmod +x /environment
COPY endpoint.go /
RUN go build -o endpoint /endpoint.go
RUN chmod +x /endpoint
# step2: Copy build go program to portainer
# Dockerfile refer to: https://github.com/portainer/portainer/blob/develop/build/linux/Dockerfile
@ -17,6 +17,6 @@ FROM portainer/portainer-ce:2.19.0
LABEL maintainer="websoft9<help@websoft9.com>"
LABEL version="2.19.0"
COPY --from=builder /init_portainer /
COPY --from=builder /environment /
COPY --from=builder /endpoint /
ENTRYPOINT ["/init_portainer"]

View file

@ -35,7 +35,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
#- /run/podman/podman.sock:/var/run/docker.sock
healthcheck:
test: ["CMD", "/environment"]
test: ["CMD", "/endpoint"]
interval: 10s
timeout: 30s
retries: 4

View file

@ -26,7 +26,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
#- /run/podman/podman.sock:/var/run/docker.sock
healthcheck:
test: ["CMD", "/environment"]
test: ["CMD", "/endpoint"]
interval: 10s
timeout: 30s
retries: 4

View file

@ -1,5 +1,5 @@
{
"version": "0.8.26-rc71",
"version": "0.8.26-rc72",
"plugins": {
"portainer": "0.0.7",
"nginx": "0.0.5",