harbor/src/portal/docker-build
Shijun Sun 9973d99f3e
Remove chart api (#18265)
* remove chart api from swagger

Delete the api path for chart in the swagger

Signed-off-by: Wang Yan <wangyan@vmware.com>

* Remove chart APIs
   1. Remove some chart-related steps for Dockerfile for portal  container
   2. Remove chart APIs for API center

Signed-off-by: AllForNothing <sshijun@vmware.com>

---------

Signed-off-by: Wang Yan <wangyan@vmware.com>
Signed-off-by: AllForNothing <sshijun@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2023-02-24 14:47:42 +08:00
..
Dockerfile Remove chart api (#18265) 2023-02-24 14:47:42 +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