forked from vmware-labs/webassembly-language-runtimes
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.builders
41 lines (34 loc) · 1.28 KB
/
Makefile.builders
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
BUILDER_ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
include Makefile.helpers
.PHONY: wasm-base
WASM_BASE_NAME := ghcr.io/vmware-labs/wasmlabs/wasm-base:latest
wasm-base:
@echo Building $(WASM_BASE_NAME) in $(BUILDER_ROOT_DIR) ... && \
docker build \
--platform linux/amd64 \
--build-arg BINARYEN_VERSION=111 \
-f $(BUILDER_ROOT_DIR)/Dockerfile.wasm-base \
-t $(WASM_BASE_NAME) \
$(BUILDER_ROOT_DIR)
.PHONY: push-wasm-base
push-wasm-base:
@$(call push_container_image,$(WASM_BASE_NAME))
.PHONY: wasi-builder
WASI_BUILDER_NAME := ghcr.io/vmware-labs/wasmlabs/wasi-builder:$(WASI_SDK_VERSION)
wasi-builder:
@echo Building $(WASI_BUILDER_NAME) in $(BUILDER_ROOT_DIR) ... && \
docker build \
--platform linux/amd64 \
--build-arg WASI_SDK_RELEASE_NAME=wasi-sdk-$(word 1,$(subst ., ,$(WASI_SDK_VERSION))) \
--build-arg WASI_SDK_VERSION=$(WASI_SDK_VERSION) \
-f $(BUILDER_ROOT_DIR)/Dockerfile.wasi-builder \
-t $(WASI_BUILDER_NAME) \
$(BUILDER_ROOT_DIR)
.PHONY: update-wasi-builder
update-wasi-builder: wasi-builder
@$(call push_container_image,$(WASI_BUILDER_NAME))
.PHONY: update-all-builders
update-all-builders: update-wasi-builder
make -f php/Makefile update-php-builder
make -f python/Makefile update-python-builder
make -f ruby/Makefile update-ruby-builder