repo: allow individual package building

This commit is contained in:
Thomas Hobson 2021-02-28 18:23:28 +13:00
parent 1ab3f463d0
commit 1dd9e1a738
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
3 changed files with 14 additions and 14 deletions

View File

@ -5,4 +5,7 @@ RUN apt-get update && apt-get install -y autoconf build-essential libssl-dev pkg
pip3 install 'yq==2.12.0' && \
rm -rf /var/lib/apt/lists/*
CMD [ "bash", "/repo/make.sh" ]
ADD *.sh /
ENTRYPOINT ["bash","/entrypoint.sh"]
CMD ["all"]

10
repo/entrypoint.sh Executable file
View File

@ -0,0 +1,10 @@
cd /packages
for pkg in "$*"
do
make -j16 build-$pkg
done
cd /repo
./mkindex.sh
curl -s http://piston_api:6969/repos -XPOST -d "slug=local&url=file:///repo/index.yaml"

View File

@ -1,13 +0,0 @@
#!/bin/bash -e
cd /repo
# Make packages
pushd ../packages/
make -j16
popd
# Make repo index
./mkindex.sh