mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-11 05:28:12 +02:00
22 lines
345 B
Bash
22 lines
345 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
cd /build_dir
|
|
cp -r /portal_src/* .
|
|
ls -la
|
|
|
|
# Update
|
|
apt-get update
|
|
apt-get install -y ruby
|
|
ruby -ryaml -rjson -e 'puts JSON.pretty_generate(YAML.load(ARGF))' swagger.yaml>swagger.json
|
|
|
|
cat ./package.json
|
|
npm install
|
|
|
|
## Build harbor-portal and link it
|
|
npm run build_lib
|
|
npm run link_lib
|
|
|
|
## Build production
|
|
npm run release
|