From 436632c6df44dc59a603f9ee858614037349fbfd Mon Sep 17 00:00:00 2001 From: Rylie Pavlik Date: Thu, 16 Jan 2025 11:19:16 -0600 Subject: [PATCH] Add new container to run ansible in --- ansible.Dockerfile | 52 ++++++++++++++++++++++++++++++++++++++++++++++ build-all.sh | 3 ++- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 ansible.Dockerfile diff --git a/ansible.Dockerfile b/ansible.Dockerfile new file mode 100644 index 0000000..22f40c1 --- /dev/null +++ b/ansible.Dockerfile @@ -0,0 +1,52 @@ +# Copyright (c) 2025 The Khronos Group Inc. +# +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This is a Docker container for Khronos CI-driven deployments. + +FROM debian:bookworm-slim + +LABEL maintainer="Rylie Pavlik " \ + org.opencontainers.image.authors="Rylie Pavlik " \ + org.opencontainers.image.source=https://github.com/KhronosGroup/DockerContainers/blob/main/openxr-sdk.Dockerfile + +RUN env DEBIAN_FRONTEND=noninteractive apt-get update -qq && \ + env DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y -qq \ + python3 \ + python3-dev \ + python3-pip \ + python3-requests \ + python3-setuptools \ + python3-wheel \ + && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +RUN pip install \ + --break-system-packages \ + --no-cache-dir \ + --disable-pip-version-check \ + --no-input \ + ansible \ + google-auth \ + ansible-lint + +RUN ansible-galaxy collection install \ + --upgrade \ + ansible.posix \ + community.docker \ + google.cloud \ + && \ + rm -rf ~/.ansible/galaxy_cache/ ~/.ansible/tmp/ diff --git a/build-all.sh b/build-all.sh index 592ebb2..01d4428 100755 --- a/build-all.sh +++ b/build-all.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2019-2024, The Khronos Group Inc. +# Copyright 2019-2025, The Khronos Group Inc. # SPDX-License-Identifier: Apache-2.0 set -e @@ -18,4 +18,5 @@ set -e ./build-one.sh openxr-sdk 20240924 "$@" ./build-one.sh openxr-pregenerated-sdk 20240924 "$@" ./build-one.sh openxr-android 20240924 "$@" + ./build-one.sh ansible 20250116 "$@" )