Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lol-statis
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
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
Jozef Bugoš
lol-statis
Commits
fa8a8f68
Commit
fa8a8f68
authored
3 years ago
by
Jozef Bugos
Browse files
Options
Downloads
Patches
Plain Diff
adding CI/CD
parent
d1602af4
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+3
-3
3 additions, 3 deletions
Dockerfile
docker-compose.yml
+5
-21
5 additions, 21 deletions
docker-compose.yml
gitlab.ci.yml
+38
-0
38 additions, 0 deletions
gitlab.ci.yml
pom.xml
+2
-2
2 additions, 2 deletions
pom.xml
with
48 additions
and
26 deletions
Dockerfile
+
3
−
3
View file @
fa8a8f68
FROM
adoptopenjdk/openjdk11:latest
FROM
openjdk:13-alpine
VOLUME
/tmp
COPY
target/*.jar app.jar
ENTRYPOINT
["java","-jar","/app.jar"]
\ No newline at end of file
ADD
/target/*.jar lol-statistic-0.0.1-SNAPSHOT.jar
ENTRYPOINT
["java","-jar","/lol-statistic-0.0.1-SNAPSHOT.jar"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
5
−
21
View file @
fa8a8f68
version
:
'
2'
version
:
"
2"
services
:
lol
:
container_name
:
lol
application
:
build
:
context
:
docker
context
:
.
dockerfile
:
Dockerfile
image
:
lol
:l
at
e
st
image
:
lol
-st
at
i
st
ics
ports
:
-
18888:8888
networks
:
-
spring-cloud-network
# product-server:
# container_name: product-server
# build:
# context: docker-product-server
# dockerfile: Dockerfile
# image: product-server:latest
# ports:
# - 19999:9999
# networks:
# - spring-cloud-network
networks
:
spring-cloud-network
:
driver
:
bridge
\ No newline at end of file
-
"
8080:8080"
This diff is collapsed.
Click to expand it.
gitlab.ci.yml
0 → 100644
+
38
−
0
View file @
fa8a8f68
image
:
gitlab/dind
services
:
-
docker:dind
variables
:
DOCKER_DRIVER
:
overlay
SPRING_PROFILES_ACTIVE
:
gitlab-ci
USER_GITLAB
:
bugosjoz
APP_NAME
:
lol-statistics
REPO
:
lol-statis
stages
:
-
build
-
test
-
docker
maven-build
:
image
:
maven:3-jdk-8
stage
:
build
script
:
"
mvn
clean
package
-B"
artifacts
:
paths
:
-
target/*.jar
maven-test
:
image
:
maven:3-jdk-8
stage
:
test
script
:
"
mvn
test"
artifacts
:
paths
:
-
target/*.jar
docker-build
:
stage
:
docker
script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker build -t registry.gitlab.com/bugosjoz/lol-statistics .
-
docker push registry.gitlab.com/bugosjoz/lol-statistics
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pom.xml
+
2
−
2
View file @
fa8a8f68
...
...
@@ -9,9 +9,9 @@
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<groupId>
com.example
</groupId>
<artifactId>
demo
</artifactId>
<artifactId>
lol-statistics
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<name>
demo
</name>
<name>
lol-statistic
</name>
<description>
Demo project for Spring Boot
</description>
<properties>
<java.version>
11
</java.version>
...
...
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