Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CloudPak-Outcomes
GitHub Repository: CloudPak-Outcomes/Outcomes-Projects
Path: blob/main/L4assets/Databand Labs Assets/Installation_commands(1).txt
1928 views
1
# Install and test docker
2
sudo curl -fsSL https://get.docker.com -o get-docker.sh
3
sudo sh get-docker.sh
4
sudo docker run hello-world
5
6
7
# Install and test docker-compose
8
9
# Instructions from official docker documentation do not work: the first two commands run, but they state that docker compose is already installed. Then the last command does not find docker compose
10
# sudo apt-get update
11
# sudo apt-get install docker-compose-plugin
12
# docker compose version
13
14
# These instructions work. Note the hardcoded version of docker compose on curl command, which is not ideal and should be verified
15
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
16
sudo chmod +x /usr/local/bin/docker-compose
17
docker-compose --version
18
19
20
# Test installation of rsync
21
sudo rsync --version
22
23
# Copy installation files - via ssh or Filezilla to any directory, for example to /home/itzuser/databand_installation
24
25
# Change permissions on the copied file
26
sudo chmod 777 databand-1.0.10-docker-compose.tar.gz
27
28
# Untar the file in the installation directory
29
sudo tar -xvf databand-1.0.10-docker-compose.tar.gz
30
31
# Switch to the installation directory
32
sudo ./databand-cmd.sh setup
33
sudo ./databand-cmd.sh load-images
34
sudo ./databand-cmd.sh create-secrets
35
36
# Switch to the /opt/databand directory
37
sudo vi custom.env
38
39
# Update custom.env to either use the local or external Postgres
40
# Vi commands
41
# i to insert, Esc to exit the insert mode
42
# !wq: to save the file
43
44
# From the /opt/databand run ./databand-cmd.sh start to start databand.
45
sudo ./databand-cmd.sh start
46
47
# Optional you can run ./databand-cmd.sh status to validate that everything is up and running.
48
sudo ./databand-cmd.sh status
49
50
# Create new Databand user by running command ./databand-cmd.sh create-user, follow interective prompt.
51
52
# Now you can access UI in the http://$INSTANCE_IP:8080/ URL, and login with user created in step 8.
53