mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17:32 +09:00
Update NSS to 3.41
This commit is contained in:
parent
d5f6e64f43
commit
5f0986e66f
540 changed files with 49568 additions and 10631 deletions
|
|
@ -13,12 +13,12 @@ raise_error() {
|
|||
test -n "$PROJECT" || raise_error "Project must be provided."
|
||||
test -n "$HASH" || raise_error "Context Hash must be provided."
|
||||
|
||||
CONTEXT_PATH=/home/worker/nss/$CONTEXT_PATH
|
||||
CONTEXT_PATH="/home/worker/nss/$CONTEXT_PATH"
|
||||
|
||||
test -d $CONTEXT_PATH || raise_error "Context Path $CONTEXT_PATH does not exist."
|
||||
test -d "$CONTEXT_PATH" || raise_error "Context Path $CONTEXT_PATH does not exist."
|
||||
test -f "$CONTEXT_PATH/Dockerfile" || raise_error "Dockerfile must be present in $CONTEXT_PATH."
|
||||
|
||||
docker build -t $PROJECT:$HASH $CONTEXT_PATH
|
||||
docker build -t "$PROJECT:$HASH" "$CONTEXT_PATH"
|
||||
|
||||
mkdir /artifacts
|
||||
docker save $PROJECT:$HASH > /artifacts/image.tar
|
||||
docker save "$PROJECT:$HASH" > /artifacts/image.tar
|
||||
|
|
|
|||
|
|
@ -2,12 +2,11 @@
|
|||
|
||||
set -v -e -x
|
||||
|
||||
# Assert that we're not running as root.
|
||||
if [[ $(id -u) -eq 0 ]]; then
|
||||
# Stupid Docker. It works without sometimes... But not always.
|
||||
echo "127.0.0.1 localhost.localdomain" >> /etc/hosts
|
||||
|
||||
# Drop privileges by re-running this script.
|
||||
# Note: this mangles arguments, better to avoid running scripts as root.
|
||||
# This exec is still needed until aarch64 images are updated (Bug 1488325).
|
||||
# Remove when images are updated. Until then, assert that things are good.
|
||||
[[ $(uname -m) == aarch64 ]]
|
||||
exec su worker -c "$0 $*"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue