Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 2a2390e

Browse files
Yong Sheng Tanystxn
authored andcommitted
Fix docker permissions
1 parent 533a174 commit 2a2390e

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,21 @@ jobs:
6868
name: "Build Federation JAR"
6969
needs: build
7070
runs-on: ubuntu-latest
71+
env:
72+
VERSION: 1.0.5
7173
steps:
7274
- uses: actions/checkout@v3
7375
with:
7476
repository: symphonyplatformsolutions/wdk-federation-client
77+
ref: ${{ env.VERSION }}
7578

7679
- uses: gradle/gradle-build-action@v2
7780
with:
7881
arguments: build
7982

83+
- name: Rename Federation JAR
84+
run: mv lib/symphony-wdk.jar lib/wdk-federation-client-${VERSION}.jar
85+
8086
- name: Upload artifact
8187
uses: actions/upload-artifact@v3.1.2
8288
with:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
77
COPY --from=0 /jre /jre
88
COPY artifact/*.jar /wdk.jar
99

10-
WORKDIR /symphony
11-
RUN addgroup -S symphony && adduser -S symphony -G symphony && chown -R symphony:symphony /symphony
10+
RUN addgroup -S symphony && adduser -S symphony -G symphony
1211
USER symphony
12+
WORKDIR /symphony
1313

1414
EXPOSE 8080
1515
ENTRYPOINT [ "/jre/bin/java", "-jar", "/wdk.jar", "--spring.profiles.active=${PROFILE:default}" ]

studio/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM finos/symphony-wdk:latest
2-
COPY lib lib
3-
COPY application.yaml application.yaml
2+
COPY --chown=symphony:symphony lib lib
3+
COPY --chown=symphony:symphony application.yaml application.yaml
44
ENV PROFILE='prod'

0 commit comments

Comments
 (0)