Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vospace-rest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
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
Terraform modules
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
VOSpace INAF
vospace-rest
Commits
26ba723f
Commit
26ba723f
authored
4 years ago
by
Sonia Zorba
Browse files
Options
Downloads
Patches
Plain Diff
Dockerization
parent
7d5288a6
No related branches found
No related tags found
No related merge requests found
Pipeline
#758
passed
4 years ago
Stage: build
Stage: test
Stage: dockerize
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+27
-0
27 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+4
-0
4 additions, 0 deletions
Dockerfile
pom.xml
+2
-0
2 additions, 0 deletions
pom.xml
with
33 additions
and
0 deletions
.gitlab-ci.yml
+
27
−
0
View file @
26ba723f
stages
:
-
build
-
generate-test-env
-
test
-
dockerize
...
...
@@ -7,6 +8,20 @@ variables:
# to avoid "fatal: git fetch-pack: expected shallow list"
GIT_STRATEGY
:
clone
build
:
stage
:
build
tags
:
-
docker
only
:
refs
:
-
ci-test
script
:
-
mvn clean package -DskipTests -DfinalName=vospace
artifacts
:
paths
:
-
target/vospace.jar
expire_in
:
7 days
pre_test
:
stage
:
generate-test-env
tags
:
...
...
@@ -37,3 +52,15 @@ test:
coverage
:
'
/coverage=\d+\.\d+/'
only
:
-
ci-test
dockerize
:
stage
:
dockerize
tags
:
-
shell
only
:
refs
:
-
ci-test
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
+
4
−
0
View file @
26ba723f
FROM
openjdk:14-jdk-alpine
ARG
JAR_FILE=target/vospace.jar
COPY
${JAR_FILE} vospace.jar
ENTRYPOINT
["java","-jar","/vospace.jar"]
This diff is collapsed.
Click to expand it.
pom.xml
+
2
−
0
View file @
26ba723f
...
...
@@ -18,6 +18,7 @@
<java.version>
11
</java.version>
<!-- File catalog repository directory -->
<init_database_scripts_path>
../../../vospace-file-catalog
</init_database_scripts_path>
<finalName>
${project.artifactId}-${project.version}
</finalName>
</properties>
<dependencies>
...
...
@@ -114,6 +115,7 @@
</repositories>
<build>
<finalName>
${finalName}
</finalName>
<testResources>
<testResource>
<directory>
src/test/resources
</directory>
...
...
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