Added kontify

This commit is contained in:
Henrik Mertens 2023-02-21 09:41:57 +01:00
parent 5dc1c1aa3c
commit 5846bfa20d
6 changed files with 63 additions and 0 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "kontify/kontify"]
path = kontify/kontify
url = https://github.com/jahir/kontify.git

14
.woodpecker.yml Normal file
View file

@ -0,0 +1,14 @@
pipeline:
docker-buildx-kontify:
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm64/v8
repo: git.mertens.digital/mertens.digital/kontify
registry: git.mertens.digital
tags: latest
password:
from_secret: docker_password
username:
from_secret: docker_username
dockerfile: ./kontify/Dockerfile
context: ./kontify

1
kontify/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
config/

22
kontify/Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM python:latest
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
git \
sqlite3
COPY RUN.sh /RUN.sh
RUN chmod +x /RUN.sh
WORKDIR /
RUN git clone https://github.com/jahir/kontify.git
WORKDIR "/kontify"
#ENTRYPOINT [ "/bin/bash" ]
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
ENTRYPOINT [ "/bin/bash" ]
CMD [ "/RUN.sh" ]

15
kontify/README.MD Normal file
View file

@ -0,0 +1,15 @@
# kontify Docker Build
This Images runs [_kontify_](https://github.com/jahir/kontify/blob/master/README.md) in a Container.
---
To make this Container work you have to create a Config and a Database first. This can be seen in the [_kontify_](https://github.com/jahir/kontify/blob/master/README.md) Repository.
## Run this Container
docker run \
--name knotify \
-v <config Folder>:/config
The Database and the Config File is copied into the kontify Folder to be read by the Programm. After the Command is finished the Database is copied back into the Config Folder.

8
kontify/RUN.sh Normal file
View file

@ -0,0 +1,8 @@
#/bin/bash
cp /config/kontify.yaml /kontify/kontify.yaml
cp /config/kontify.sqlite /kontify/kontify.sqlite
python /kontify/kontify.py
cp /kontify/kontify.sqlite /config/kontify.sqlite