Skip to content

Commit

Permalink
add docker support for selenium microservice
Browse files Browse the repository at this point in the history
  • Loading branch information
damiendesvent committed Nov 6, 2023
1 parent b64389b commit a7cd22b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 35 deletions.
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
ports:
# TEST_API_SERVICE_PORT is defined as env variable in .docker_config.env
- "${TEST_API_SERVICE_PORT}:${TEST_API_SERVICE_PORT}"

backend:
image: back
container_name: back
Expand All @@ -19,6 +20,7 @@ services:
env_file:
# Specifying the env file with necessaries values
- .docker_config.env

frontend:
image: front
container_name: front
Expand All @@ -28,3 +30,11 @@ services:
- "4200:80"
depends_on:
- backend

selenium:
image: selenium
container_name: selenium
build:
context: ./selenium
ports:
- "8090:8090"
34 changes: 0 additions & 34 deletions selenium/src/main/java/ca/etsmtl/Main.java

This file was deleted.

2 changes: 1 addition & 1 deletion testapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ WORKDIR /testapi
COPY pom.xml ./
COPY ./src ./src
RUN mvn clean install
EXPOSE 8082
EXPOSE 8090
ENTRYPOINT ["mvn", "spring-boot:run" ]

0 comments on commit a7cd22b

Please sign in to comment.