Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
promotions-service
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
0
Merge Requests
0
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
promotions-service
Commits
23f1b163
Commit
23f1b163
authored
May 13, 2021
by
Ben Anderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated deployment file
parent
45ceb9e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Dockerfile
Dockerfile
+1
-1
deployment.yaml
deployment.yaml
+1
-1
application.properties
src/main/resources/application.properties
+1
-1
No files found.
Dockerfile
View file @
23f1b163
FROM
openjdk:11-jre-slim
COPY
target/promotions-0.0.1-SNAPSHOT.jar /usr/local/lib/promotions.jar
EXPOSE
808
1
EXPOSE
808
0
ENTRYPOINT
["java","-jar","/usr/local/lib/promotions.jar"]
# For local testing, comment the top part out and uncomment the bottom
...
...
deployment.yaml
View file @
23f1b163
...
...
@@ -20,7 +20,7 @@ spec:
-
containerPort
:
8082
env
:
-
name
:
PORT
value
:
"
808
1
"
value
:
"
808
0
"
-
name
:
MONGOCONNECTION
valueFrom
:
secretKeyRef
:
...
...
src/main/resources/application.properties
View file @
23f1b163
server.port
=
808
1
server.port
=
808
0
spring.data.mongodb.uri
=
${MONGOCONNECTION}
spring.data.mongodb.database
=
products-promotions-DB
\ 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