Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IA2
GMS
Commits
6b39a132
Commit
6b39a132
authored
3 years ago
by
Sonia Zorba
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile changes
parent
2f085290
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+3
-17
3 additions, 17 deletions
README.md
docker-env
+0
-7
0 additions, 7 deletions
docker-env
gms/Dockerfile
+31
-5
31 additions, 5 deletions
gms/Dockerfile
with
34 additions
and
29 deletions
README.md
+
3
−
17
View file @
6b39a132
# IA2 GMS
##
Database
Docker image
## Docker image
s
To build the image run
**from current directory**
:
Docker images are available on
[
container registry page
](
https://www.ict.inaf.it/gitlab/ia2/ia2-gms/container_registry
)
.
docker build -f database/Dockerfile --tag gms-db .
To start the image and use the database:
docker run -d -p 5432:5432 -i -t gms-db:latest
## GMS Docker image
To build the image:
mvn clean package dockerfile:build -DskipTests
To run:
docker run --env-file docker-env -d -p 8081:8081 -i -t gms:latest
A working demo using Docker Compose is available on
[
RAP repository
](
https://www.ict.inaf.it/gitlab/ia2/rap-ia2
)
.
## Create the first super-admin
...
...
This diff is collapsed.
Click to expand it.
docker-env
deleted
100644 → 0
+
0
−
7
View file @
2f085290
SPRING_DATASOURCE_URL=jdbc:postgresql://140.105.79.115:5432/postgres
SECURITY_OAUTH2_CLIENT_ACCESS-TOKEN-URI=http://140.105.79.115/rap-ia2/auth/oauth2/token
SECURITY_OAUTH2_CLIENT_USER-AUTHORIZATION-URI=http://localhost/rap-ia2/auth/oauth2/authorize
SECURITY_OAUTH2_RESOURCE_TOKEN-INFO-URI=http://140.105.79.115/rap-ia2/auth/oauth2/check_token
SECURITY_OAUTH2_RESOURCE_JWK_KEY-SET-URI=http://140.105.79.115/rap-ia2/auth/oidc/jwks
RAP_WS-URL=http://140.105.79.115/rap-ia2/ws
SPRING_PROFILES_ACTIVE=prod
This diff is collapsed.
Click to expand it.
gms/Dockerfile
+
31
−
5
View file @
6b39a132
FROM
openjdk:8-jdk-alpine
VOLUME
/tmp
ARG
JAR_FILE
COPY
target/${JAR_FILE} app.jar
ENTRYPOINT
["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
FROM
node:15
ADD
gms-ui/package*.json /gms-ui/
WORKDIR
/gms-ui
RUN
npx browserslist@latest
--update-db
RUN
npm ci
ADD
gms-ui/src /gms-ui/src/
ADD
gms-ui/public /gms-ui/public/
ADD
gms-ui/*.js /gms-ui/
ADD
gms-ui/*.json /gms-ui/
ADD
gms-ui/.env.production /gms-ui/
RUN
npm run build
FROM
maven:3.6.3-openjdk-14
COPY
--from=0 /gms-ui/dist/. /gms-ui/dist/
ADD
gms/pom.xml /gms/pom.xml
ADD
gms/src /gms/src/
WORKDIR
/gms
RUN
mvn clean package
-DskipTests
FROM
openjdk:14-jdk-alpine
COPY
--from=1 /gms/target/gms.jar /gms.jar
ENTRYPOINT
["java","-jar","/gms.jar"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment