Skip to main content

Docker

Prerequisites

For Windows, Deploy WSL2: If you are using a Windows system, you need to have WSL 2 installed and configured to support the Docker environment. For instructions on deploying WSL 2, please refer to the official Microsoft guide: Install WSL 2.

Local Docker Environment: You need a working local Docker environment. If you do not have Docker installed, please follow the instructions available at Docker Installation Guide to set it up on your system.

Once you have fulfilled the prerequisites, proceed with the deployment steps outlined below. These steps are provided for both Windows, Linux, and Mac operating systems.

Deployment Steps

  1. Download and Extract
    First, download the necessary tar.gz file containing the Datorios setup. Once downloaded, extract the file to your preferred location.

  2. Navigate to Datorios Folder
    Open a terminal or command prompt and navigate to the Datorios folder using the cd command, replacing <DatoriosFolderPath> with the path to your Datorios folder:
    cd <DatoriosFolderPath>

  3. Run Shell Script
    In the Datorios folder, run the following shell script to fetch necessary components:
    ./datorios.sh fetch
    Wait for the download to finish before proceeding.

  4. Edit .env File
    Locate the .env file in the Datorios folder and edit it with a text editor of your choice. Modify the following lines:
    MOUNT_SRC_PATH=[Path to Jar folder]
    MOUNT_DST_PATH=[Mount point of Jar folder from within the docker]
    Replace [Path to Jar folder] with the actual path to your Jar folder and [Mount point of Jar folder from within the docker] with the mount point.

  5. Start the Cluster
    Run the following command to start the cluster. This command initializes the cluster environment with necessary configurations:
    ./datorios.sh cluster1 start
    Provide a brief description of what this command does in your documentation.

  6. List Available Commands
    To view a list of available commands and verify your setup, execute:
    ./datorios.sh list
    This command shows all available Datorios script commands.

  7. Run Flink Job
    Execute the following command to run a specific Flink job, in this case, the WindowCoGroupExample.jar:
    ./datorios.sh cluster1 flink run /jobs/WindowCoGroupExample.jar
    Include a description of what this command accomplishes in your documentation.

  8. Stop the Cluster
    Finally, to stop the cluster, use:
    ./datorios.sh cluster1 stop
    Detail what this command does in your documentation.

Conclusion

Following these steps should have your Datorios environment up and running. If you encounter any issues, refer back to the documentation for the prerequisites or reach out to our support team for assistance.

Welcome to Datorios, and happy data processing!