Skip to content

Commit

Permalink
fix some docker container build pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivatePuffin committed Oct 19, 2024
1 parent 68af24b commit b556be9
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion containers/apps/db-wait-mariadb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN \

USER apps

COPY ./apps/db-wait-mariadb/entrypoint.sh /entrypoint.sh
COPY ./containers/apps/db-wait-mariadb/entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]

LABEL "maintainer"="TrueCharts <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion containers/apps/db-wait-mongodb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RUN \

USER apps

COPY ./apps/db-wait-mongodb/entrypoint.sh /entrypoint.sh
COPY ./containers/apps/db-wait-mongodb/entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]

LABEL "maintainer"="TrueCharts <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion containers/apps/db-wait-postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN \

USER apps

COPY ./apps/db-wait-postgres/entrypoint.sh /entrypoint.sh
COPY ./containers/apps/db-wait-postgres/entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]

LABEL "maintainer"="TrueCharts <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion containers/apps/db-wait-redis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN \

USER apps

COPY ./apps/db-wait-redis/entrypoint.sh /entrypoint.sh
COPY ./containers/apps/db-wait-redis/entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]

LABEL "maintainer"="TrueCharts <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion containers/apps/freeradius/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN \
rm -Rf /etc/raddb

VOLUME /etc/raddb
COPY ./apps/freeradius/entrypoint.sh /docker-entrypoint.sh
COPY ./containers/apps/freeradius/entrypoint.sh /docker-entrypoint.sh

LABEL "maintainer"="TrueCharts <[email protected]>"
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/apps"
Expand Down
10 changes: 5 additions & 5 deletions containers/apps/kube-sa-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ RUN mkdir -p /build /output
WORKDIR /build

# Copy go mod and sum files
COPY apps/kube-sa-proxy/go.mod apps/kube-sa-proxy/go.sum ./
COPY ./containers/apps/kube-sa-proxy/go.mod apps/kube-sa-proxy/go.sum ./

# Download dependencies
RUN go mod download

# Copy the rest of the Go application source code
COPY apps/kube-sa-proxy/cmd/main.go .
COPY apps/kube-sa-proxy/internal/config ./internal/config
COPY apps/kube-sa-proxy/internal/proxy ./internal/proxy
COPY apps/kube-sa-proxy/internal/utils ./internal/utils
COPY ./containers/apps/kube-sa-proxy/cmd/main.go .
COPY ./containers/apps/kube-sa-proxy/internal/config ./internal/config
COPY ./containers/apps/kube-sa-proxy/internal/proxy ./internal/proxy
COPY ./containers/apps/kube-sa-proxy/internal/utils ./internal/utils

# Build the Go application
RUN go build -ldflags "-w -s" -o /output/my-proxy-service .
Expand Down
8 changes: 4 additions & 4 deletions containers/apps/nextcloud-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*

# Copy occ script to /usr/bin/occ
COPY --chmod=755 ./apps/nextcloud-fpm/scripts/occ /usr/bin/occ
COPY --chmod=755 ./containers/apps/nextcloud-fpm/scripts/occ /usr/bin/occ

# Copy post-install script to a temp location so we can append it to the entrypoint.sh
COPY --chmod=755 ./apps/nextcloud-fpm/scripts/post-install.sh /tmp/post-install.sh
COPY --chmod=755 ./containers/apps/nextcloud-fpm/scripts/post-install.sh /tmp/post-install.sh

# Copy the healthcheck
COPY --chmod=755 ./apps/nextcloud-fpm/scripts/healthcheck.sh /healthcheck.sh
COPY --chmod=755 ./containers/apps/nextcloud-fpm/scripts/healthcheck.sh /healthcheck.sh

# Copy the configure-scripts that will be sourced by the post-install
COPY --chmod=755 ./apps/nextcloud-fpm/configure-scripts /configure-scripts
COPY --chmod=755 ./containers/apps/nextcloud-fpm/configure-scripts /configure-scripts

RUN set -ex; \
sed -i 's/exec "$@"//g' /entrypoint.sh; \
Expand Down
2 changes: 1 addition & 1 deletion containers/apps/ombi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ USER apps

EXPOSE 3579

COPY ./apps/ombi/entrypoint.sh /entrypoint.sh
COPY ./containers/apps/ombi/entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]

LABEL "maintainer"="TrueCharts <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion containers/apps/traefik/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
# hadolint ignore=DL3018
RUN apk add --no-cache --update git

COPY --chmod=777 ./apps/traefik/clone-plugins.sh /clone-plugins.sh
COPY --chmod=777 ./containers/apps/traefik/clone-plugins.sh /clone-plugins.sh
RUN /clone-plugins.sh

FROM traefik:v3.1.6@sha256:f703a2ac2ddf75f6e06c9cccac7f158765e2ab42d642b04e79e2e3d7355c2ddc
Expand Down
4 changes: 2 additions & 2 deletions containers/base/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ VOLUME [ "/config" ]

USER apps

COPY ./base/ubuntu/entrypoint.sh /entrypoint.sh
COPY ./base/ubuntu/shim /etc/profile.d
COPY ./containers/base/ubuntu/entrypoint.sh /entrypoint.sh
COPY ./containers/base/ubuntu/shim /etc/profile.d

ENTRYPOINT ["/bin/ash", "--"]

Expand Down
4 changes: 2 additions & 2 deletions containers/base/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ ENV LANG en_US.UTF-8

VOLUME ["/config"]

COPY ./base/ubuntu/entrypoint.sh /entrypoint.sh
COPY ./base/ubuntu/shim /shim
COPY ./containers/base/ubuntu/entrypoint.sh /entrypoint.sh
COPY ./containers/base/ubuntu/shim /shim

USER apps

Expand Down

0 comments on commit b556be9

Please sign in to comment.