diff --git a/README.md b/README.md index 7418db2..c3fbcf1 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,9 @@ Given the following incoming webhook payload to `http://{FQDN}:5005/gitlab2jira/ Install it directly into a poetry virtual environment: -```text +```bash +$ git clone https://github.com/redhat-performance/wppt +$ cd wppt $ make install ``` @@ -69,6 +71,19 @@ $ make install After installation, the server can be started with: -```text +```bash $ make run ``` + +### Via Podman + +#### Building the image +```bash +$ cd docker +$ podman build -t wppt . +``` + +#### Running +```bash +$ podman run -it --rm -v /path/to/local/transformers/:/opt/wppt/transformers wppt +``` \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index a65cb25..819a862 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,12 +2,13 @@ FROM python:3.11 LABEL authors="grafuls" -RUN apt-get install git patch +RUN apt-get install git patch make # Set the working directory inside the container WORKDIR /opt RUN git clone https://github.com/redhat-performance/wppt WORKDIR /opt/wppt +RUN git checkout development # Install Poetry RUN pip install poetry @@ -16,4 +17,4 @@ RUN pip install poetry RUN make install # Set the entrypoint command to run the project -CMD ["make", "run",] +CMD ["make", "run"]