-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
75 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM adoptopenjdk/openjdk11:alpine-jre | ||
|
||
#TODO build libpniio | ||
|
||
RUN apk add dumb-init | ||
MAINTAINER [email protected] | ||
|
||
ARG JAR_FILE | ||
ADD target/${JAR_FILE} /app/bin/dfs.jar | ||
|
||
ADD etc /app/etc | ||
|
||
RUN addgroup --system javauser && adduser -S -s /bin/false -G javauser javauser | ||
RUN chown -R javauser /app | ||
|
||
USER javauser | ||
|
||
WORKDIR /app | ||
|
||
ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||
CMD java -jar -server -DTANGO_HOST=$TANGO_HOST /app/bin/dfs.jar dev |
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,3 @@ | ||
CID=`docker ps -aqf "name=tango-cs"` | ||
echo $CID | ||
docker exec $CID /usr/local/bin/tango_admin --add-server DataFormatServer/dev DataFormatServer dev/xenv/dfs |