How to Install Teikei on Manjaro

Teikei is an open-source tool for managing cloud resources. It allows the user to visualize resource usage, costs, and trends across multiple providers like AWS and Google Cloud. In this tutorial, we will guide you through the installation process of Teikei on Manjaro Linux.

Prerequisites

Before we jump into the installation of Teikei, you should have the following prerequisites installed.

Step 1: Clone the Repository

To install Teikei, the first step is to clone the Teikei repository from GitHub. Open the terminal and run the following command to clone the repository.

$ git clone https://github.com/teikei/teikei.git

Step 2: Set up the Environment Variables

Before running the Teikei server, we need to set up the environment variables for the server. In the root of the Teikei repository, create a file named .env.

$ cd teikei
$ touch .env

Add the following environment variables in the .env file.

SECRET_KEY=<random alphanumeric characters>
DJANGO_SETTINGS_MODULE=config.settings.prod
SQREEN_TOKEN=<your_sqreen_token>
DATABASE_URL=<your_database_url>
REDIS_URL=<your_redis_url>
AWS_ACCESS_KEY_ID=<your_aws_access_key_id>
AWS_SECRET_ACCESS_KEY=<your_aws_secret_access_key>
AWS_DEFAULT_REGION=<your_aws_default_region>
GCP_PROJECT_ID=<your_gcp_project_id>
GOOGLE_APPLICATION_CREDENTIALS=<path_to_your_gcp_credentials>

Note: Replace <random alphanumeric characters> with a random string.

Step 3: Build and Run the Docker Container

After setting up the environment variables, we can build and run the Docker container. In the root of the Teikei repository, run the following command.

$ docker-compose up -d --build

This will download the necessary dependencies and build the Teikei Docker container. It will take some time to complete.

Step 4: Create the Database Schema and Create a Superuser

Once the Docker container is up and running, we need to create the database schema and create a superuser. Run the following command to do so.

$ docker-compose exec web python manage.py migrate
$ docker-compose exec web python manage.py createsuperuser

Step 5: Access the Teikei Web Dashboard

Open your preferred browser and visit http://localhost:8000/login/. This will take you to the login page of Teikei. Enter your superuser credentials to access the Teikei web dashboard.

Conclusion

That's it. You have successfully installed Teikei on Manjaro Linux. With Teikei, you can now manage your cloud resources across multiple providers with ease.

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!