Skip to content

Commit

Permalink
Merge pull request #39 from rpavlik/openxr-update
Browse files Browse the repository at this point in the history
OpenXR updates
  • Loading branch information
rpavlik authored Apr 12, 2024
2 parents cf1f604 + f6446be commit b131bde
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
8 changes: 4 additions & 4 deletions build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set -e
./build-one.sh vulkan-docs-base 202206 "$@"
./build-one.sh vulkan-docs 202206 "$@"
./build-one.sh rust 202312 "$@"
./build-one.sh openxr 20231010.1 "$@"
./build-one.sh openxr-sdk 20230614 "$@"
./build-one.sh openxr-pregenerated-sdk 20230822 "$@"
./build-one.sh openxr-android 20240312 "$@"
./build-one.sh openxr 20240412 "$@"
./build-one.sh openxr-sdk 20240412 "$@"
./build-one.sh openxr-pregenerated-sdk 20240412 "$@"
./build-one.sh openxr-android 20240412 "$@"
)
2 changes: 2 additions & 0 deletions build-one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ REPO="khronosgroup/docker-images"
OP=$1
shift
fi
BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
[ -n "$CI" ] && echo "::group::$DOCKERFILE @ $VERSION"
docker build "$@" . -f "$DOCKERFILE.Dockerfile" \
--build-arg "VERSION=$VERSION" \
--label "org.opencontainers.image.created=$BUILD_DATE" \
-t "$REPO:$DOCKERFILE" \
-t "$REPO:$DOCKERFILE.$VERSION" \
$EXTRA_DOCKER_ARGS
Expand Down
5 changes: 4 additions & 1 deletion openxr-android.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
# SPDX-License-Identifier: Apache-2.0

FROM debian:bookworm
LABEL maintainer="Rylie Pavlik <[email protected]>"

LABEL maintainer="Rylie Pavlik <[email protected]>" \
org.opencontainers.image.authors="Rylie Pavlik <[email protected]>" \
org.opencontainers.image.source=https://github.com/KhronosGroup/DockerContainers/blob/main/openxr-android.Dockerfile

ENV LANG C.UTF-8

Expand Down
5 changes: 4 additions & 1 deletion openxr-pregenerated-sdk.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
# Intended for CI use.

FROM ubuntu:20.04
LABEL maintainer="Rylie Pavlik <[email protected]>"

LABEL maintainer="Rylie Pavlik <[email protected]>" \
org.opencontainers.image.authors="Rylie Pavlik <[email protected]>" \
org.opencontainers.image.source=https://github.com/KhronosGroup/DockerContainers/blob/main/openxr-pregenerated-sdk.Dockerfile

ENV LANG C.UTF-8

Expand Down
5 changes: 4 additions & 1 deletion openxr-sdk.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
# Intended for CI or interactive use.

FROM ubuntu:20.04
LABEL maintainer="Rylie Pavlik <[email protected]>"

LABEL maintainer="Rylie Pavlik <[email protected]>" \
org.opencontainers.image.authors="Rylie Pavlik <[email protected]>" \
org.opencontainers.image.source=https://github.com/KhronosGroup/DockerContainers/blob/main/openxr-sdk.Dockerfile

ENV LANG C.UTF-8

Expand Down
8 changes: 5 additions & 3 deletions openxr.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# This is a Docker container for OpenXR specification builds

FROM ruby:3.1-bookworm as builder
LABEL maintainer="Rylie Pavlik <[email protected]>"

# Basic spec build and check packages
RUN env DEBIAN_FRONTEND=noninteractive apt-get update -qq && \
Expand Down Expand Up @@ -49,11 +48,10 @@ RUN env DEBIAN_FRONTEND=noninteractive apt-get update -qq && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Basic gems
RUN gem install rake asciidoctor coderay json-schema rghost
RUN gem install rake asciidoctor coderay json-schema rghost rouge hexapdf
# Newer versions break our index customizer, haven't figured out the fix yet.
RUN gem install asciidoctor-pdf --version 1.6.2
# RUN MATHEMATICAL_SKIP_STRDUP=1 gem install asciidoctor-mathematical
RUN gem install rouge

# Basic pip packages
RUN python3 -m pip install --break-system-packages --no-cache-dir codespell pypdf2 pdoc3 reuse jinja2-cli
Expand All @@ -64,6 +62,10 @@ RUN python3 -m pip install --break-system-packages --no-cache-dir git+https://gi
# Second stage: start a simpler image that doesn't have the dev packages
FROM ruby:3.1-bookworm

LABEL maintainer="Rylie Pavlik <[email protected]>" \
org.opencontainers.image.authors="Rylie Pavlik <[email protected]>" \
org.opencontainers.image.source=https://github.com/KhronosGroup/DockerContainers/blob/main/openxr.Dockerfile

# Copy locally-installed gems and python packages
COPY --from=builder /usr/local/ /usr/local/

Expand Down

0 comments on commit b131bde

Please sign in to comment.