www_projectmycelium_io/hero_docs/crystallib_hero_basic_docs.md
2024-11-08 12:59:09 -05:00

1.5 KiB

Crystallib and Hero Basic Docs

Table of Contents


Introduction

We provide the steps to prepare a Docker Ubuntu container to work with Hero and Crystallib.

Prerequisites

  • Docker

Deploy Webserver

  • Run the Ubuntu container with host networking and a specific name
sudo docker run -it --net=host --name=hero-container -v ~/code:/root/code ubuntu:latest /bin/bash
  • Execute all commands directly in the container
# Install prerequisites
export DEBIAN_FRONTEND=noninteractive
apt-get update -y
apt-get install -y git curl nano openssh-client libsqlite3-dev python3-venv

# Clone the repository and set up the environment

mkdir -p ~/code/github/freeflowuniverse
cd ~/code/github/freeflowuniverse
git clone https://github.com/freeflowuniverse/crystallib
cd crystallib

# Download and run installation scripts for Crystallib and Hero

curl https://raw.githubusercontent.com/freeflowuniverse/crystallib/development/scripts/install_hero.sh > /tmp/hero_install.sh

bash /tmp/hero_install.sh

curl https://raw.githubusercontent.com/freeflowuniverse/crystallib/development/scripts/installer.sh > /tmp/install.sh

bash /tmp/install.sh

echo
echo "Crystallib and Hero are set up on your Docker container."
echo

Clean Up

When you're done, you can clean up your environment.

sudo docker stop hero-container
sudo docker rm hero-container
sudo find ~/code -mindepth 1 -delete