-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: Review tests following to solutions navbar integration
Refs: #3104
- Loading branch information
1 parent
6cbae9d
commit 2901568
Showing
10 changed files
with
121 additions
and
119 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
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,48 @@ | ||
FROM centos:7 | ||
|
||
ENV LANG=en_US.utf8 | ||
|
||
RUN curl -sL https://rpm.nodesource.com/setup_12.x | bash - | ||
RUN yum install -y --setopt=skip_missing_names_on_install=False \ | ||
epel-release \ | ||
&& \ | ||
yum install -y --setopt=skip_missing_names_on_install=False \ | ||
git \ | ||
nginx \ | ||
nodejs | ||
|
||
COPY shell-ui-docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x /docker-entrypoint.sh | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
||
ENTRYPOINT [ "/entrypoint.sh" ] | ||
|
||
COPY conf/nginx.conf /etc/nginx/conf.d/default.conf | ||
RUN rm -rf /usr/share/nginx/html/* | ||
|
||
# UI build (cannot use build stages for now) {{{ | ||
|
||
RUN adduser -u 1000 --home /home/node node | ||
|
||
USER node | ||
WORKDIR /home/node | ||
|
||
COPY package.json package-lock.json /home/node/ | ||
|
||
RUN npm ci | ||
|
||
COPY webpack.*.js babel.config.js .flowconfig /home/node/ | ||
COPY src /home/node/src/ | ||
|
||
RUN npm run build | ||
|
||
USER root | ||
|
||
# }}} | ||
|
||
RUN mkdir -p /usr/share/nginx/html/shell | ||
RUN cp -r dist/* /usr/share/nginx/html/shell | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
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,2 @@ | ||
#!/bin/sh | ||
exec "$@" |
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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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