use python3 and matrix-synapse v0.34.0
This commit is contained in:
parent
d322c6f2a4
commit
fec4374c81
32
APKBUILD
Normal file
32
APKBUILD
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
pkgname=py3-twisted
|
||||||
|
_pkgname=Twisted
|
||||||
|
pkgver=17.1.0
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Asynchronous networking framework written in Python."
|
||||||
|
url="http://twistedmatrix.com/"
|
||||||
|
arch="all"
|
||||||
|
license="MIT"
|
||||||
|
depends="py3-crypto py3-zope-interface"
|
||||||
|
makedepends="python3-dev py3-setuptools libtirpc-dev"
|
||||||
|
install=""
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="https://twistedmatrix.com/Releases/${_pkgname}/${pkgver%.*}/${_pkgname}-${pkgver}.tar.bz2"
|
||||||
|
builddir="$srcdir"/"$_pkgname"-$pkgver
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$builddir"
|
||||||
|
CFLAGS="$CFLAGS `pkgconf --cflags libtirpc`" python3 setup.py build || return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$builddir"
|
||||||
|
python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
||||||
|
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||||
|
_mans="pyhtmlizer.1 trial.1 twistd.1"
|
||||||
|
for _man in $_mans; do
|
||||||
|
install -m644 -D "$builddir"/docs/core/man/$_man \
|
||||||
|
"$pkgdir"/usr/share/man/man1/$_man || return 1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="e5eedc9a70b7e4d0ec18dddaa82aa9a784e96fd517db65c278d822d15e8bdc65a35307a5a0474eb68dcb73fcd5508086bec605580a9f2f767bcbe27d714b4966 Twisted-17.1.0.tar.bz2"
|
85
Dockerfile
85
Dockerfile
@ -1,49 +1,62 @@
|
|||||||
|
FROM alpine:3.8 AS builder
|
||||||
|
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
alpine-sdk \
|
||||||
|
py3-crypto \
|
||||||
|
py3-zope-interface \
|
||||||
|
python3-dev \
|
||||||
|
py3-setuptools \
|
||||||
|
libtirpc-dev
|
||||||
|
|
||||||
|
RUN adduser -h /var/lib/builder -u 2222 -D -G abuild builder
|
||||||
|
|
||||||
|
COPY APKBUILD /var/lib/builder/APKBUILD
|
||||||
|
|
||||||
|
WORKDIR /var/lib/builder/
|
||||||
|
USER builder
|
||||||
|
|
||||||
|
RUN abuild-keygen -a -n
|
||||||
|
RUN abuild -r
|
||||||
|
|
||||||
FROM thallian/confd-env:latest
|
FROM thallian/confd-env:latest
|
||||||
|
|
||||||
ENV VERSION v0.33.9
|
ENV VERSION v0.34.0
|
||||||
|
|
||||||
RUN addgroup -g 2222 matrix-synapse
|
RUN addgroup -g 2222 matrix-synapse
|
||||||
RUN adduser -h /var/lib/matrix-synapse -u 2222 -D -G matrix-synapse matrix-synapse
|
RUN adduser -h /var/lib/matrix-synapse -u 2222 -D -G matrix-synapse matrix-synapse
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
libressl \
|
libressl \
|
||||||
python2 \
|
python3 \
|
||||||
py2-pip \
|
py3-jsonschema \
|
||||||
py2-psycopg2 \
|
py3-pynacl \
|
||||||
py2-cffi \
|
py3-cffi \
|
||||||
py2-msgpack \
|
py3-service_identity \
|
||||||
py2-psutil \
|
py3-openssl \
|
||||||
py2-openssl \
|
py3-yaml \
|
||||||
py2-service_identity \
|
py3-asn1 \
|
||||||
py2-yaml \
|
py3-asn1-modules \
|
||||||
py2-pillow \
|
py3-bcrypt \
|
||||||
py2-asn1 \
|
py3-pillow \
|
||||||
py2-phonenumbers \
|
py3-psutil \
|
||||||
py2-six \
|
py3-msgpack \
|
||||||
py2-netaddr \
|
py3-phonenumbers \
|
||||||
py2-jsonschema \
|
py3-attrs \
|
||||||
py-jinja2 \
|
py3-netaddr \
|
||||||
py-twisted \
|
py3-jinja2 \
|
||||||
py2-requests \
|
py3-psycopg2 \
|
||||||
py2-future \
|
py3-simplejson \
|
||||||
py2-tz \
|
py3-zope-interface \
|
||||||
py2-dateutil \
|
py3-requests \
|
||||||
py2-olefile \
|
py3-defusedxml \
|
||||||
py2-markupsafe \
|
py3-future \
|
||||||
py2-zope-interface \
|
py3-dateutil \
|
||||||
py2-simplejson \
|
py3-ldap3
|
||||||
py2-chardet \
|
|
||||||
py2-certifi \
|
|
||||||
py2-bcrypt
|
|
||||||
|
|
||||||
RUN apk --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/main add py2-pynacl
|
COPY --from=builder /var/lib/builder/packages/lib/x86_64/py3-twisted-17.1.0-r0.apk /tmp/py3-twisted.apk
|
||||||
|
RUN apk --allow-untrusted add /tmp/py3-twisted.apk
|
||||||
|
|
||||||
COPY py-affinity-0.1.0-r0.apk /tmp/py-affinity-0.1.0-r0.apk
|
RUN pip3 install https://github.com/matrix-org/synapse/tarball/$VERSION
|
||||||
COPY py2-blist-1.3.6-r0.apk /tmp/py2-blist-1.3.6-r0.apk
|
|
||||||
|
|
||||||
RUN apk --allow-untrusted add /tmp/py-affinity-0.1.0-r0.apk /tmp/py2-blist-1.3.6-r0.apk
|
|
||||||
|
|
||||||
RUN pip install https://github.com/matrix-org/synapse/tarball/$VERSION
|
|
||||||
|
|
||||||
ADD /rootfs /
|
ADD /rootfs /
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user