forked from sigstore/rekor-search-ui
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: transpile patternfly icons package
fix: typo in start.sh script fix: update rekor server endpoint fix: make value dynamic fix: use runtimeConfig to resolve endpoint
- Loading branch information
Showing
6 changed files
with
52 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
FROM registry.access.redhat.com/ubi9/nodejs-18@sha256:773645c3eae02529e09c04a843a0c6783de45b084b325685b043b7818c7a8bf6 as Build | ||
# | ||
COPY . . | ||
COPY start.sh /start.sh | ||
USER root | ||
ENV NODE_ENV production | ||
EXPOSE 3000 | ||
RUN echo "export PATH=${PATH}:$HOME/node_modules/.bin" >> ~/.bashrc && \ | ||
npm install --ignore-scripts && \ | ||
npm run build && \ | ||
chmod -R 777 /opt/app-root/src/.npm && \ | ||
npm cache clean --force && \ | ||
chmod +x /start.sh | ||
echo "NEXT_PUBLIC_REKOR_DEFAULT_DOMAIN = ${NEXT_PUBLIC_REKOR_DEFAULT_DOMAIN}" && \ | ||
npm cache clean --force | ||
USER 1001 | ||
CMD ["/bin/sh", "/start.sh"] | ||
CMD ["node_modules/.bin/next", "start"] | ||
|
||
LABEL \ | ||
com.redhat.component="trusted-artifact-signer-rekor-ui" \ | ||
name="trusted-artifact-signer-rekor-ui" \ | ||
version="0.0.1" \ | ||
summary="User Interface for checking Rekor Entries" \ | ||
description="Provides a user interface for checking Rekor Entries through an Node App" \ | ||
io.k8s.description="Provides a user interface for checking Rekor Entries through an Node App" \ | ||
io.k8s.display-name="Provides a user interface for checking Rekor Entries through an Node App" \ | ||
description="Provides a user interface for checking Rekor Entries through a Node App" \ | ||
io.k8s.description="Provides a user interface for checking Rekor Entries through a Node App" \ | ||
io.k8s.display-name="Provides a user interface for checking Rekor Entries through a Node App" \ | ||
io.openshift.tags="rekor-ui, rekor, cli, rhtas, trusted, artifact, signer, sigstore" \ | ||
maintainer="[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
modularizeImports: { | ||
"@patternfly/react-icons": { | ||
transform: "@patternfly/react-icons/{{member}}", | ||
}, | ||
}, | ||
reactStrictMode: true, | ||
transpilePackages: ["@patternfly/react-core", "@patternfly/react-styles"], | ||
publicRuntimeConfig: { | ||
// remove private env variables | ||
processEnv: Object.fromEntries( | ||
Object.entries(process.env).filter(([key]) => | ||
key.includes("NEXT_PUBLIC_"), | ||
), | ||
), | ||
}, | ||
transpilePackages: [ | ||
"@patternfly/react-core", | ||
"@patternfly/react-icons", | ||
"@patternfly/react-styles", | ||
], | ||
}; | ||
|
||
module.exports = nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters