Cleanup and improve entrypoint.

This commit is contained in:
Alexis Lahouze 2018-11-24 13:14:45 +01:00
parent cce97d9bec
commit 65cb017825

View File

@ -5,21 +5,13 @@ die() {
exit 1
}
export SHELL=/bin/bash
export PYTHON=python
# Download latest portage snapshot
wget -O /var/lib/catalyst/store/snapshots/portage-latest.tar.bz2 \
https://gentoo.osuosl.org/releases/snapshots/current/portage-latest.tar.bz2
# Update stage3 snapshot
catalyst -c /var/lib/catalyst/catalyst.conf \
-f /var/lib/catalyst/stage3.spec -a
catalyst -c /var/lib/catalyst/catalyst.conf -f /var/lib/catalyst/stage3.spec
# Update custom packages
catalyst -c /var/lib/catalyst/catalyst.conf \
-f /var/lib/catalyst/build.spec
# Copy distfiles to web directory
rsync -avug /var/lib/catalyst/store/packages/default/stage3-amd64/ \
/var/cache/portage/packages/
catalyst -c /var/lib/catalyst/catalyst.conf -f /var/lib/catalyst/build.spec