Skip to content

Commit

Permalink
code refactor, successfully bootstraped
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-sun-star committed May 24, 2023
1 parent 58da550 commit a35d5bf
Show file tree
Hide file tree
Showing 350 changed files with 25,232 additions and 25,035 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ bin
*.test
cover.out
testbin/*
custom_scripts/*

# Kubernetes Generated files - skip generated files, except for vendored files
# !vendor/**/zz_generated.*
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
# Build the manager binary
FROM golang:1.16 as builder
FROM golang:1.20 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
# copy everything
COPY . .

# Build
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOPROXY=https://goproxy.cn go build -a -o manager main.go
RUN GO11MODULE=ON CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOPROXY=https://goproxy.cn go build -a -o manager cmd/main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM openanolis/anolisos:8.4-x86_64
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
WORKDIR /
COPY --from=builder /workspace/manager .
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
USER 65532:65532

ENTRYPOINT ["/manager"]
Empty file removed LEGAL.md
Empty file.
201 changes: 0 additions & 201 deletions LICENSE.Apache

This file was deleted.

19 changes: 0 additions & 19 deletions LICENSE.MIT

This file was deleted.

Loading

0 comments on commit a35d5bf

Please sign in to comment.