DEV Community

Exastro Community
Exastro Community

Posted on

How to Install Exastro with Docker Compose and Finish the Initial Setup

About this article

  • This article is for infrastructure engineers who want to try Exastro on Linux.
  • You need to know basic Linux commands. You also need to know Docker basics, such as containers and images.
  • We checked the steps with Exastro IT Automation (ITA) v2.10. The test environment is in the table below.
  • The prerequisites are in "Setup". They cover hardware, the work user, the software, and the network.

Test environment for this article

Item Value
OS AlmaLinux 8.9 (Midnight Oncilla)
CPU / memory 4 cores / 15GiB
Disk 100GB
git 2.43.7
Docker 26.1.3 (build b72abbb)
Docker Compose v2.27.0
Exastro IT Automation v2.10.0

This is the environment that the Exastro team officially checked with Docker:

OS version Docker
AlmaLinux 9.6 (Sage Margay) 29.9.1 (build dfc520d)

Our test environment (AlmaLinux 8.9, Docker 26.1.3) is not one of these combinations.

This article was first drafted with the AI Assistant in Exastro. We checked and edited it.

What is Exastro, and why this guide

Exastro is the open source execution control plane for governed automation across the system lifecycle.

This guide starts ITA v2.10 with Docker Compose. ITA is the base for IT operations automation. We set it up on one Linux server. Then we open a workspace in the browser.

There are several ways to set up Exastro, and the steps change with the version and the configuration. Setup information is available across the official documentation, README files, and sample files. If setting up an evaluation environment requires too much effort, teams may give up before they can try the product. To make evaluation easier, we consolidated the setup steps into this guide.

Setup

Hardware

  • Minimum: 2 CPU cores, 4GB memory, 35GB disk
  • Recommended: 4 CPU cores, 16GB memory, 120GB disk

Plan about 25GB for container images. For Docker, they are in /var/lib. Plan about 10GB for Exastro data in /home/<user name>/exastro-docker-compose. These sizes are estimates.

Work user and software

Exastro runs with normal user rights. Do not use root. Use a normal user that can run sudo.

Install this software first:

  • git
  • Docker Engine and Docker Compose (the docker compose command)

In this guide, the work user runs docker without sudo. Add the work user to the docker group. Then log out and log in again.

sudo usermod -aG docker $USER
Enter fullscreen mode Exit fullscreen mode

Check the work user, the software, and the free disk space.

# Not root
whoami

# git and Docker versions
git --version
docker --version
docker compose version

# Free disk space
df -h /var/lib /home
Enter fullscreen mode Exit fullscreen mode

Network

From To Protocol Port Purpose
Work PC (browser) Exastro server TCP 80 Service screens
Work PC (browser) Exastro server TCP 81 Management screens (system administrator console)
Exastro server Internet TCP 443 Get the configuration files (GitHub) and container images

Steps

Overview

