Skip to content

Commit

Permalink
bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
rhmk committed Oct 5, 2021
1 parent 6baf2ee commit 13cd3c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# stable/Dockerfile
# Container build on the podman in podman image described here:
# https://www.redhat.com/sysadmin/podman-inside-container
#
# Build a Podman container image from the latest
# stable version of Podman on the Fedoras Updates System.
# https://bodhi.fedoraproject.org/updates/?search=podman
# This image can be used to create a secured container
# that runs safely with privileges within the container.
#
#
FROM quay.io/podman/stable

RUN dnf install -y python3-pip python3-paramiko man-db less
RUN python3 -m pip install ansible ansible-navigator
RUN mkdir /home/podman/ansible
ADD https://raw.githubusercontent.com/rhmk/ansible-cli-container/main/ansible-navigator.yml /home/podman/.ansible-navigator.yml
RUN cp /home/podman/.ansible-navigator.yml /root/.ansible-navigator.yml; chown podman:podman /home/podman/.ansible-navigator.yml

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $ podman build -t ansible-cli:latest .

Run the container
```
$ podman run -tid --name ans-cli --security-opt label=disable --user podman --device /dev/fuse -v my_local_dir:/home/podman:Z ansible-cli:latest
$ podman run -tid --name ans-cli --security-opt label=disable --device /dev/fuse -v my_local_dir:/home/podmani/ansible:Z ansible-cli:latest
$ podman exec -it ans-cli /bin/bash
```

0 comments on commit 13cd3c2

Please sign in to comment.