Skip to content

Commit

Permalink
OPHYK-208 copy settings.xml to container
Browse files Browse the repository at this point in the history
  • Loading branch information
tokarls committed Jan 9, 2025
1 parent a6156a0 commit 4fc1085
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions henkilo-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN dnf install -y nodejs20 \
&& alternatives --install /usr/bin/npx npx /usr/bin/npx-20 90

COPY . .
COPY ../settings.xml .

WORKDIR /app/src/main/static
RUN npm ci
Expand Down
4 changes: 0 additions & 4 deletions henkilo-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@

<maven.compiler.release>21</maven.compiler.release>

<buildNumber>default buildnumber</buildNumber>
<branch>default branch</branch>
<revision>default revision</revision>

<sonar.organization>opetushallitus</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.sources>src/main/java,src/main/static/src</sonar.sources>
Expand Down
7 changes: 6 additions & 1 deletion infra/src/cdk-app-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,11 @@ function makeUbuntuTestProject(
TZ: {
type: codebuild.BuildEnvironmentVariableType.PLAINTEXT,
value: "Europe/Helsinki",
}
},
MVN_SETTINGSXML: {
type: codebuild.BuildEnvironmentVariableType.PARAMETER_STORE,
value: "/mvn/settingsxml",
},
},
buildSpec: codebuild.BuildSpec.fromObject({
version: "0.2",
Expand All @@ -333,6 +337,7 @@ function makeUbuntuTestProject(
"sudo apt-get install -y netcat", // for nc command
"sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb", // For Cypress/Chromium
`git checkout ${tag}`,
"echo $MVN_SETTINGSXML > ./settings.xml",
]
},
build: {
Expand Down

0 comments on commit 4fc1085

Please sign in to comment.