Last active
December 15, 2023 19:18
-
-
Save brycepg/cce020f09f47ba95f628be6f190b3e0c to your computer and use it in GitHub Desktop.
ansible docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:22.04 | |
EXPOSE 22 | |
EXPOSE 5984 | |
RUN apt-get update && apt-get install -y openssh-server sudo | |
COPY --chown=root:root authorized_keys /root/.ssh/authorized_keys | |
RUN chmod 0644 /root/.ssh/authorized_keys | |
ENTRYPOINT service ssh start && bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with
And then execute the ansible:
If you want to bind the 5984 port to the parent OS: