Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
order-management-backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
order-management-backend
Commits
010ba676
Commit
010ba676
authored
May 04, 2021
by
Vishal Vaddadhi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'docker_setup' into 'dev'
testing docker setup See merge request
!3
parents
9c0f909c
f689188a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
.gitlab-ci.yml
backend/order-management/.gitlab-ci.yml
+29
-0
Dockerfile
backend/order-management/Dockerfile
+4
-0
No files found.
backend/order-management/.gitlab-ci.yml
0 → 100644
View file @
010ba676
image
:
gitlab/dind
services
:
-
docker:dind
variables
:
DOCKER_DRIVER
:
overlay
SPRING_PROFILES_ACTIVE
:
gitlab-ci
USER_GITLAB
:
vivaddadhi
APP_NAME
:
order-management
REPO
:
order-management-backend
stages
:
-
build
-
docker
maven-build
:
image
:
maven:3-jdk-8
stage
:
build
script
:
"
mvn
clean
package
-B"
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/vishalvaddadhi/order-management-backend .
-
docker push registry.gitlab.com/vishalvaddadhi/order-management-backend
\ No newline at end of file
backend/order-management/Dockerfile
0 → 100644
View file @
010ba676
FROM
openjdk:8-alpine
VOLUME
/tmp
ADD
/target/*.jar order-management-0.0.1-SNAPSHOT.jar
ENTRYPOINT
["java","-jar","/order-management-0.0.1-SNAPSHOT.jar"]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment