Skip to content

Commit

Permalink
Merge pull request #379 from fluxcd/no-tini
Browse files Browse the repository at this point in the history
Remove the tini supervisor
  • Loading branch information
stefanprodan authored May 24, 2023
2 parents 63a97fe + 041acac commit af1cc08
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ RUN xx-go build -trimpath -a -o image-reflector-controller main.go

FROM alpine:3.18

LABEL org.opencontainers.image.source="https://github.com/fluxcd/image-reflector-controller"
ARG TARGETPLATFORM

RUN apk add --no-cache ca-certificates tini
RUN apk --no-cache add ca-certificates \
&& update-ca-certificates

COPY --from=builder /workspace/image-reflector-controller /usr/local/bin/

USER 65534:65534

ENTRYPOINT [ "/sbin/tini", "--", "image-reflector-controller" ]
ENTRYPOINT [ "image-reflector-controller" ]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import (
// +kubebuilder:scaffold:imports

imagev1 "github.com/fluxcd/image-reflector-controller/api/v1beta2"
"github.com/fluxcd/image-reflector-controller/internal/controllers"
"github.com/fluxcd/image-reflector-controller/internal/controller"
"github.com/fluxcd/image-reflector-controller/internal/database"
"github.com/fluxcd/image-reflector-controller/internal/features"
)
Expand Down
4 changes: 2 additions & 2 deletions tests/fuzz/oss_fuzz_prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ set -euxo pipefail

# Some tests requires embedded resources. Embedding does not allow
# for traversing into ascending dirs, therefore we copy those contents here:
mkdir -p internal/controllers/testdata/crd
cp config/crd/bases/*.yaml internal/controllers/testdata/crd
mkdir -p internal/controller/testdata/crd
cp config/crd/bases/*.yaml internal/controller/testdata/crd

0 comments on commit af1cc08

Please sign in to comment.