0% found this document useful (0 votes)
376 views1 page

Opendax

The document outlines the steps to install Docker, Docker Compose, Ruby on Rails, and deploy an OpenDAX application on a Linux server. It involves: 1) Adding a new user "app" and installing prerequisite packages like Docker and Docker Compose using apt; 2) Cloning the OpenDAX GitHub repo and installing Ruby dependencies; 3) Configuring the Rails app and database; 4) Building and running the Docker containers.

Uploaded by

Mohamed Fathi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
376 views1 page

Opendax

The document outlines the steps to install Docker, Docker Compose, Ruby on Rails, and deploy an OpenDAX application on a Linux server. It involves: 1) Adding a new user "app" and installing prerequisite packages like Docker and Docker Compose using apt; 2) Cloning the OpenDAX GitHub repo and installing Ruby dependencies; 3) Configuring the Rails app and database; 4) Building and running the Docker containers.

Uploaded by

Mohamed Fathi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

alexserv3@instance-9:~$ sudo -i

root@instance-9:~# passwd
root@instance-9:~# useradd -g users -s `which bash` -m app
root@instance-9:~# passwd app
root@instance-9:~# sudo apt-get update
root@instance-9:~# sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common

Docker-Root

sudo apt update


sudo apt install apt-transport-https ca-certificates curl gnupg2 software-
properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian
$(lsb_release -cs) stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
sudo systemctl status docker

root@instance-9:~# cd /etc
root@instance-9:/etc# nano sudoers
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-
compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
root@instance-9:/etc# sudo chmod +x /usr/local/bin/docker-compose
root@instance-9:/etc# su - app
app@instance-9:~$ git clone https://github.com/openware/opendax.git
app@instance-9:~$ sudo apt-get install dirmngr --install-recommends
app@instance-9:~$ gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
7D2BAF1CF37B13E2069D6956105BD0E739499BDB
app@instance-9:~$ curl -sSL https://get.rvm.io | bash -s stable --ruby=2.6.0
--gems=rails
app@instance-9:~$ source /home/app/.rvm/scripts/rvm
app@instance-9:~/opendax$ bundle install
app@instance-9:~/opendax$ cd config
app@instance-9:~/opendax/config$ nano app.yml
app@instance-9:/etc$ su

root@instance-9:/etc# cd /etc
root@instance-9:/etc# nano hosts
root@instance-9:/etc# su app
app@instance-9:/etc$ cd /home
app@instance-9:/home$ cd app
app@instance-9:~$ cd opendax
again from gpg2

app@instance-9:~/opendax$ rake service:all


problem in docker
again from gpg2 in root

Done

You might also like