harbor/src/portal/docker-build
Shijun Sun 83bce02e61
Refactor swagger ui (#17428)
Signed-off-by: AllForNothing <sshijun@vmware.com>

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-08-23 12:03:45 +08:00
..
Dockerfile Refactor swagger ui (#17428) 2022-08-23 12:03:45 +08:00
nginx.conf.example Refactor swagger ui (#17428) 2022-08-23 12:03:45 +08:00
README.md Update docker building for UI (#16692) 2022-04-18 11:07:00 +08:00

Steps to deploy Harbor UI in a nginx container, it can be used for testing

  1. Go to docker-build dir

cd ./docker-build

  1. Copy nginx.conf.example to nginx.conf, and modify nginx.conf file to specify an available back-end server

cp nginx.conf.example nginx.conf

location ~ ^/(api|c|chartrepo)/ { proxy_pass ${an available back-end server addr}; }

  1. Build harbor-ui image

docker build -f ./Dockerfile -t harbor-ui:test ./../../..

  1. Run harbor-ui image

docker run -p 8080:8080 harbor-ui:test

  1. Open your browser on http://localhost:8080