Skip to content

Commit

Permalink
add: custom registry to podman runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvija Tovernic committed Sep 20, 2024
1 parent f723c4f commit 0318eed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions ansible/roles/podman/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
env:
GITHUB_OWNER: "{{ github_owner }}"
GITHUB_REPOSITORY: "{{ github_repository }}"
CONTAINER_REGISTRY: "{{ azure_container_registry }}"
volumes:
- /.pat:/.pat
state: created
Expand Down
3 changes: 2 additions & 1 deletion images/docker/image-factory-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ RUN mkdir -p ${USER_HOME} && \

# Add podman configuration file(s)
ADD files/containers.conf /etc/containers/containers.conf
RUN chmod 644 /etc/containers/containers.conf
ADD files/registries.conf /etc/containers/registries.conf
RUN chmod 644 /etc/containers/containers.conf /etc/containers/registries.conf

# Setup for rootless podman
RUN usermod --add-subuids 100000-165535 --add-subgids 100000-165535 ${USER_NAME}
Expand Down
5 changes: 5 additions & 0 deletions images/docker/image-factory-runner/files/registries.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[registries]
registries = ["$CONTAINER_REGISTRY"]

[registries.search]
registries = ["$CONTAINER_REGISTRY"]

0 comments on commit 0318eed

Please sign in to comment.