diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0a8820c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "kontify/kontify"] + path = kontify/kontify + url = https://github.com/jahir/kontify.git diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..e62bcfa --- /dev/null +++ b/.woodpecker.yml @@ -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 \ No newline at end of file diff --git a/kontify/.gitignore b/kontify/.gitignore new file mode 100644 index 0000000..2ec5195 --- /dev/null +++ b/kontify/.gitignore @@ -0,0 +1 @@ +config/ \ No newline at end of file diff --git a/kontify/Dockerfile b/kontify/Dockerfile new file mode 100644 index 0000000..661003c --- /dev/null +++ b/kontify/Dockerfile @@ -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" ] + diff --git a/kontify/README.MD b/kontify/README.MD new file mode 100644 index 0000000..f6d2316 --- /dev/null +++ b/kontify/README.MD @@ -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 + +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. \ No newline at end of file diff --git a/kontify/RUN.sh b/kontify/RUN.sh new file mode 100644 index 0000000..2502976 --- /dev/null +++ b/kontify/RUN.sh @@ -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 \ No newline at end of file