From 0782e31c89dcc30324880bd8ba712a9452618215 Mon Sep 17 00:00:00 2001 From: rcastley Date: Tue, 5 Mar 2024 19:11:48 +0000 Subject: [PATCH] Multi platform containers --- docs/f1_2023/setup.md | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/docs/f1_2023/setup.md b/docs/f1_2023/setup.md index 7b8d997..0a7d407 100644 --- a/docs/f1_2023/setup.md +++ b/docs/f1_2023/setup.md @@ -1,46 +1,45 @@ # Running the F1 2023 container -## Mac OS +## Docker -The following Docker command will run the F1 2023 container on Mac OS: +The following Docker command will run the F1 2023 container (support for `amd/64` and `arm/64` architectures) and expose the required ports for the UI and UDP listener(s): ```bash -docker run --name f1_2023 -d -p 8501:8501/tcp -p 20777:20777/udp ghcr.io/splunk/f1_2023:latest +docker run --name f1_2023 -d \ +-p 8501:8501/tcp \ +-p 20777:20777/udp \ +rcastley895/f1_2023:latest ``` The above will run the F1 2023 container in the background and expose port `8501` for the UI and port `20777` for the UDP listener. !!! note - If you are using more than one simulator you can expose up to 8 UDP ports, for example, if you have 4 simulators running you would start the container by running: + If you are using more than one simulator you can expose up to **8 UDP** ports, for example, if you have 4 simulators running you would start the container by running: ```bash - docker run --name f1_2023 -d -p 8501:8501/tcp -p 20777:20777/udp -p 20778:20778/udp -p 20779:20779/udp -p 20780:20780/udp ghcr.io/splunk/f1_2023:latest + docker run --name f1_2023 -d \ + -p 8501:8501/tcp \ + -p 20777:20777/udp \ + -p 20778:20778/udp \ + -p 20779:20779/udp \ + -p 20780:20780/udp \ + rcastley895/f1_2023:latest ``` -## Ubuntu - -The following Docker command will run the F1 2023 container on Ubuntu: - -```bash -docker run --name f1_2023 -d -p 8501:8501/tcp -p 20777:20777/udp ghcr.io/splunk/f1_2023-amd64:latest -``` - -The same instructions to expose additional UDP ports apply to Ubuntu as well as was described in the Mac OS section. - ## Validation To validate the container is running correctly you can run the following command: === "Command" - ```bash + ``` bash docker port f1_2023 ``` === "Output" - ```bash + ``` bash 8501/tcp -> 0.0.0.0:8501 20777/udp -> 0.0.0.0:20777 ```