Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vospace-file-service
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VOSpace INAF
vospace-file-service
Commits
bf88af49
Commit
bf88af49
authored
Dec 17, 2020
by
Sonia Zorba
Browse files
Options
Downloads
Patches
Plain Diff
Added CI
parent
f4f6471a
No related branches found
No related tags found
No related merge requests found
Pipeline
#737
passed
Dec 17, 2020
Stage: test
Stage: dockerize
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+25
-0
25 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+11
-0
11 additions, 0 deletions
Dockerfile
README.md
+6
-0
6 additions, 0 deletions
README.md
docker-env
+8
-0
8 additions, 0 deletions
docker-env
pom.xml
+37
-1
37 additions, 1 deletion
pom.xml
with
87 additions
and
1 deletion
.gitlab-ci.yml
0 → 100644
+
25
−
0
View file @
bf88af49
stages
:
-
test
-
dockerize
test
:
stage
:
test
tags
:
-
docker
script
:
-
mvn clean test
-
awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print "coverage=" 100*covered/instructions }' target/site/jacoco/jacoco.csv
coverage
:
'
/coverage=\d+\.\d+/'
only
:
-
master
deploy
:
stage
:
dockerize
tags
:
-
shell
only
:
-
master
script
:
-
docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
-
docker build -t "${CI_REGISTRY_IMAGE}" .
-
docker push "${CI_REGISTRY_IMAGE}"
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
11
−
0
View file @
bf88af49
FROM
maven:3.6.3-openjdk-14
ADD
src /src
ADD
pom.xml .
RUN
mvn clean package
-DskipTests
-DfinalName
=
vospace-file-service
FROM
openjdk:14-jdk-alpine
COPY
--from=0 /target/vospace-file-service.jar /vospace-file-service.jar
ENTRYPOINT
["java","-jar","/vospace-file-service.jar"]
This diff is collapsed.
Click to expand it.
README.md
+
6
−
0
View file @
bf88af49
...
@@ -3,3 +3,9 @@
...
@@ -3,3 +3,9 @@
This service queries the same database used by VOSpace (
`file_catalog`
).
This service queries the same database used by VOSpace (
`file_catalog`
).
It provides functionalities for downloading and uploading files.
It provides functionalities for downloading and uploading files.
## Running with Docker
See
`docker-env`
file for configuration
docker run -it --env-file docker-env -v "/path/to/userspace:/tmp/fsdemo" -p 8080:8080 git.ia2.inaf.it:5050/ia2/vospace-file-service
This diff is collapsed.
Click to expand it.
docker-env
0 → 100644
+
8
−
0
View file @
bf88af49
path_prefix=/tmp/fsdemo
file-catalog.datasource.jdbc-url=jdbc:postgresql://172.19.0.1:5432/vospace_testdb
file-catalog.datasource.username=postgres
file-catalog.datasource.password=
gms_base_url=https://sso.ia2.inaf.it/gms
jwks_uri=https://sso.ia2.inaf.it/rap-ia2/auth/oidc/jwks
This diff is collapsed.
Click to expand it.
pom.xml
+
37
−
1
View file @
bf88af49
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<properties>
<properties>
<java.version>
14
</java.version>
<java.version>
14
</java.version>
<finalName>
${project.artifactId}-${project.version}
</finalName>
</properties>
</properties>
<dependencies>
<dependencies>
...
@@ -58,11 +59,46 @@
...
@@ -58,11 +59,46 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
<repositories>
<repository>
<id>
ia2-snapshots
</id>
<name>
your custom repo
</name>
<url>
http://repo.ia2.inaf.it/maven/repository/snapshots
</url>
</repository>
</repositories>
<build>
<build>
<finalName>
${finalName}
</finalName>
<plugins>
<plugins>
<plugin>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.22.2
</version>
</plugin>
<plugin>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<executable>
true
</executable>
</configuration>
</plugin>
<plugin>
<groupId>
org.jacoco
</groupId>
<artifactId>
jacoco-maven-plugin
</artifactId>
<version>
0.8.6
</version>
<executions>
<execution>
<goals>
<goal>
prepare-agent
</goal>
</goals>
</execution>
<execution>
<id>
report
</id>
<phase>
test
</phase>
<goals>
<goal>
report
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugin>
</plugins>
</plugins>
</build>
</build>
...
...
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