Skip to content

Commit

Permalink
chore: update readme and dockerfiles
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Aug 20, 2024
1 parent 49b103f commit ed4a325
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,12 @@ ARG TARGETARCH
# Build the function binary. The type=target mount tells Docker to mount the
# current directory read-only in the WORKDIR. The type=cache mount tells Docker
# to cache the Go modules cache across builds.
RUN --mount=target=. \
--mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o kcl-controller cmd/main.go
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o kcl-controller cmd/main.go

FROM ${BASE_IMAGE} as image

Check warning on line 35 in Dockerfile

View workflow job for this annotation

GitHub Actions / release

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
RUN apt-get update && apt-get install -y ca-certificates tini
COPY --from=build /src/kcl-controller /usr/local/bin/
# RUN addgroup -S controller && adduser -S controller -G controller
RUN groupadd controller && useradd -g controller controller

USER controller

ENTRYPOINT [ "/usr/bin/tini", "--", "kcl-controller" ]
4 changes: 0 additions & 4 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,3 @@ nginx-deployment-1 1/1 1 0 4s
```

可以看到,kcl-controller 根据仓库中的 KCL 程序,创建了一个 nginx-deployment-1。

# 未来工作

- 添加 KCL OCI Registry Controller,用于支持存储在 OCI 仓库中的 KCL 程序。

0 comments on commit ed4a325

Please sign in to comment.