Skip to content

Commit

Permalink
Add new container to run ansible in
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Jan 16, 2025
1 parent 8ffe1e9 commit 436632c
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
52 changes: 52 additions & 0 deletions ansible.Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>" \
org.opencontainers.image.authors="Rylie Pavlik <[email protected]>" \
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/
3 changes: 2 additions & 1 deletion build-all.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 "$@"
)

0 comments on commit 436632c

Please sign in to comment.