Skip to content

Commit

Permalink
Updated makefile to use reference vars
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Saucedo <[email protected]>
  • Loading branch information
axsaucedo committed Nov 20, 2022
1 parent 5a40c57 commit e719ced
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions docker-builders/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@

KOMPUTE_BUILDER_VERSION=0.4
SWIFTSHADER_VERSION=0.2
VULKAN_SDK_VERSION=1.3.231.2

build_kompute_builder:
docker build .. -f KomputeBuilder.Dockerfile -t axsauze/kompute-builder:0.3
docker build .. \
-f KomputeBuilder.Dockerfile \
--build-arg VULKAN_SDK_VERSION=$(VULKAN_SDK_VERSION) \
--build-arg SWIFTSHADER_VERSION=$(SWIFTSHADER_VERSION) \
-t axsauze/kompute-builder:${KOMPUTE_BUILDER_VERSION}

push_kompute_builder: build_kompute_builder
docker push axsauze/kompute-builder:0.3
push_kompute_builder:
docker push axsauze/kompute-builder:${KOMPUTE_BUILDER_VERSION}

build_swiftshader:
docker build .. -f Swiftshader.Dockerfile -t axsauze/swiftshader:0.1
docker build .. \
-f Swiftshader.Dockerfile \
--build-arg VULKAN_SDK_VERSION=$(VULKAN_SDK_VERSION) \
-t axsauze/swiftshader:${SWIFTSHADER_VERSION}

push_swiftshader: build_swiftshader
docker push axsauze/swiftshader:0.1
push_swiftshader:
docker push axsauze/swiftshader:${SWIFTSHADER_VERSION}

build_vulkan_sdk:
docker build .. -f VulkanSDK.Dockerfile -t axsauze/vulkan-sdk:0.1
docker build .. \
-f VulkanSDK.Dockerfile \
--build-arg VULKAN_SDK_VERSION=$(VULKAN_SDK_VERSION) \
-t axsauze/vulkan-sdk:${VULKAN_SDK_VERSION}

push_vulkan_sdk: build_vulkan_sdk
docker push axsauze/vulkan-sdk:0.1
push_vulkan_sdk:
docker push axsauze/vulkan-sdk:${VULKAN_SDK_VERSION}

0 comments on commit e719ced

Please sign in to comment.