This version is still in development and is not considered stable yet. For the latest stable version, please use StreamX Guides 1.0.0! |
Set up a local environment for StreamX
This guide explains how to set up a local environment to install and run StreamX.
macOS
To run StreamX locally on a macOS machine, the following applications are required to be installed:
Homebrew
To install Homebrew, follow official instructions on the home page: https://brew.sh/. Execution of post-installation actions suggested by the Homebrew installer is recommended to have brew
permanently available in all new terminal windows.
Docker
-
Usage of Docker Desktop is recommended. To install it, follow this official guide: https://docs.docker.com/desktop/setup/install/mac-install/.
-
Docker can be also installed in a headless mode that is exclusively CLI version. However, the installation process for this option isn’t officially documented. If you decide to choose this option anyway, it is recommended to use Colima for that purpose. See official Colima installation guide for details: https://github.com/abiosoft/colima/blob/main/README.md.
Running StreamX along with Colima-based Docker on macOS might result in certain errors. To avoid them:
-
Ensure that Colima’s IP is reachable: https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#the-virtual-machines-ip-is-not-reachable.
-
Ensure the following environmental variables are set (among others, the lines below can be appended to your
$HOME/.zshrc
file):export DOCKER_HOST="unix:///Users/$(whoami)/.colima/default/docker.sock" export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE="/var/run/docker.sock" export TESTCONTAINERS_HOST_OVERRIDE="$(colima ls -j | jq -r '.address')"
-
-
To verify that your Docker environment is fully functional, execute
docker run hello-world
command. If thehello-world
container runs successfully, you’ll see the "Hello from Docker!" message. -
Depending on your system setup, you might have to prefix Docker commands with
sudo
, especially if you encounter permission errors. For example, instead ofdocker run hello-world
, usesudo docker run hello-world
.
Java 17+
-
Ensure Java 17 or higher is installed on your machine.
-
It is recommended to install Java 17+ with SDKMAN!. Alternatively to SDKMAN!, Java 17 can be installed following this official guide: https://docs.oracle.com/en/java/javase/17/install/index.html.
Linux
To run StreamX locally on a Linux machine, the following applications are required to be installed:
Homebrew
To install Homebrew, follow this official guide: https://docs.brew.sh/Homebrew-on-Linux. Execution of post-installation actions suggested by the Homebrew installer is recommended to have brew
permanently available in all new terminal windows.
Docker
-
To install Docker, follow this official guide: https://docs.docker.com/engine/install/.
-
To verify that your Docker environment is fully functional, execute
docker run hello-world
command. If thehello-world
container runs successfully, you’ll see the "Hello from Docker!" message. -
Depending on your system setup, you might have to prefix Docker commands with
sudo
, especially if you encounter permission errors. For example, instead ofdocker run hello-world
, usesudo docker run hello-world
.
Java 17+
-
Ensure Java 17 or higher is installed on your machine.
-
It is recommended to install Java 17+ with SDKMAN!. Alternatively to SDKMAN!, Java 17 can be installed following this official guide: https://docs.oracle.com/en/java/javase/17/install/index.html.
Windows
On Windows, StreamX can be run either inside Windows Command Prompt (CMD) or inside a Linux VM terminal. In both cases, Docker and Java 17+ are required to be installed.
-
-
Usage of Docker Desktop is recommended. To install it, follow this official guide: https://docs.docker.com/desktop/setup/install/windows-install.
-
Among available options of Docker Desktop installation, it is recommended to choose the one with WSL backend based on Ubuntu.
-
In case of usage of Docker Desktop based on WSL with Ubuntu, go to Docker Desktop Settings → Resources → WSL Integration and ensure that both Enable integration with my default WSL distro and Enable integration with additional distros: Ubuntu options are enabled.
-
To verify that your Docker environment is fully functional, execute
docker run hello-world
command. If thehello-world
container runs successfully, you’ll see the "Hello from Docker!" message. -
Depending on your system setup, you might have to prefix Docker commands with
sudo
, especially if you encounter permission errors. For example, instead ofdocker run hello-world
, usesudo docker run hello-world
.
-
-
-
Ensure Java 17 or higher is installed on your machine.
-
For CMD it is recommended to install Java 17+ with Scoop and for Linux VM terminal installation with SDKMAN! is advised. Alternatively, Java 17 can be installed following this official guide: https://docs.oracle.com/en/java/javase/17/install/index.html.
-
Windows Command Prompt (CMD)
To run StreamX locally on a Windows machine inside CMD, Scoop (scoop
) package manager should be installed. To install Scoop, follow this official guide: https://github.com/ScoopInstaller/Install#readme.
Linux VM terminal
To run StreamX locally on a Windows machine inside a Linux VM terminal, GNU Compiler Collection (GCC) and Homebrew are required to be installed.
-
To install GNU Compiler Collection (GCC), follow this official guide: https://gcc.gnu.org/install/. On Debian-based Linux distributions, including Ubuntu, the installation can be performed with the following command:
sudo apt install gcc -y
-
To install Homebrew, follow the official guide: https://docs.brew.sh/Homebrew-on-Linux. Execution of post-installation actions suggested by the Homebrew installer is recommended to have
brew
permanently available in all new terminal windows.