Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DARIAH-DE Aggregator Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
DARIAH-DE
DARIAH-DE Aggregator Services
Commits
e12dc66b
Verified
Commit
e12dc66b
authored
2 years ago
by
Ubbo Veentjer
Browse files
Options
Downloads
Patches
Plain Diff
build docker image
parent
c4cf2332
No related branches found
No related tags found
No related merge requests found
Pipeline
#302196
failed
2 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+18
-0
18 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+20
-0
20 additions, 0 deletions
Dockerfile
with
38 additions
and
0 deletions
.gitlab-ci.yml
+
18
−
0
View file @
e12dc66b
...
@@ -11,6 +11,7 @@ variables:
...
@@ -11,6 +11,7 @@ variables:
MAVEN_DEPLOY_OPTS
:
"
--settings=$MAVEN_SETTINGS_PATH"
MAVEN_DEPLOY_OPTS
:
"
--settings=$MAVEN_SETTINGS_PATH"
# File for storing the POM project.version
# File for storing the POM project.version
VARIABLES_FILE
:
./variables.txt
VARIABLES_FILE
:
./variables.txt
CONTAINER_IMAGE
:
$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
###################
###################
### TEMPLATES ###
### TEMPLATES ###
...
@@ -31,6 +32,10 @@ variables:
...
@@ -31,6 +32,10 @@ variables:
-
'
curl
-u
${APTLY_USER}:${APTLY_PASSWORD}
-X
PUT
-H
"Content-Type:
application/json"
--data
"{}"
${APTLY_URL}/publish/:./indy'
-
'
curl
-u
${APTLY_USER}:${APTLY_PASSWORD}
-X
PUT
-H
"Content-Type:
application/json"
--data
"{}"
${APTLY_URL}/publish/:./indy'
-
fi
-
fi
.kaniko-setup_template
:
&kaniko-setup
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
stages
:
stages
:
-
build_version
-
build_version
-
deploy_java
-
deploy_java
...
@@ -79,6 +84,19 @@ build_and_deploy:
...
@@ -79,6 +84,19 @@ build_and_deploy:
name
:
WEBAPP_DEB_PACKAGES
name
:
WEBAPP_DEB_PACKAGES
paths
:
paths
:
-
./target/*.deb
-
./target/*.deb
build_container
:
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
stage
:
build
before_script
:
-
*kaniko-setup
script
:
-
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CONTAINER_IMAGE
# Deploy DEB files to APTLY repository.
# Deploy DEB files to APTLY repository.
# All four DEB files are deployed with SNAPSHOT version (branch: develop)!
# All four DEB files are deployed with SNAPSHOT version (branch: develop)!
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
20
−
0
View file @
e12dc66b
FROM
maven:3-jdk-8
as
builder
COPY
. /build
WORKDIR
/build
RUN
mvn package
-Dmaven
.test.skip
=
true
-P
\!
textgrid.deb
FROM
tomcat:8-jdk8-openjdk-slim-bullseye
# latex for PDF generation (TODO: test if PDF generation is really working, otherwise safe that space)
RUN
apt-get update
-y
&&
apt-get upgrade
-y
&&
apt-get
install
--no-install-recommends
-y
\
#texlive-xetex
\
texlive-latex-base
\
texlive-latex-extra
\
texlive-plain-generic
\
# save some space
&& rm -rf /var/lib/apt/lists/*
COPY
--from=builder /build/target/aggregator-*.war /usr/local/tomcat/webapps/aggregator.war
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