repo: verbosity
This commit is contained in:
parent
71d675f454
commit
22e32be05b
|
@ -2,10 +2,9 @@ FROM debian:buster-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y unzip autoconf build-essential libssl-dev pkg-config zlib1g-dev libargon2-dev libsodium-dev libcurl4-openssl-dev sqlite3 libsqlite3-dev libonig-dev libxml2 libxml2-dev bc curl git linux-headers-amd64 perl xz-utils python3 python3-pip gnupg jq zlib1g-dev cmake cmake-doc extra-cmake-modules build-essential gcc binutils bash coreutils util-linux pciutils usbutils coreutils binutils findutils grep && \
|
RUN apt-get update && apt-get install -y unzip autoconf build-essential libssl-dev pkg-config zlib1g-dev libargon2-dev libsodium-dev libcurl4-openssl-dev sqlite3 libsqlite3-dev libonig-dev libxml2 libxml2-dev bc curl git linux-headers-amd64 perl xz-utils python3 python3-pip gnupg jq zlib1g-dev cmake cmake-doc extra-cmake-modules build-essential gcc binutils bash coreutils util-linux pciutils usbutils coreutils binutils findutils grep && \
|
||||||
ln -sf /bin/bash /bin/sh && \
|
ln -sf /bin/bash /bin/sh && \
|
||||||
pip3 install 'yq==2.12.0' && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ADD *.sh /
|
ADD *.sh /
|
||||||
|
|
||||||
ENTRYPOINT ["bash","/entrypoint.sh"]
|
ENTRYPOINT ["bash","/entrypoint.sh"]
|
||||||
CMD ["all"]
|
CMD ["--no-build"]
|
||||||
|
|
|
@ -1,14 +1,38 @@
|
||||||
cd /piston/packages
|
cd /piston/packages
|
||||||
|
|
||||||
SERVER=1
|
SERVER=1
|
||||||
|
BUILD=1
|
||||||
|
|
||||||
|
echo "Running through arguments.."
|
||||||
|
|
||||||
for pkg in "$@"
|
for pkg in "$@"
|
||||||
do
|
do
|
||||||
[[ "$pkg" = "--no-server" ]] && SERVER=0 || make -j16 $pkg.pkg.tar.gz
|
if [[ "$pkg" = "--no-server" ]]; then
|
||||||
|
echo "Not starting index server after builds"
|
||||||
|
SERVER=0
|
||||||
|
elif [[ "$pkg" = "--no-build" ]]; then
|
||||||
|
echo "Building no more package"
|
||||||
|
BUILD=0
|
||||||
|
else
|
||||||
|
if [[ $BUILD -eq 1 ]]; then
|
||||||
|
echo "Building package $pkg"
|
||||||
|
make -j16 $pkg.pkg.tar.gz
|
||||||
|
echo "Done with package $pkg"
|
||||||
|
else
|
||||||
|
echo "Building was disabled, skipping $pkg"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
cd /piston/repo
|
cd /piston/repo
|
||||||
|
echo "Creating index"
|
||||||
./mkindex.sh
|
./mkindex.sh
|
||||||
|
echo "Index created"
|
||||||
|
|
||||||
[[ $SERVER -eq 1 ]] && python3 -m http.server
|
if [[ $SERVER -eq 1 ]]; then
|
||||||
|
echo "Starting index server.."
|
||||||
|
python3 -m http.server
|
||||||
|
else
|
||||||
|
echo "Skipping starting index server"
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue