Skip to content

Commit

Permalink
remove the additional arm64 Docker Compose file (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
rieckpil committed Apr 29, 2022
1 parent ede1858 commit d6f78fa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 39 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ OS name: "linux", version: "5.4.0-92-generic", arch: "amd64", family: "unix"

## Running the Project Locally

*When trying to run the application and the tests on an ARM64 processor, there's a [small tweak](https://github.com/rieckpil/testing-spring-boot-applications-masterclass/issues/31) required.*

Assuming your local setups meets all requirements as stated above, you can now start the application:

1. Make sure your Docker Engine is up- and running
Expand Down Expand Up @@ -209,7 +207,7 @@ version: '3.8'
services:
# ...
keycloak:
image: jboss/keycloak:16.1.0
image: quay.io/keycloak/keycloak:18.0.0-legacy
environment:
- KEYCLOAK_USER=keycloak
- KEYCLOAK_PASSWORD=keycloak
Expand Down
33 changes: 0 additions & 33 deletions docker-compose-arm64-support.yml

This file was deleted.

10 changes: 8 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
ports:
- "5432:5432"
keycloak:
image: jboss/keycloak:16.1.0
image: quay.io/keycloak/keycloak:18.0.0-legacy
environment:
- KEYCLOAK_USER=keycloak
- KEYCLOAK_PASSWORD=keycloak
Expand All @@ -21,8 +21,14 @@ services:
read_only: true
ports:
- "8888:8080"
# Drop-in replacement for the previous roribio16/alpine-sqs:latest (no arm64 support)
sqs:
image: roribio16/alpine-sqs:latest
image: softwaremill/elasticmq-native
volumes:
- type: bind
source: ./tmp/sqs-queue-definition.conf
target: /opt/elasticmq.conf
read_only: true
ports:
- "9324:9324"
- "9325:9325"
2 changes: 1 addition & 1 deletion src/test/java/de/rieckpil/courses/AbstractWebTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public abstract class AbstractWebTest {
protected static Logger LOG = LoggerFactory.getLogger(AbstractWebTest.class);

public static DockerComposeContainer<?> environment =
new DockerComposeContainer<>(new File(System.getProperty("os.arch").equals("aarch64") ? "docker-compose-arm64-support.yml" : "docker-compose.yml"))
new DockerComposeContainer<>(new File("docker-compose.yml"))
.withExposedService("database_1", 5432, Wait.forListeningPort())
.withExposedService("keycloak_1", 8080, Wait.forHttp("/auth").forStatusCode(200)
.withStartupTimeout(Duration.ofSeconds(45)))
Expand Down

0 comments on commit d6f78fa

Please sign in to comment.