forked from stolostron/console
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial webpack support Signed-off-by: James Talton <[email protected]> * webpack work Signed-off-by: James Talton <[email protected]> * fix Signed-off-by: James Talton <[email protected]> * cleanup Signed-off-by: James Talton <[email protected]> * fix Signed-off-by: James Talton <[email protected]> * cleanup Signed-off-by: James Talton <[email protected]> * work Signed-off-by: James Talton <[email protected]> * fix Signed-off-by: James Talton <[email protected]> * fixes Signed-off-by: James Talton <[email protected]> * work Signed-off-by: James Talton <[email protected]> * work Signed-off-by: James Talton <[email protected]> * hot module replacement Signed-off-by: James Talton <[email protected]> * proxies Signed-off-by: James Talton <[email protected]> * types Signed-off-by: James Talton <[email protected]> * tsconfig Signed-off-by: James Talton <[email protected]> * fix Signed-off-by: James Talton <[email protected]> * work Signed-off-by: James Talton <[email protected]> * hot reload fix Signed-off-by: James Talton <[email protected]> * update packages Signed-off-by: James Talton <[email protected]> * fixes Signed-off-by: James Talton <[email protected]> * fix Signed-off-by: James Talton <[email protected]> * updates Signed-off-by: James Talton <[email protected]> * work Signed-off-by: James Talton <[email protected]> * webpack working Signed-off-by: James Talton <[email protected]> * fix output directory Signed-off-by: James Talton <[email protected]> * eslint fix Signed-off-by: James Talton <[email protected]> * fix Signed-off-by: James Talton <[email protected]> * fix Signed-off-by: James Talton <[email protected]> * fixes Signed-off-by: James Talton <[email protected]> * fix file serve Signed-off-by: James Talton <[email protected]> * fix test Signed-off-by: James Talton <[email protected]> * fix production paths Signed-off-by: James Talton <[email protected]> * cleanup Signed-off-by: James Talton <[email protected]>
- Loading branch information
1 parent
d38a36f
commit cb42e57
Showing
196 changed files
with
2,980 additions
and
6,820 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
**/certs/ | ||
**/node_modules/ | ||
**/coverage/ | ||
**/lib/ | ||
**/dist/ | ||
**/build/ | ||
**/.eslintcache | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict = true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,19 +1,33 @@ | ||
# Copyright Contributors to the Open Cluster Management project | ||
|
||
FROM registry.ci.openshift.org/open-cluster-management/builder:nodejs14-linux as builder | ||
FROM registry.ci.openshift.org/open-cluster-management/builder:nodejs14-linux as packages | ||
WORKDIR /app | ||
COPY . . | ||
COPY package.json yarn.lock ./ | ||
COPY ./backend/package.json /app/backend/package.json | ||
COPY ./frontend/package.json /app/frontend/package.json | ||
|
||
FROM packages as builder | ||
RUN yarn install --frozen-lockfile --ignore-optional | ||
|
||
FROM packages as production | ||
RUN yarn install --production --frozen-lockfile --ignore-optional | ||
|
||
FROM builder as backend | ||
COPY ./backend ./backend | ||
WORKDIR /app/backend | ||
RUN yarn run build | ||
|
||
FROM builder as frontend | ||
COPY ./frontend ./frontend | ||
WORKDIR /app/frontend | ||
RUN yarn run build | ||
RUN rm -rf node_modules && yarn install --frozen-lockfile --production --ignore-optional | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
COPY --from=builder /usr/bin/node /usr/bin/node | ||
WORKDIR /app | ||
ENV NODE_ENV production | ||
COPY --from=builder /app/node_modules ./node_modules | ||
COPY --from=builder /app/backend/node_modules ./backend/node_modules | ||
COPY --from=builder /app/backend/build ./backend | ||
COPY --from=builder /app/frontend/build ./public | ||
COPY --from=production /app/node_modules ./node_modules | ||
COPY --from=production /app/backend/node_modules ./backend/node_modules | ||
COPY --from=backend /app/backend/build ./backend | ||
COPY --from=frontend /app/frontend/build ./public | ||
USER 1001 | ||
CMD ["node", "backend/lib/main.js"] |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// https://babeljs.io/docs/en/configuration | ||
{ | ||
"presets": ["@babel/env", "@babel/react", "@babel/preset-typescript"] | ||
} |
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
Oops, something went wrong.