Skip to content

Docker image with a range of shader compilers available

License

Notifications You must be signed in to change notification settings

gwihlidal/docker-shader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-shader

Docker image with a range of shader compilers available

Hub: https://hub.docker.com/r/gwihlidal/docker-shader/

Extensive documentation:

Updating Compilers:

The latest commit hashes can be queried using the following script:

$ ./query_latest.sh
Latest DXC_COMMIT
a6189cee038b9e91ebb22b2305367a66aa001413

Latest SHADERC_REPO
b3523d57461c1460af68dbd6bec1e8dd5c7ce2e7

Latest WINE_REPO
cce8074aa9fb2191faba25ce7fd24e2678d3bd17

Latest SMOLV_REPO
ce2835a03fc17df4c08ae6433db02121e29f3c71

These hashes can replace the older commit hashes in Dockerfile.

To upgrade the Vulkan SDK, find the latest version number at https://vulkan.lunarg.com/ and set the VULKAN_SDK environment variable accordingly.

Before building and pushing a new image, increment the version number at the top of Makefile

Build and push a new image by running make push, or by running the commands manually (substituting in the correct variable values):

docker build -t $(NS)/$(REPO):$(VERSION) .
docker push $(NS)/$(REPO):$(VERSION)

Example:

docker build -t gwihlidal/docker-shader:9 .
docker push gwihlidal/docker-shader:9

Note, you won't have permission to push to the gwihlidal namespace on Docker Hub, so make sure to use your own account or custom container registry like https://cloud.google.com/container-registry/

Example of a version update:

https://github.com/gwihlidal/docker-shader/commit/b1231046b7509400da4f4ffeba8743e76d8bfc4c