Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ make build-docker
Then, you run Polaris Console using:

```bash
docker run -p 8080:80 \
docker run -p 4000:4000 \
-e VITE_POLARIS_API_URL=http://polaris:8181 \
-e VITE_POLARIS_REALM=POLARIS \
-e VITE_POLARIS_PRINCIPAL_SCOPE=PRINCIPAL_ROLE:ALL \
Expand All @@ -250,7 +250,7 @@ docker run -p 8080:80 \
To enable OIDC authentication, add OIDC environment variables:

```bash
docker run -p 8080:80 \
docker run -p 4000:4000 \
-e VITE_POLARIS_API_URL=http://polaris:8181 \
-e VITE_POLARIS_REALM=POLARIS \
-e VITE_POLARIS_PRINCIPAL_SCOPE=PRINCIPAL_ROLE:ALL \
Expand Down Expand Up @@ -288,7 +288,7 @@ and start Polaris instance in `polaris` namespace via helm.

4. **Access the console:**
```bash
kubectl port-forward svc/polaris-console 4000:80 -n polaris
kubectl port-forward svc/polaris-console 4000:4000 -n polaris
```
Open http://localhost:4000 in your browser.

Expand All @@ -310,7 +310,7 @@ env:

service:
type: ClusterIP
port: 80
port: 4000

replicaCount: 1
```
Expand Down
5 changes: 2 additions & 3 deletions console/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ COPY --chown=10000:10001 --chmod=744 docker/generate-config.sh /generate-config.
COPY --from=builder /app/dist /opt/app-root/src

RUN chown -R polaris:polaris /opt/app-root
# Expose port 80
EXPOSE 80
# Expose port 4040
EXPOSE 4040
RUN chown -R polaris:polaris /var/log/nginx \
&& chown -R polaris:polaris /etc/nginx/conf.d \
&& chown -R polaris:polaris /var/lib/nginx \
Expand All @@ -68,4 +68,3 @@ RUN chown -R polaris:polaris /var/log/nginx \
USER polaris
# Use the script as entrypoint to generate config.js from env vars at startup
ENTRYPOINT ["/generate-config.sh"]

3 changes: 1 addition & 2 deletions console/docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

server {
listen 80;
listen 4000;
server_name localhost;
root /opt/app-root/src;
index index.html;
Expand Down Expand Up @@ -57,4 +57,3 @@ server {
add_header Content-Type text/plain;
}
}

4 changes: 2 additions & 2 deletions console/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ replicaCount: 1

service:
type: ClusterIP
port: 80
targetPort: 80
port: 4000
targetPort: 4000

env:
polarisApiUrl: "http://polaris:8181"
Expand Down
Loading