You can set up ITA with Docker Compose in two ways:

  • Use the interactive installer (sh <(curl -sf https://ita.exastro.org/setup) install). It runs the steps for you.
  • Get the configuration files, edit .env, and set up ITA by hand.

The installer is good for a quick trial. The manual way is good when you want to check each setting. This guide uses the manual way. For the installer, see the official document "Exastro on Docker Compose - Online".

The flow:

  1. Get the Docker Compose repository.
  2. Set the passwords and the public URLs in the .env file.
  3. Start the containers.
  4. Log in to the system administrator console. Create an organization and a workspace. An organization is the unit for using Exastro. A workspace is a work area inside it for configuration information and automation design.
  5. Open the workspace. Check the entry point of the AI Assistant. The AI Assistant is an Exastro feature that accepts work requests in natural language. It splits the work into steps, selects building blocks, registers them, and runs them.

The browser enters through the platform-auth container. It opens two ports: one for the service and one for management.

Diagram of the Exastro containers and the browser entry point

URL to open in the browser Screen
http://<server IP address>:80/<organization ID>/platform/ Organization screen (ITA)
http://<server IP address>:81/ System administrator console

Step 1: Get the repository

All configuration files are in exastro-suite/exastro-docker-compose on GitHub. Clone it into your home directory.

cd ~
git clone https://github.com/exastro-suite/exastro-docker-compose.git
cd ~/exastro-docker-compose
Enter fullscreen mode Exit fullscreen mode

Step 2: Prepare the .env file

Copy .env.docker.sample to .env.

cd ~/exastro-docker-compose
cp .env.docker.sample .env
Enter fullscreen mode Exit fullscreen mode

Generate two values for .env.

# Make the value for ENCRYPT_KEY
head -c 32 /dev/urandom | base64

# Check the value for HOST_DOCKER_GID
getent group docker | cut -d: -f3
Enter fullscreen mode Exit fullscreen mode

Open .env and change these four items:

  1. Passwords: Change every sample value that starts with Ch@ngeMe. The password of the system administrator (admin) is SYSTEM_ADMIN_PASSWORD.
  2. ENCRYPT_KEY: This key encrypts the data that Exastro stores. Use the value you made above.
  3. Public URLs: Set the addresses in EXASTRO_EXTERNAL_URL (service) and EXASTRO_MNG_EXTERNAL_URL (management).
  4. HOST_DOCKER_GID: Use the value you checked above.

After the changes, .env looks like this:

SYSTEM_ADMIN_PASSWORD=<system administrator password>
EXASTRO_EXTERNAL_URL='http://<server IP address>:80'
EXASTRO_MNG_EXTERNAL_URL='http://<server IP address>:81'
ENCRYPT_KEY='<value you made above>'
HOST_DOCKER_GID=<value you checked above>
Enter fullscreen mode Exit fullscreen mode

⚠️ .env holds passwords and ENCRYPT_KEY. Hide these values when you share the settings with others.

Step 3: Start the containers

Start with the base profile. This profile starts the minimum set of containers for ITA.

cd ~/exastro-docker-compose
docker compose --profile base up -d --wait
Enter fullscreen mode Exit fullscreen mode

The first start takes time, because it downloads the container images. In our test environment, the image download alone took more than ten minutes.

The command ends with output like this:

 Container ita-by-ansible-execute  Healthy
 Container platform-auth  Healthy
 Container ita-migration  Exited
 Container ita-by-terraform-cli-vars-listup  Healthy
 Container ita-api-organization  Healthy
 ...
Enter fullscreen mode Exit fullscreen mode

If the command stops with an error, see "Containers do not start" below.

Step 4: Log in to the system administrator console

Open the management URL in the browser.

http://<server IP address>:81/
Enter fullscreen mode Exit fullscreen mode

The user is admin. This is the default value of SYSTEM_ADMIN in .env. The password is the value of SYSTEM_ADMIN_PASSWORD in .env.

Login screen of the system administrator console

✅ This image shows: the browser opened the management URL, and the login screen appeared.

After you log in, the system administrator console opens. The supported browsers are the latest Microsoft Edge and Google Chrome.

Step 5: Create an organization

In the console, open "Organization management" and click "Create". This guide uses these values:

Field name Value in this guide
Organization ID sample-org
Organization name sample-org
Resource plan Empty (the default resource plan is set)
Username (organization administrator) org-admin
Password Any value (keep "Password change request at first login" checked)
email, first name, last name Empty
install driver Exastro OASE OFF. All others stay ON

Screen to create an organization

Click "Register". The organization list appears again. If "Organization creation status" is Organization Create Complete, the organization is ready.

Organization list with the new organization

✅ This image shows: the organization sample-org was created.

Step 6: Create a workspace

Open the organization screen. Log in as the organization administrator (org-admin).

http://<server IP address>:80/<organization ID>/platform/
Enter fullscreen mode Exit fullscreen mode

At the first login, two screens appear in order:

  1. Update Account Information: Enter an email address, a first name, and a last name. We entered org-admin@example.com, org, and admin.
  2. Update password: We checked "Password change request at first login", so set a new password.

Screen to update account information at the first login

Next, the workspace list opens. There is no workspace yet, so a message says that no workspace is available. Click "Create" and use these values:

Field name Value in this guide
Workspace ID sample-ws
Workspace name sample-ws
Environment list, description Empty

Screen to create a workspace

Click "Register". The workspace list shows sample-ws.

Workspace list with the new workspace

✅ This image shows: the workspace sample-ws was created in the organization.

Step 7: Check the result

In the workspace list, click the "Exastro IT Automation" button on the left. The workspace opens and shows the DashBoard. "AI Assistant" is the first menu group.

The workspace is open and shows the ITA DashBoard

Open "AI Assistant". A message says that the setup is not complete. It asks you to finish the setup in "AI service settings". We have not set the AI service yet, so you cannot talk to the AI Assistant at this point.

The AI Assistant screen before the AI service is set

✅ This image shows: the AI Assistant menu is available, and it shows the entry point for the next task (AI service settings).

The work is complete when:

  • The browser on the work PC opens the management URL (:81) and the organization URL (:80).
  • The organization sample-org and the workspace sample-ws exist.
  • The workspace opens the DashBoard, and you can open "AI Assistant".

Using it in practice: problems and checks

With these steps, you can follow each setting and each check point during the setup. You can also prepare an evaluation environment on one server.

Find the cause by symptom

Symptom What to check
Containers do not start Memory, disk, port conflicts, the profile, logs
Screens do not open Public URL settings, public ports
You cannot log in Initial user, credentials

Containers do not start

# Memory (minimum 4GB)
free -h

# Disk
df -h /var/lib /home

# Check that no other process uses port 80 or 81
sudo ss -lntp | grep -E ':(80|81)\s'

# The profile you tried to start
grep '^COMPOSE_PROFILES' ~/exastro-docker-compose/.env

# Logs of the container that does not start
cd ~/exastro-docker-compose
docker compose logs <service name> --tail 50
Enter fullscreen mode Exit fullscreen mode
  • Disk: Both /var/lib (container images) and /home (Exastro data) need free space. See "Hardware" in "Setup".
  • Profile: Check that the --profile for up matches COMPOSE_PROFILES in .env.

Screens do not open

# Public URL settings
grep -E '^(EXASTRO_EXTERNAL_URL|EXASTRO_MNG_EXTERNAL_URL|EXTERNAL_URL_PORT|EXTERNAL_URL_MNG_PORT)=' ~/exastro-docker-compose/.env

# State of the entry container (platform-auth)
cd ~/exastro-docker-compose
docker compose ps platform-auth
Enter fullscreen mode Exit fullscreen mode
  • Public URL: Check that the browser on the work PC can reach the address. See "Step 2".
  • Public ports: The defaults are 80 / 81. Make EXTERNAL_URL_PORT and EXTERNAL_URL_MNG_PORT match the ports in the public URLs.

You cannot log in

  • Initial user: The system administrator user name is SYSTEM_ADMIN in .env. The default is admin.
  • Credentials: The password is the value of SYSTEM_ADMIN_PASSWORD in .env.

Conclusion and what's next

We set up ITA v2.10 with Docker Compose and created a workspace. Remember two points:

  • Copy .env from .env.docker.sample. Set the passwords, ENCRYPT_KEY, the public URLs, and HOST_DOCKER_GID. The public URLs must be addresses that the browser on the work PC can reach.
  • The work is done when the workspace shows the DashBoard and the entry point of "AI Assistant".

You need this installation and initial setup to use the AI Assistant. Next, set the AI service in "AI service settings". Then you can talk to the AI Assistant.

References

Top comments (0)