Skip to content

Commit

Permalink
Merge pull request #21 from niklasstoffers/rename-package
Browse files Browse the repository at this point in the history
Rename src package to autoapprove
  • Loading branch information
mergify[bot] authored Dec 26, 2023
2 parents aa1a04d + 174151d commit 958e19f
Show file tree
Hide file tree
Showing 73 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
**/__pycache__
**/*.log
src/config.yaml
autoapprove/config.yaml
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.12
WORKDIR /app
COPY ./src /app
COPY ./default_config.yaml /app/config.yaml
RUN pip install --no-cache-dir -r /app/requirements.txt
WORKDIR /autoapprove
COPY ./autoapprove /autoapprove
COPY ./default_config.yaml /autoapprove/config.yaml
RUN pip install --no-cache-dir -r /autoapprove/requirements.txt
ENTRYPOINT ["python", "main.py"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ If you don't want to use the [prebuilt docker image](https://hub.docker.com/r/ni
You can also setup a new instance without using *Docker*. To do this you will need to have *Python3* installed on your machine.

1. Clone the repository
2. Configure the bot via the *src/config.yaml* file as described [here](#configuration)
2. Configure the bot via the *autoapprove/config.yaml* file as described [here](#configuration)
3. Run the following commands in your terminal
```bash
cd src
cd autoapprove
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Expand Down Expand Up @@ -101,7 +101,7 @@ To integrate this bot with your gitlab repository you will need Maintainer acces

## Configuration

You can use the following configuration options to configure the bot to your specific needs. The bot accepts both configuration via the *src/config.yaml* file as well as environment variables. Environment variable configuration will override configuration in the *src/config.yaml* file.
You can use the following configuration options to configure the bot to your specific needs. The bot accepts both configuration via the *autoapprove/config.yaml* file as well as environment variables. Environment variable configuration will override configuration in the *autoapprove/config.yaml* file.

| Option | Environment variable | Description |
| ----------- | ----------- | ----------- |
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.12
WORKDIR /app
COPY ./src/requirements.txt /app/requirements.txt
WORKDIR /autoapprove
COPY ./autoapprove/requirements.txt /app/requirements.txt
COPY ./default_config.yaml /config/config.yaml
RUN pip install --no-cache-dir -r /app/requirements.txt
ENTRYPOINT ["python", "main.py", "--startup-log-level", "DEBUG", "-c", "/config/config.yaml"]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
context: .
dockerfile: dev.Dockerfile
volumes:
- ./src:/app/
- ./autoapprove:/autoapprove
ports:
- '${APP_PORT}:8000'
environment:
Expand Down

0 comments on commit 958e19f

Please sign in to comment.