apache / apache/polaris-tools

Docker build issues

Open
#188 3 comments 0 reactions 1 assignee Claimed by @MonkeyCanCode View on GitHub
Dominant language
TypeScript
Stars
33
Forks
46
Avg merge
1d 4m
Merged PRs (30d)
2

Description

Hello,

I recognized two issue with the Dockerfile

1. COPY DISCLAIMER /DISCLAIMER -> fails due to file doesnt'exist

2.
ENV VITE_POLARIS_API_URL=http://polaris:8181
ENV VITE_POLARIS_REALM=POLARIS
ENV VITE_POLARIS_PRINCIPAL_SCOPE=PRINCIPAL_ROLE:ALL
ENV VITE_OAUTH_TOKEN_URL=http://polaris:8181/api/catalog/v1/oauth/tokens
ENV VITE_POLARIS_REALM_HEADER_NAME=Polaris-Realm

are injected at build time. As they're static other env variables aren't taken into consideration.
I recognized it, because I deployed it behind a reverse proxy, and VITE_POLARIS_API_URL was always set to http://polaris:8181
I removed them for the docker build which makes the config.js working as designed

I'll raise a PR with the suggested removals

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.