repo: allow individual package building
This commit is contained in:
parent
1ab3f463d0
commit
1dd9e1a738
|
@ -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"]
|
||||
|
|
|
@ -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"
|
13
repo/make.sh
13
repo/make.sh
|
@ -1,13 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
cd /repo
|
||||
|
||||
# Make packages
|
||||
pushd ../packages/
|
||||
make -j16
|
||||
popd
|
||||
|
||||
|
||||
# Make repo index
|
||||
|
||||
./mkindex.sh
|
Loading…
Reference in New Issue