forked from line/line-fido2-server
-
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.
Add Docker configuration files (line#14)
* Add Docker configuration files * Update README.md
- Loading branch information
Showing
7 changed files
with
77 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM openjdk:8-jdk-alpine | ||
WORKDIR /workspace/app | ||
COPY . . | ||
RUN ./rpserver/gradlew bootJar | ||
RUN ./server/gradlew dockerBuild |
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,26 @@ | ||
version : "3.8" | ||
services: | ||
build: | ||
container_name: build-image | ||
image: build-image:latest | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile | ||
rp: | ||
container_name: rp-server | ||
image: rp:latest | ||
build: | ||
context: . | ||
dockerfile: ./rpserver/Dockerfile | ||
ports: | ||
- "8080:8080" | ||
restart: always | ||
fido2: | ||
container_name: fido2-server | ||
image: fido2:latest | ||
build: | ||
context: . | ||
dockerfile: ./server/Dockerfile | ||
ports: | ||
- "8081:8081" | ||
restart: always |
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,4 @@ | ||
FROM openjdk:8-jdk-alpine | ||
EXPOSE 8080 | ||
COPY --from=build-image:latest /workspace/app/rpserver/build/libs/rpserver-*.jar rpserver.jar | ||
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=docker","/rpserver.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
spring: | ||
profiles: | ||
active: docker | ||
resources: | ||
chain: | ||
cache: false | ||
fido2: | ||
rp: | ||
id: localhost | ||
origin: localhost | ||
port: 8080 | ||
conformance: | ||
url: https://localhost:8080 | ||
logging: | ||
level: | ||
org.springframework.web: DEBUG | ||
org.hibernate: DEBUG | ||
com.linecorp.line: DEBUG | ||
fido2-server: | ||
host: fido2 | ||
|
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,4 @@ | ||
FROM openjdk:8-jdk-slim | ||
EXPOSE 8081 | ||
COPY --from=build-image:latest /workspace/app/server/build/libs/server-*.jar server.jar | ||
ENTRYPOINT ["java","-jar","/server.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