How to make offline installation media - mata-elang-stable/MataElang-Platform GitHub Wiki
Update package
sudo apt update && sudo apt -y upgrade
Install Docker
Install Docker by following the official guide. The following code is an example of docker installation in Ubuntu.
sudo apt update && sudo apt -y upgrade
sudo apt install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
Add user to Docker group
To run Docker as a non-root user in Ubuntu, add the user to the docker group. Replace $USER with your username.
sudo usermod -aG docker $USER
After adding user to Docker group, re-login with the account.
Clone the repository
git clone https://github.com/mata-elang-stable/me-ansible-playbook
Download required files
As links in download.sh may be expired, make sure that all components have been downloaded.
cd me-ansible-playbook
bash download.sh
cd files
ls -l
Update docker images and kaspacore (if necessary)
If you want to use latest or specific version docker image, you can get it and overwrite existing one under me-ansible-playbook/files/docker_images/
. The following code is an example of exporting latest snort-base docker image.
docker pull mataelang/snort-base
docker save -o exported_image_name.tar mataelang/snort-base
Similarly, you can build kaspacore.jar yourself and overwrite existing one under me-ansible-playbook/files/
.
For details about kaspacore, see the kaspacore page.
Copy files to a media.
Copy the directory(me-ansible-playbook) to your media.