forked from apache/dubbo-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
199 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is the demo Dockerfile for the generated template project, please change accordingly before building image from it. | ||
# Run the following command to build image: docker build -f ./Dockerfile --build-arg APP_FILE=quickstart-service--0.0.1-SNAPSHOT.jar -t demo:latest . | ||
FROM openjdk:17-jdk-alpine | ||
|
||
# Set the working directory to /build | ||
WORKDIR /build | ||
COPY . /build | ||
|
||
RUN chmod +x ../mvnw | ||
RUN ./mvnw clean package -U -DskipTests | ||
|
||
# JAR file will be specified by passing in a build time argument to docker build | ||
ARG APP_FILE | ||
|
||
# Remember to change the port according to the RPC protocol you select | ||
EXPOSE 8082 | ||
|
||
# copy the JAR file into the root and rename | ||
RUN cp ./target/${APP_FILE} app.jar | ||
|
||
# Run java with the jar file when the container starts up | ||
CMD ["java","-jar","app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is the demo Dockerfile for the generated template project, please change accordingly before building image from it. | ||
# Run the following command to build image: docker build -f ./Dockerfile --build-arg APP_FILE=quickstart-service--0.0.1-SNAPSHOT.jar -t demo:latest . | ||
FROM openjdk:17-jdk-alpine | ||
|
||
# Set the working directory to /build | ||
WORKDIR /build | ||
COPY . /build | ||
|
||
RUN chmod +x ../mvnw | ||
RUN ./mvnw clean package -U -DskipTests | ||
|
||
# JAR file will be specified by passing in a build time argument to docker build | ||
ARG APP_FILE | ||
|
||
# Remember to change the port according to the RPC protocol you select | ||
EXPOSE 8083 | ||
|
||
# copy the JAR file into the root and rename | ||
RUN cp ./target/${APP_FILE} app.jar | ||
|
||
# Run java with the jar file when the container starts up | ||
CMD ["java","-jar","app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is the demo Dockerfile for the generated template project, please change accordingly before building image from it. | ||
# Run the following command to build image: docker build -f ./Dockerfile --build-arg APP_FILE=quickstart-service--0.0.1-SNAPSHOT.jar -t demo:latest . | ||
FROM openjdk:17-jdk-alpine | ||
|
||
# Set the working directory to /build | ||
WORKDIR /build | ||
COPY . /build | ||
|
||
RUN chmod +x ../mvnw | ||
RUN ./mvnw clean package -U -DskipTests | ||
|
||
# JAR file will be specified by passing in a build time argument to docker build | ||
ARG APP_FILE | ||
|
||
# Remember to change the port according to the RPC protocol you select | ||
EXPOSE 8084 | ||
|
||
# copy the JAR file into the root and rename | ||
RUN cp ./target/${APP_FILE} app.jar | ||
|
||
# Run java with the jar file when the container starts up | ||
CMD ["java","-jar","app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is the demo Dockerfile for the generated template project, please change accordingly before building image from it. | ||
# Run the following command to build image: docker build -f ./Dockerfile --build-arg APP_FILE=quickstart-service--0.0.1-SNAPSHOT.jar -t demo:latest . | ||
FROM openjdk:17-jdk-alpine | ||
|
||
# Set the working directory to /build | ||
WORKDIR /build | ||
COPY . /build | ||
|
||
RUN chmod +x ../mvnw | ||
RUN ./mvnw clean package -U -DskipTests | ||
|
||
# JAR file will be specified by passing in a build time argument to docker build | ||
ARG APP_FILE | ||
|
||
# Remember to change the port according to the RPC protocol you select | ||
EXPOSE 8085 | ||
|
||
# copy the JAR file into the root and rename | ||
RUN cp ./target/${APP_FILE} app.jar | ||
|
||
# Run java with the jar file when the container starts up | ||
CMD ["java","-jar","app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is the demo Dockerfile for the generated template project, please change accordingly before building image from it. | ||
# Run the following command to build image: docker build -f ./Dockerfile --build-arg APP_FILE=quickstart-service--0.0.1-SNAPSHOT.jar -t demo:latest . | ||
FROM openjdk:17-jdk-alpine | ||
|
||
# Set the working directory to /build | ||
WORKDIR /build | ||
COPY . /build | ||
|
||
RUN chmod +x ../mvnw | ||
RUN ./mvnw clean package -U -DskipTests | ||
|
||
# JAR file will be specified by passing in a build time argument to docker build | ||
ARG APP_FILE | ||
|
||
# Remember to change the port according to the RPC protocol you select | ||
EXPOSE 8084 | ||
|
||
# copy the JAR file into the root and rename | ||
RUN cp ./target/${APP_FILE} app.jar | ||
|
||
# Run java with the jar file when the container starts up | ||
CMD ["java","-jar","app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters