How to Install StackStorm on Fedora CoreOS

StackStorm is an automation platform that can help you automate your entire IT infrastructure. In this tutorial, we will show you how to install StackStorm on Fedora CoreOS.

Prerequisites

Before we begin, please make sure you have the following:

Step 1: Update Packages

The first step in installing StackStorm on Fedora CoreOS is to update the system.

sudo dnf update -y

Step 2: Install Docker

StackStorm requires Docker to run. We can use the following command to install Docker on Fedora CoreOS:

sudo dnf install docker -y

After Docker installation is complete, start the Docker service:

sudo systemctl start docker
sudo systemctl enable docker

Step 3: Install StackStorm

We will install StackStorm using Docker Compose. So, you need to have Docker Compose installed on Fedora CoreOS. Use the following command:

sudo dnf install docker-compose -y

Now, create a StackStorm configuration docker-compose.yml file that contains the following:

version: '2'

services:
  st2:
    image: stackstorm/stackstorm:3.4.0
    deploy:
      resources:
        limits:
          cpus: '1'
          memory: '2g'
        reservations:
          cpus: '0.5'
          memory: '1g'
    environment:
      ST2_PACKS_REPO_LIST: 'https://github.com/stackstorm/st2contrib.git, https://github.com/stackstorm-community/st2-community-contrib.git'
      ST2_AUTH_PASSWORD_HASH: sha256:1122334455667788990011223344556677889900112233445566778899001122
      ST2_AUTH_USERNAME: st2admin
      ST2_CONFIG_VERSION: ""
      ST2_HOSTNAME: st2.example.com
      ST2_LOGO_URL: ""
      ST2_LOG_LEVEL: info
      ST2_MASTER_KEY_SECRET_KEY: 'This-Is-A-Secret-Key-Change-It'
      ST2_POSTGRES_DATABASE: st2
      ST2_POSTGRES_HOST: postgres
      ST2_POSTGRES_PASSWORD: stackstorm
      ST2_POSTGRES_USER: stackstorm
      ST2_RABBITMQ_HOST: rabbitmq
      ST2_RABBITMQ_VHOST: st2
    ports:
      - "8080:80"
    restart: unless-stopped

Note: Please make sure to replace the ST2_AUTH_PASSWORD_HASH and ST2_HOSTNAME values with appropriate values.

Create a directory called stackstorm and paste the above docker-compose.yml file in it.

Now, run the following command to start StackStorm:

export COMPOSE_HTTP_TIMEOUT=600
sudo docker-compose -f docker-compose.yml up -d

It may take a few minutes to download and set up StackStorm. Once it's done, you can access the StackStorm web interface by visiting http://<IP-address of Fedora CoreOS>:8080 in your web browser.

Conclusion

In this tutorial, we have shown you how to install StackStorm on Fedora CoreOS using Docker Compose. You can now use StackStorm to automate your IT infrastructure.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!