Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
base-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Datenbanken 2 - Praktikum
base-project
Commits
f5274fc5
Commit
f5274fc5
authored
4 years ago
by
Lukas Köhler
Browse files
Options
Downloads
Patches
Plain Diff
add dependency image
parent
3c12e4cb
No related branches found
No related tags found
No related merge requests found
Pipeline
#51647
canceled
4 years ago
Stage: build
Stage: check
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+17
-2
17 additions, 2 deletions
.gitlab-ci.yml
docker/dependencyImage/Dockerfile
+15
-0
15 additions, 0 deletions
docker/dependencyImage/Dockerfile
with
32 additions
and
2 deletions
.gitlab-ci.yml
+
17
−
2
View file @
f5274fc5
image
:
openjdk:11
image
:
registry.code.fbi.h-da.de/db2-praktikum/base-project/dependency_image:latest
before_script
:
-
export GRADLE_USER_HOME=`pwd`/.gradle
-
chmod +x ./gradlew
-
cp -r /dependencies/.gradle ./
-
cp -r /dependencies/build ./
stages
:
-
create_dependency_image
-
build
-
check
...
...
@@ -53,3 +55,16 @@ spotbugs_test:
paths
:
-
spotbugsTest.html
expire_in
:
1 week
# create_dependency_image:
# stage: create_dependency_image
# image:
# name: gcr.io/kaniko-project/executor:debug
# entrypoint: [""]
# script:
# - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
# - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/docker/dependencyImage/Dockerfile --destination $CI_REGISTRY_IMAGE/dependency_image:latest
# when: manual
# only:
# - dependencyImage
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker/dependencyImage/Dockerfile
0 → 100644
+
15
−
0
View file @
f5274fc5
FROM
openjdk:11
ENV
GRADLE_USER_HOME=/workspace/.gradle
COPY
./ /workspace
WORKDIR
/workspace
RUN
ls
-la
&&
\
chmod
+x ./gradlew
&&
\
./gradlew assemble
&&
\
ls
-la
&&
\
mkdir
/dependencies
&&
\
cp
-r
build /dependencies
&&
\
cp
-r
.gradle /dependencies
&&
\
cd
/
&&
rm
-r
workspace
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