mirror of
https://github.com/krateng/maloja.git
synced 2025-06-05 14:45:00 -04:00
Remove manual install helpers
This commit is contained in:
parent
cf0a856040
commit
922eae7b68
@ -1,36 +0,0 @@
|
|||||||
# Contributor: Johannes Krattenmacher <maloja@dev.krateng.ch>
|
|
||||||
# Maintainer: Johannes Krattenmacher <maloja@dev.krateng.ch>
|
|
||||||
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"
|
|
@ -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 <jonathanboeckel1996@gmail.com>
|
|
||||||
|
|
||||||
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"]
|
|
@ -1,4 +0,0 @@
|
|||||||
{% include 'install/install_dependencies_alpine.sh.jinja' %}
|
|
||||||
apk add py3-pip
|
|
||||||
pip install wheel
|
|
||||||
pip install malojaserver
|
|
@ -1,4 +0,0 @@
|
|||||||
{% include 'install/install_dependencies_debian.sh.jinja' %}
|
|
||||||
apt install python3-pip
|
|
||||||
pip install wheel
|
|
||||||
pip install malojaserver
|
|
@ -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') }}
|
|
@ -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') }}
|
|
Loading…
x
Reference in New Issue
Block a user