forked from uncloud/uncloud
Merge branch 'master' of code.ungleich.ch:uncloud/uncloud
This commit is contained in:
commit
00d50a368a
3 changed files with 70 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM python:3.10.0
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt ./
|
||||
# OS requirements for building wheel and for operating uncloud
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
libldap-dev \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
libpq-dev \
|
||||
libsasl2-dev \
|
||||
wireguard-tools
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
26
Dockerfile.alpine-linux
Normal file
26
Dockerfile.alpine-linux
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Currently not working due do ldap:
|
||||
#
|
||||
# /usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lldap_r
|
||||
#
|
||||
# While trying to install python-ldap
|
||||
|
||||
FROM python:3.10.0-alpine3.15
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt ./
|
||||
# OS requirements for building wheel and for operating uncloud
|
||||
RUN apk update && apk add \
|
||||
gcc \
|
||||
git \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
libffi-dev \
|
||||
openldap-dev \
|
||||
postgresql-dev \
|
||||
python3-dev \
|
||||
musl-dev \
|
||||
wireguard-tools-wg
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
27
build.sh
Executable file
27
build.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
name=uncloud:$(git describe)
|
||||
docker build -t ${name} .
|
||||
|
||||
# check for args
|
||||
if [ $# -ge 1 ]; then
|
||||
target=$1; shift
|
||||
else
|
||||
target=""
|
||||
fi
|
||||
|
||||
case "$target" in
|
||||
dev)
|
||||
docker tag $name harbor.default.svc.c2.k8s.ooo/ungleich-public/${name}
|
||||
docker push harbor.default.svc.c2.k8s.ooo/ungleich-public/${name}
|
||||
;;
|
||||
"")
|
||||
echo "Not pushing anywhere"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown argument $target, ignoring"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
Loading…
Reference in a new issue