Skip to content

Commit

Permalink
Implemented the first version of the agent although we have some DNS …
Browse files Browse the repository at this point in the history
…issues yet
  • Loading branch information
malvag committed Jul 29, 2024
1 parent 533f9d2 commit a30f73a
Show file tree
Hide file tree
Showing 21 changed files with 1,116 additions and 51 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.git/
**/.DS_Store
bin/
deploy/images/
test/
Dockerfile
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ RUN go mod download

# Copy the project's source code (except for whatever is included in the .dockerignore)
COPY . .

# Build release
#RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /hpk ./cmd/hpk-kubelet
#RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /hpk ./cmd/hpk

# Build dev
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -race -a -o /hpk ./cmd/hpk-kubelet
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -race -a -o /hpk ./cmd/hpk


# Super minimal image just to package the hpk binary. It does not include anything.
Expand Down
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,18 @@ help: ## Display this help

##@ Build

build: ## Build HPK binary
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build $(VERSION_FLAGS) -ldflags '-extldflags "-static"' -o bin/hpk-kubelet ./cmd/hpk

build: hpk-kubelet hpk-pause ## Build HPK binary
build-race: ## Build HPK binary with race condition detector
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build $(VERSION_FLAGS) -race -o bin/hpk-kubelet ./cmd/hpk

hpk-kubelet:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build $(VERSION_FLAGS) -ldflags '-extldflags "-static"' -o bin/hpk-kubelet ./cmd/hpk

hpk-pause:
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build $(VERSION_FLAGS) -ldflags '-extldflags "-static"' -o bin/hpk-pause ./cmd/pause

docker-pause:
DOCKER_BUILDKIT=1 docker build . -t malvag/pause:apptainer -f deploy/images/pause-apptainer-agent/pause.apptainer.Dockerfile

##@ Deployment

Expand Down
Loading

0 comments on commit a30f73a

Please sign in to comment.