Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 71bc759

Browse files
author
Philipp Etschel
authored
Merge pull request #690 from bosch-io/feature/sidebar
Hide sidebar
2 parents ff6e469 + 3368501 commit 71bc759

File tree

17 files changed

+199
-186
lines changed

17 files changed

+199
-186
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ jobs:
7070
type=edge,branch=main,priority=700
7171
7272
# Test Phase
73+
- name: Test frontend license headers
74+
run: npm --prefix frontend run license-file-headers-check
7375

74-
- name: Test with npm
76+
- name: Test frontend dependency licenses
7577
## TODO are there any frontend tests?
7678
run: npm --prefix frontend run license-check
7779

Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,18 @@ RUN mvn clean package -DskipTests=true -Dspotbugs.skip=true -Dpmd.skip=true
2626

2727
# Runtime Container
2828
FROM amazoncorretto:17-alpine
29+
30+
# Setup rights for overwriting frontend runtime variables
31+
COPY --from=VUE /frontend/setup-runtime.sh setup-runtime.sh
32+
33+
RUN \
34+
mkdir public && \
35+
chmod a+x ./setup-runtime.sh && \
36+
chmod -R a+rw ./public
37+
38+
COPY --from=VUE /frontend/dist/env.js ./public/env.js
2939
COPY --from=MAVEN /home/maven/business-partner-agent/target/business-partner-agent*SNAPSHOT.jar business-partner-agent.jar
3040

41+
3142
EXPOSE 8080
32-
CMD java -XX:+UnlockExperimentalVMOptions -Dcom.sun.management.jmxremote ${JAVA_OPTS} -jar business-partner-agent.jar
43+
CMD ./setup-runtime.sh public/env.js business-partner-agent.jar && java -XX:+UnlockExperimentalVMOptions -Dcom.sun.management.jmxremote ${JAVA_OPTS} -jar business-partner-agent.jar

Dockerfile.run

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,23 @@
33
FROM adoptopenjdk/openjdk15:alpine
44

55
RUN adduser --disabled-password app
6+
7+
WORKDIR /home/app
8+
9+
# Setup rights for overwriting frontend runtime variables
10+
COPY ./frontend/setup-runtime.sh setup-runtime.sh
11+
12+
RUN \
13+
mkdir public && \
14+
chmod a+x ./setup-runtime.sh && \
15+
chmod -R a+rw ./public
16+
17+
# Non-root
618
USER app
719
WORKDIR /home/app
820

9-
EXPOSE 8080
10-
CMD java -XX:+UnlockExperimentalVMOptions -Dcom.sun.management.jmxremote ${JAVA_OPTS} -jar business-partner-agent.jar
21+
COPY ./frontend/dist/env.js ./public/env.js
22+
COPY ./backend/business-partner-agent/target/business-partner-agent*.jar business-partner-agent.jar
1123

12-
COPY ./backend/business-partner-agent/target/business-partner-agent*.jar business-partner-agent.jar
24+
EXPOSE 8080
25+
CMD ./setup-runtime.sh public/env.js business-partner-agent.jar && java -XX:+UnlockExperimentalVMOptions -Dcom.sun.management.jmxremote ${JAVA_OPTS} -jar business-partner-agent.jar

frontend/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
**/*.scss
88
**/*.sass
99
**/*.html
10+
**/*.sh
1011
node_modules
1112
dist

frontend/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
"vue/comment-directive": "warn",
3232
"unicorn/prefer-module": "off",
3333
"unicorn/filename-case": "off",
34+
"unicorn/prevent-abbreviations": "off",
3435
"@typescript-eslint/ban-ts-comment": "warn",
3536
},
3637
};

frontend/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
# SPDX-License-Identifier: Apache-2.0
66
dist
77
node_modules
8+
setup-runtime.sh

frontend/license-header/config.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
2-
"ignore": ["**/*.md", "**/*.svg", "license-header/license-header"],
2+
"ignore": [
3+
"**/*.md",
4+
"**/*.svg",
5+
"license-header/license-header",
6+
"licenses/attribution.txt",
7+
".husky/_/**/*"
8+
],
39
"license": "license-header/license-header",
4-
"regexIdentifier": "##",
10+
"regexIdentifier": "_!##",
511
"defaultFormat": {
612
"eachLine": {
713
"prepend": "# "

frontend/license-header/license-header

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2020-##[0-9]{4}## - for information on the respective copyright owner
1+
Copyright (c) 2020-_!##[0-9]{4}_!## - for information on the respective copyright owner
22
see the NOTICE file and/or the repository at
33
https://github.com/hyperledger-labs/business-partner-agent
44

frontend/licenses/licenseInfos.json

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
{
2-
"@types/vue-moment": {
3-
"ignore": false,
4-
"name": "@types/vue-moment",
5-
"version": "4.0.3",
6-
"authors": "Dominik Schmidt <https://github.com/domschmidt>",
7-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped",
8-
"license": "MIT",
9-
"licenseText": " MIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n"
10-
},
112
"argparse": {
123
"ignore": false,
134
"name": "argparse",
@@ -28,7 +19,7 @@
2819
"core-js": {
2920
"ignore": false,
3021
"name": "core-js",
31-
"version": "3.19.2",
22+
"version": "3.19.3",
3223
"url": "https://github.com/zloirock/core-js",
3324
"license": "MIT",
3425
"licenseText": "Copyright (c) 2014-2021 Denis Pushkarev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
@@ -89,11 +80,11 @@
8980
"lamejs": {
9081
"ignore": false,
9182
"name": "lamejs",
92-
"version": "1.2.0",
83+
"version": "1.2.1",
9384
"authors": "Alex Zhukov",
9485
"url": "https://github.com/zhuker/lamejs",
9586
"license": "LGPL-3.0",
96-
"licenseText": "Can I use LAME in my commercial program? \n\nYes, you can, under the restrictions of the LGPL. The easiest\nway to do this is to:\n\n1. Link to LAME as separate jar (lame.min.js or lame.all.js)\n\n2. Fully acknowledge that you are using LAME, and give a link\n to our web site, www.mp3dev.org\n\n3. If you make modifications to LAME, you *must* release these\n these modifications back to the LAME project, under the LGPL.\n"
87+
"licenseText": "Can I use LAME in my commercial program? \n\nYes, you can, under the restrictions of the LGPL. The easiest\nway to do this is to:\n\n1. Link to LAME as separate jar (lame.min.js or lame.all.js)\n\n2. Fully acknowledge that you are using LAME, and give a link\n to our web site, lame.sourceforge.net\n\n3. If you make modifications to LAME, you *must* release these\n these modifications back to the LAME project, under the LGPL.\n"
9788
},
9889
"linkify-it": {
9990
"ignore": false,
@@ -184,7 +175,7 @@
184175
"vue-advanced-chat": {
185176
"ignore": false,
186177
"name": "vue-advanced-chat",
187-
"version": "1.4.2",
178+
"version": "1.4.3",
188179
"authors": "Antoine Dupont <antoindupontdev@gmail.com>",
189180
"url": "https://github.com/antoine92190/vue-advanced-chat",
190181
"license": "MIT",
@@ -193,7 +184,7 @@
193184
"vue-i18n": {
194185
"ignore": false,
195186
"name": "vue-i18n",
196-
"version": "8.26.5",
187+
"version": "8.26.7",
197188
"authors": "kazuya kawaguchi <kawakazu80@gmail.com>",
198189
"url": "https://github.com/kazupon/vue-i18n",
199190
"license": "MIT",

0 commit comments

Comments
 (0)