Skip to content

Commit

Permalink
updated files
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamv108 committed May 31, 2019
1 parent 3b36050 commit 99b1126
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 22 deletions.
10 changes: 5 additions & 5 deletions Dockerfile-DEV
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM openjdk:8-alpine

WORKDIR /transport-service
ADD target/*.jar .
WORKDIR /parking-lot
ADD app-parking-lot/target/*.jar .

COPY autostart-qa.sh /root/autostart-qa.sh
RUN chmod 755 /root/autostart-qa.sh
COPY autostart-dev.sh /root/autostart-dev.sh
RUN chmod 755 /root/autostart-dev.sh
RUN apk add curl

ENTRYPOINT ["/root/autostart-qa.sh"]
ENTRYPOINT ["/root/autostart-dev.sh"]
10 changes: 5 additions & 5 deletions Dockerfile-PROD
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM openjdk:8-alpine

WORKDIR /transport-service
ADD target/*.jar .
WORKDIR /parking-lot
ADD app-parking-lot/target/*.jar .

COPY autostart-qa.sh /root/autostart-qa.sh
RUN chmod 755 /root/autostart-qa.sh
COPY autostart-prod.sh /root/autostart-prod.sh
RUN chmod 755 /root/autostart-prod.sh
RUN apk add curl

ENTRYPOINT ["/root/autostart-qa.sh"]
ENTRYPOINT ["/root/autostart-prod.sh"]
4 changes: 2 additions & 2 deletions Dockerfile-QA
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM openjdk:8-alpine

WORKDIR /transport-service
ADD target/*.jar .
WORKDIR /parking-lot
ADD app-parking-lot/target/*.jar .

COPY autostart-qa.sh /root/autostart-qa.sh
RUN chmod 755 /root/autostart-qa.sh
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile-STAGE
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM openjdk:8-alpine

WORKDIR /transport-service
ADD target/*.jar .
WORKDIR /parking-lot
ADD app-parking-lot/target/*.jar .

COPY autostart-qa.sh /root/autostart-qa.sh
RUN chmod 755 /root/autostart-qa.sh
COPY autostart-stage.sh /root/autostart-stage.sh
RUN chmod 755 /root/autostart-stage.sh
RUN apk add curl

ENTRYPOINT ["/root/autostart-qa.sh"]
ENTRYPOINT ["/root/autostart-stage.sh"]
2 changes: 1 addition & 1 deletion autostart-dev.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
cd /transport-service
cd /parking-lot

java -jar -Dspring.profiles.active=dev $JAR

2 changes: 1 addition & 1 deletion autostart-prod.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
cd /transport-service
cd /parking-lot

java -jar -Dspring.profiles.active=prod $JAR

2 changes: 1 addition & 1 deletion autostart-qa.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
cd /transport-service
cd /parking-lot

java -jar -Dspring.profiles.active=qa $JAR

3 changes: 1 addition & 2 deletions autostart-stage.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
cd /transport-service
cd /parking-lot

java -jar -Dspring.profiles.active=stage $JAR

0 comments on commit 99b1126

Please sign in to comment.