Skip to content

Commit

Permalink
Merge pull request #4 from grafuls/development
Browse files Browse the repository at this point in the history
containers: Docs and dockerfile fixes
  • Loading branch information
sadsfae authored Feb 21, 2024
2 parents 5689f7d + 0d1a2a8 commit b3804cf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,29 @@ 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
```

## Usage

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
```
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]

0 comments on commit b3804cf

Please sign in to comment.