Page MenuHomeSealhub

jenkins.prepare.sh
No OneTemporary

jenkins.prepare.sh

#!/bin/bash -xe
set -e
docker-compose down
npx sealgen make-env
cp secrets.example.json secrets.json
export SEALIOUS_PORT="${PORT}0"
SEALIOUS_BASE_URL=$(cat .base_url)
export SEALIOUS_BASE_URL
# Create the npm cache directory if it isn't present yet. If it is not present, it will be created
# when the docker image is being built with root:root as the owner.
mkdir -p ~/.npm_cacache
# https://github.com/docker/compose/issues/4725
docker-compose build
# Create .npm directory in the container, since it is not yet present and we need it for next step.
docker-compose run --user="$UID" --rm --service-ports test mkdir -p /opt/sealious-app/.npm
# Link the host-bound npm cache directory into the container's npm cache directory.
docker-compose run --user="$UID" --rm --service-ports test ln -s /opt/sealious-app/.npm_cacache/ /opt/sealious-app/.npm/_cacache
docker-compose up -d db
./npm.sh --no-TTY --user="$UID" ci && ./npm.sh --no-TTY --user="$UID" run build
rm -f log.html

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Jan 24, 16:50 (10 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
599692
Default Alt Text
jenkins.prepare.sh (982 B)

Event Timeline