Merge branch 'multi' of https://github.com/Jxck-S/plane-notify into multi
This commit is contained in:
commit
592ed78ac8
|
@ -0,0 +1,23 @@
|
||||||
|
FROM python:3
|
||||||
|
|
||||||
|
WORKDIR /plane-notify
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Set the Chrome repo.
|
||||||
|
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
||||||
|
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
|
||||||
|
|
||||||
|
# Install Chrome.
|
||||||
|
RUN apt-get update && apt-get -y install google-chrome-stable
|
||||||
|
|
||||||
|
# Add pipenv
|
||||||
|
RUN pip install pipenv==2021.5.29
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN pipenv install
|
||||||
|
|
||||||
|
# Added needed folder for plane-notify process
|
||||||
|
RUN mkdir /home/plane-notify
|
||||||
|
|
||||||
|
CMD pipenv run python /plane-notify/__main__.py
|
12
README.md
12
README.md
|
@ -90,9 +90,19 @@ screen -R <name screen whatever you want>
|
||||||
### Start Program
|
### Start Program
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pipenv run __main__
|
pipenv run python __main__
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Using with Docker
|
||||||
|
|
||||||
|
Install [docker from their website](https://docs.docker.com/get-docker/). Run the following command from the root of the project.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
After running this command, dut to the `-d` flag the container will be running in the background. To see the logs of the docker
|
||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
|
|
||||||
- General Cleanup
|
- General Cleanup
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
plane-notify:
|
||||||
|
platform: linux/amd64
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
volumes:
|
||||||
|
- ./:/plane-notify
|
Loading…
Reference in New Issue