mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
d45ccbbb29
Signed-off-by: Meina Zhou <meinaz@vmware.com>
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
|