Last active
January 7, 2024 09:07
-
-
Save akhdaniel/e7b989dc21907a535e11fa2f1c7bde52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sebelum execute: | |
# useradd -g users -s `which bash` -m app | |
# usermod -aG sudo app | |
# echo "enter app password for sudo" | |
# passwd app | |
# su - app | |
# execute: curl https://gist.githubusercontent.com/akhdaniel/e7b989dc21907a535e11fa2f1c7bde52/raw/be000c190c779a89ee770505e3fde9aec0560ff4/install-opendax.txt | bash | |
echo "INSTALLING DOCKER..." | |
echo | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo \ | |
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.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-cache policy docker-ce | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose | |
echo "done." | |
echo | |
echo "INSTALLING OPENDAX....." | |
echo | |
sudo usermod -aG docker app | |
echo "done" | |
# cd /mnt/volume_sgp1_02 | |
# mkdir projects | |
# chown -R app projects | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
curl -sSL https://get.rvm.io | bash -s stable | |
sudo usermod -a -G rvm app | |
source /home/ubuntu/.rvm/scripts/rvm | |
git clone https://github.com/openware/opendax.git | |
cd opendax | |
echo "kalau ditanya pasword, masukkan password user app (ini perintah sudo)" | |
rvm install "ruby-2.6.6" | |
gem install bundler:2.1.4 | |
bundle install | |
rake -T # To see if ruby and lib works | |
echo "now edit app.yaml to suit domain and subdomain...." | |
vi config/app.yml | |
echo "jalankan dengan command: rake service:all" | |
echo "done..." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment