This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework the build system to set the firecracker version only in one pl…
…ace, and make the image name reference the fc version
- Loading branch information
Showing
6 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
UID_GID?=$(shell id -u):$(shell id -g) | ||
FIRECRACKER_VERSION:=$(shell cat hack/FIRECRACKER_VERSION) | ||
GO_VERSION=1.12 | ||
|
||
all: binary | ||
build: | ||
docker build -t ignite . | ||
|
||
binary: | ||
docker run -it --rm -v $(shell pwd):/build -w /build golang:1.12 sh -c "\ | ||
docker run -it --rm -v $(shell pwd):/build -w /build golang:${GO_VERSION} sh -c "\ | ||
make ignite && \ | ||
chown ${UID_GID} bin/ignite" | ||
|
||
# Make make execute this target although the file already exists. | ||
.PHONY: bin/ignite | ||
ignite: bin/ignite | ||
bin/ignite: | ||
CGO_ENABLED=0 go build -mod=vendor -ldflags "$(shell ./hack/ldflags.sh)" -o bin/ignite ./cmd/ignite | ||
|
||
.PHONY: bin/ignite | ||
image: | ||
docker build -t weaveworks/ignite:${FIRECRACKER_VERSION} \ | ||
--build-arg FIRECRACKER_VERSION=${FIRECRACKER_VERSION} . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters