Skip to content

Commit

Permalink
add dockerfile and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Izquierdo committed Aug 5, 2022
1 parent 01ca31c commit d5ba203
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.git
venv
.venv/
**/*.pyc
**/__pycache__
.tox
.vscode/
.idea/
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM registry.access.redhat.com/ubi9/python-39

ARG USER_ID=${USER_ID:-1001}
WORKDIR $HOME

USER 0
RUN pip install -U pip \
&& pip install ansible \
ansible-runner \
jmespath \
&& ansible-galaxy collection install benthomasson.eda
COPY . $WORKDIR
RUN chown -R $USER_ID ./

USER $USER_ID
RUN pip install .
24 changes: 24 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,30 @@ inside the collection benthomasson.eda.



How to install
--------------

Via PyPi:
#########

.. code-block:: shell-session
pip install ansible-events
Via Docker:
###########

.. code-block:: shell-session
docker build -t ansible-events .
Usage
--------------

.. code-block:: shell-session
ansible-events --help
Credits
Expand Down

0 comments on commit d5ba203

Please sign in to comment.