diff --git a/dev/templates/APKBUILD.jinja b/dev/templates/APKBUILD.jinja deleted file mode 100644 index 42e70f0..0000000 --- a/dev/templates/APKBUILD.jinja +++ /dev/null @@ -1,36 +0,0 @@ -# Contributor: Johannes Krattenmacher -# Maintainer: Johannes Krattenmacher -pkgname={{ tool.flit.module.name }} -pkgver={{ project.version }} -pkgrel=0 -pkgdesc="{{ project.description }}" -url="{{ project.urls.homepage }}" -arch="noarch" -license="GPL-3.0" -depends="{{ tool.osreqs.alpine.run | join(' ') }}" -pkgusers=$pkgname -pkggroups=$pkgname -depends_dev="{{ tool.osreqs.alpine.build | join(' ') }}" -makedepends="$depends_dev" -source=" - $pkgname-$pkgver.tar.gz::{{ project.urls.repository }}/archive/refs/tags/v$pkgver.tar.gz -" -builddir="$srcdir"/$pkgname-$pkgver - - - -build() { - cd $builddir - python3 -m build . - pip3 install dist/*.tar.gz -} - -package() { - mkdir -p /etc/$pkgname || return 1 - mkdir -p /var/lib/$pkgname || return 1 - mkdir -p /var/cache/$pkgname || return 1 - mkdir -p /var/logs/$pkgname || return 1 -} - -# TODO -sha512sums="a674eaaaa248fc2b315514d79f9a7a0bac6aa1582fe29554d9176e8b551e8aa3aa75abeebdd7713e9e98cc987e7bd57dc7a5e9a2fb85af98b9c18cb54de47bf7 $pkgname-${pkgver}.tar.gz" diff --git a/dev/templates/Containerfile.jinja b/dev/templates/Containerfile.jinja deleted file mode 100644 index 7a99f03..0000000 --- a/dev/templates/Containerfile.jinja +++ /dev/null @@ -1,40 +0,0 @@ -FROM alpine:3.15 -# Python image includes two Python versions, so use base Alpine - -# Based on the work of Jonathan Boeckel - -WORKDIR /usr/src/app - -# Install run dependencies first -RUN apk add --no-cache {{ tool.osreqs.alpine.run | join(' ') }} - -# system pip could be removed after build, but apk then decides to also remove all its -# python dependencies, even if they are explicitly installed as python packages -# whut -RUN \ - apk add py3-pip && \ - pip install wheel - - -COPY ./requirements.txt ./requirements.txt - -RUN \ - apk add --no-cache --virtual .build-deps {{ tool.osreqs.alpine.build | join(' ') }} && \ - pip install --no-cache-dir -r requirements.txt && \ - apk del .build-deps - - -# no chance for caching below here - -COPY . . - -RUN pip install /usr/src/app - -# Docker-specific configuration -# defaulting to IPv4 is no longer necessary (default host is dual stack) -ENV MALOJA_SKIP_SETUP=yes -ENV PYTHONUNBUFFERED=1 - -EXPOSE 42010 -# use exec form for better signal handling https://docs.docker.com/engine/reference/builder/#entrypoint -ENTRYPOINT ["maloja", "run"] diff --git a/dev/templates/install/install_alpine.sh.jinja b/dev/templates/install/install_alpine.sh.jinja deleted file mode 100644 index 021ebc0..0000000 --- a/dev/templates/install/install_alpine.sh.jinja +++ /dev/null @@ -1,4 +0,0 @@ -{% include 'install/install_dependencies_alpine.sh.jinja' %} -apk add py3-pip -pip install wheel -pip install malojaserver diff --git a/dev/templates/install/install_debian.sh.jinja b/dev/templates/install/install_debian.sh.jinja deleted file mode 100644 index bd3f903..0000000 --- a/dev/templates/install/install_debian.sh.jinja +++ /dev/null @@ -1,4 +0,0 @@ -{% include 'install/install_dependencies_debian.sh.jinja' %} -apt install python3-pip -pip install wheel -pip install malojaserver diff --git a/dev/templates/install/install_dependencies_alpine.sh.jinja b/dev/templates/install/install_dependencies_alpine.sh.jinja deleted file mode 100644 index 862d63c..0000000 --- a/dev/templates/install/install_dependencies_alpine.sh.jinja +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -apk update -apk add \ - {{ (tool.osreqs.alpine.build + tool.osreqs.alpine.run + tool.osreqs.alpine.opt) | join(' \\\n\t') }} diff --git a/dev/templates/install/install_dependencies_debian.sh.jinja b/dev/templates/install/install_dependencies_debian.sh.jinja deleted file mode 100644 index b840935..0000000 --- a/dev/templates/install/install_dependencies_debian.sh.jinja +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -apt update -apt install \ - {{ (tool.osreqs.debian.build + tool.osreqs.debian.run + tool.osreqs.debian.opt) | join(' \\\n\t') }}