Skip to content

Commit

Permalink
Fix command packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
commiterate committed Dec 16, 2024
1 parent 98afdd5 commit 4419ec3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN go mod download

# Build
COPY . .
RUN go build -a -tags aemm-windows -o ./build/ec2-metadata-mock.exe ./cmd/amazon-ec2-metadata-mock.go
RUN go build -a -tags aemm-windows -o ./build/ ./cmd/...
# In case the target is build for testing:
# $ docker build --target=builder -t test .
ENTRYPOINT ["/amazon-ec2-metadata-mock/build/ec2-metadata-mock.exe"]
Expand All @@ -28,4 +28,4 @@ FROM mcr.microsoft.com/windows/nanoserver:${WINDOWS_VERSION}
WORKDIR /
COPY --from=builder /amazon-ec2-metadata-mock/build/ec2-metadata-mock.exe .
COPY THIRD_PARTY_LICENSES.md .
ENTRYPOINT ["/ec2-metadata-mock.exe"]
ENTRYPOINT ["/ec2-metadata-mock.exe"]
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ clean:

compile:
@echo ${MAKEFILE_PATH}
go build -a -tags aemm${GOOS} -o ${BUILD_DIR_PATH}/${BINARY_NAME} ${MAKEFILE_PATH}/cmd/amazon-ec2-metadata-mock.go
go build -a -tags aemm${GOOS} -o ${BUILD_DIR_PATH}/ ./cmd/...

validate-json:
${MAKEFILE_PATH}/scripts/validators/json-validator
Expand Down Expand Up @@ -161,7 +161,7 @@ release-docker-windows: build-docker-images-windows push-docker-images-windows

release: release-github release-docker-linux release-docker-windows

# Targets intended for local use
# Targets intended for local use
fmt:
goimports -w ./ && gofmt -s -w ./

Expand Down Expand Up @@ -199,4 +199,4 @@ release-prep-custom: # Run make NEW_VERSION=v1.2.3 release-prep-custom to prep f
ifdef NEW_VERSION
$(shell echo "${MAKEFILE_PATH}/scripts/create-local-tag-for-release -v $(NEW_VERSION) && echo && make create-release-pr")
endif

File renamed without changes.

0 comments on commit 4419ec3

Please sign in to comment.