diff --git a/.jenkins.yaml b/.jenkins.yaml new file mode 100644 index 0000000..074cce5 --- /dev/null +++ b/.jenkins.yaml @@ -0,0 +1,10 @@ +clean_workspace: true +triggers: + github_push: true + cron: "@weekly" +extra_jobs: + - name: invent-reciever + builders: + - docker + docker_name: invent/reciever + docker_context_dir: reciever diff --git a/reciever/Dockerfile b/reciever/Dockerfile new file mode 100644 index 0000000..20755c9 --- /dev/null +++ b/reciever/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.11.3-bullseye +ENV INVENT_HOST_DIR=/app/hosts +ENV INVENT_IMAGE_DIR=/app/images +ENV INVENT_DB_DIR=/app/db +RUN useradd --system --create-home --home-dir /app --shell /bin/bash invent +USER invent +WORKDIR /app +COPY ./main.py . +COPY ./requirements.txt . +RUN pip install --no-cache-dir --requirement requirements.txt +EXPOSE 8000/tcp +CMD [ ".local/bin/uvicorn", "main:app" ]