Skip to content

Commit 8f914b8

Browse files
committed
Initial commit of teardown
1 parent 00ac437 commit 8f914b8

File tree

131 files changed

+17466
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+17466
-0
lines changed

.codeclimate.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
version: "2"
2+
exclude_patterns:
3+
- config/
4+
- db/
5+
- dist/
6+
- features/
7+
- "**/node_modules/"
8+
- script/
9+
- "**/spec/"
10+
- "**/test/"
11+
- "**/tests/"
12+
- Tests/
13+
- "**/vendor/"
14+
- "**/*_test.go"
15+
- "**/*.d.ts"
16+
plugins:
17+
csslint:
18+
enabled: true
19+
editorconfig:
20+
enabled: true
21+
checks:
22+
END_OF_LINE:
23+
enabled: false
24+
INDENTATION_SPACES:
25+
enabled: false
26+
INDENTATION_SPACES_AMOUNT:
27+
enabled: false
28+
TRAILINGSPACES:
29+
enabled: false
30+
eslint:
31+
enabled: true
32+
channel: "eslint-7"
33+
config:
34+
config: app/.eslintrc.js
35+
fixme:
36+
enabled: true
37+
git-legal:
38+
enabled: true
39+
markdownlint:
40+
enabled: true
41+
checks:
42+
MD002:
43+
enabled: false
44+
MD013:
45+
enabled: false
46+
MD029:
47+
enabled: false
48+
MD046:
49+
enabled: false
50+
nodesecurity:
51+
enabled: true
52+
sass-lint:
53+
enabled: true
54+
rules:
55+
nesting-depth:
56+
- 2
57+
- max-depth: 5

.dockerignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Editor directories and files
2+
.DS_Store
3+
.gradle
4+
.nyc_output
5+
.scannerwork
6+
build
7+
coverage
8+
dist
9+
files
10+
**/e2e/videos
11+
node_modules
12+
# Ignore only top-level package-lock.json
13+
/package-lock.json
14+
15+
# Ignore Helm subcharts
16+
charts/**/charts
17+
Chart.lock
18+
19+
# local env files
20+
local.*
21+
local-*.*
22+
.env.local
23+
.env.*.local
24+
25+
# Log files
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
30+
# Editor directories and files
31+
.idea
32+
.vscode
33+
*.iml
34+
*.suo
35+
*.ntvs*
36+
*.njsproj
37+
*.sln
38+
*.sw?
39+
*.mp4
40+
41+
# temp office files
42+
~$*

.editorconfig

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.html]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.{css,js,json,jsx,scss,ts,tsx,vue}]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[.{babelrc,eslintrc}]
18+
indent_style = space
19+
indent_size = 2
20+
21+
[Jenkinsfile*]
22+
indent_style = space
23+
indent_size = 2

.gitattributes

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Autodetect text files and forces unix eols, so Windows does not break them
2+
* text=auto eol=lf
3+
4+
# Force images/fonts to be handled as binaries
5+
*.jpg binary
6+
*.jpeg binary
7+
*.gif binary
8+
*.png binary

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Editor directories and files
2+
.DS_Store
3+
.gradle
4+
.nyc_output
5+
.scannerwork
6+
build
7+
coverage
8+
dist
9+
files
10+
**/e2e/videos
11+
node_modules
12+
# Ignore only top-level package-lock.json
13+
/package-lock.json
14+
15+
# Ignore Helm subcharts
16+
charts/**/charts
17+
Chart.lock
18+
19+
# local env files
20+
*local.*
21+
*local-*.*
22+
.env.local
23+
.env.*.local
24+
25+
26+
# Log files
27+
npm-debug.log*
28+
yarn-debug.log*
29+
yarn-error.log*
30+
31+
# Editor directories and files
32+
.idea
33+
.vscode
34+
*.iml
35+
*.suo
36+
*.ntvs*
37+
*.njsproj
38+
*.sln
39+
*.sw?
40+
*.mp4
41+
42+
# temp office files
43+
~$*

CODE-OF-CONDUCT.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

COMPLIANCE.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: compliance
2+
description: |
3+
This document is used to track a projects PIA and STRA
4+
compliance.
5+
spec:
6+
- name: PIA
7+
status: TBD
8+
last-updated: "2022-12-19T00:00:00.000Z"
9+
- name: STRA
10+
status: TBD
11+
last-updated: "2022-12-19T00:00:00.000Z"

CONTRIBUTING.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# How to contribute
2+
3+
Government employees, public and members of the private sector are encouraged to contribute to the repository by **forking and submitting a pull request**.
4+
5+
(If you are new to GitHub, you might start with a [basic tutorial](https://help.github.com/articles/set-up-git) and check out a more detailed guide to [pull requests](https://help.github.com/articles/using-pull-requests/).)
6+
7+
Pull requests will be evaluated by the repository guardians on a schedule and if deemed beneficial will be committed to the master.
8+
9+
All contributors retain the original copyright to their stuff, but by contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users **under the terms of the [license](./LICENSE) under which this project is distributed**.

Dockerfile

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# FROM docker.io/node:16.15.0-alpine # Last known working alpine image
2+
3+
# RedHat Image Catalog references
4+
# https://catalog.redhat.com/software/containers/ubi9/nodejs-18/62e8e7ed22d1d3c2dfe2ca01
5+
# https://catalog.redhat.com/software/containers/ubi9/nodejs-18-minimal/62e8e919d4f57d92a9dee838
6+
7+
#
8+
# Build the application
9+
#
10+
FROM registry.access.redhat.com/ubi9/nodejs-18:1-62.1692771036 as application
11+
12+
ENV NO_UPDATE_NOTIFIER=true
13+
14+
USER 0
15+
COPY app /tmp/src/app
16+
WORKDIR /tmp/src/app
17+
RUN chown -R 1001:0 /tmp/src/app
18+
19+
USER 1001
20+
RUN npm ci --omit=dev
21+
22+
#
23+
# Build the frontend
24+
#
25+
FROM registry.access.redhat.com/ubi9/nodejs-18:1-62.1692771036 as frontend
26+
27+
ENV NO_UPDATE_NOTIFIER=true
28+
29+
USER 0
30+
COPY frontend /tmp/src/frontend
31+
WORKDIR /tmp/src/frontend
32+
RUN chown -R 1001:0 /tmp/src/frontend
33+
34+
USER 1001
35+
RUN npm ci && npm run build
36+
37+
#
38+
# Create the final container image
39+
#
40+
FROM registry.access.redhat.com/ubi9/nodejs-18-minimal:1-67
41+
42+
ENV APP_PORT=8080 \
43+
NO_UPDATE_NOTIFIER=true
44+
45+
COPY --from=application /tmp/src/app ${HOME}
46+
COPY --from=frontend /tmp/src/frontend/dist ${HOME}/dist
47+
COPY .git ${HOME}/.git
48+
WORKDIR ${HOME}
49+
50+
EXPOSE ${APP_PORT}
51+
CMD ["npm", "run", "start"]

0 commit comments

Comments
 (0)