|
4 | 4 |
|
5 | 5 | ### Workaround for running the tests with Mac Apple Silicon |
6 | 6 |
|
7 | | -The current version of the outdated maven plugin requires a workaround. |
| 7 | +The current version of the outdated Maven plugin requires a workaround. This is also necessary for running the tests |
| 8 | +with an outdated Arquillian Cube version. |
8 | 9 |
|
9 | 10 | Install socat |
10 | 11 | ```bash |
@@ -39,20 +40,43 @@ You can add the function to your shell profile (`~/.bashrc`, `~/.zshrc`, etc.). |
39 | 40 |
|
40 | 41 | ### Support for connecting to docker network from Mac host |
41 | 42 |
|
42 | | -You will also need to install [docker-mac-net-connect](https://github.com/chipmk/docker-mac-net-connect). It allows the tests to connect to the docker network from the Mac host. |
| 43 | +You will also need to install [docker-mac-net-connect](https://github.com/chipmk/docker-mac-net-connect). It allows the |
| 44 | +tests to connect to the Docker network from the Mac host. |
| 45 | +Disable host network mode in Docker Desktop settings before enabling `docker-mac-net-connect`, as they cannot be enabled |
| 46 | +simultaneously. |
43 | 47 |
|
44 | 48 | ```bash |
45 | 49 | brew install chipmk/tap/docker-mac-net-connect |
46 | 50 | sudo brew services start chipmk/tap/docker-mac-net-connect |
47 | 51 | ``` |
48 | 52 |
|
| 53 | +You will also need to add the following to the Docker Desktop Docker Engine configuration on MacOS: |
| 54 | +```yaml |
| 55 | +{ |
| 56 | + "default-network-opts": { |
| 57 | + "bridge": { |
| 58 | + "com.docker.network.bridge.gateway_mode_ipv4": "nat-unprotected" |
| 59 | + } |
| 60 | + } |
| 61 | +} |
| 62 | +``` |
| 63 | + |
| 64 | +Stop `docker-mac-net-connect` when you no longer need it: |
| 65 | + |
| 66 | +```bash |
| 67 | +sudo brew services stop chipmk/tap/docker-mac-net-connect |
| 68 | +``` |
| 69 | + |
49 | 70 | ## Running the tests |
50 | 71 |
|
51 | 72 | Remember to start the unix socket proxy for docker as described in the previous section and set the `DOCKER_HOST` environment variable in the terminal where you run the tests. |
52 | 73 |
|
53 | 74 | ### Building the docker images together with the project source code |
54 | 75 |
|
55 | 76 | ```bash |
| 77 | +# remove possible remaining python client versions from previous builds |
| 78 | +git clean -fdx -- stream/clients/python |
| 79 | +# build the project and docker images |
56 | 80 | mvn -B -nsu clean install -Pdocker -DskipTests |
57 | 81 | docker images | grep apachebookkeeper |
58 | 82 | ``` |
|
0 commit comments