Adding initial releaser.

This commit is contained in:
sergiotarxz 2022-02-08 05:42:26 +01:00
parent 3a3bf6c2f2
commit 45a26af367
5 changed files with 36 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "aleta"]
path = aleta
url = https://gitea.sergiotarxz.freemyip.com/germedeb/aleta-postre

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM alpine:edge
RUN apk update
RUN apk add inkscape
RUN apk add git
RUN apk add shadow
RUN useradd -m aleta -d /var/lib/aleta
RUN apk add bash
RUN apk add parallel
COPY generate_release.sh /var/lib/aleta/
COPY aleta /var/lib/aleta/aleta
RUN chown -R aleta /var/lib/aleta/aleta
RUN mkdir /var/lib/aleta/output
USER aleta
CMD bash ~/generate_release.sh

1
aleta Submodule

@ -0,0 +1 @@
Subproject commit 8d27a543d1bcea72b92b3a7be487affbd2dce265

7
build.sh Normal file
View File

@ -0,0 +1,7 @@
cd $(dirname $0)
if [ -e output ]; then
rm -rf output
fi
mkdir output
sudo docker build --no-cache -t aletareleaser:latest .
sudo docker run -v $(realpath output):/var/lib/aleta/output --rm -it aletareleaser

9
generate_release.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
cd $HOME/aleta
echo 'will cite' | parallel --bibtex
bash tasks/build.sh
tar -C ~/.icons -czvf ~/output/result.tar.gz aleta