How to install dokka correctly - with or without sudo?

I'm learning dokka right now for easy deployment on the web. The official installation instructions indicate this command:

wget -qO- https://raw.github.com/progrium/dokku/v0.3.12/bootstrap.sh | sudo DOKKU_TAG=v0.3.12 bash 

I am not devop or admin, but as far as I understand this line, it does all the download and installation as root , thanks to sudo . Therefore, dokku will be checked into the directory with root , and all additional directories, such as /var/lib/dokku/ , will also have root .

The problem is that all articles on the Internet about dokku instruct you to execute the dokku command or to perform actions related to dokku without sudo . For example, the instructions for this dokku plugin, https://github.com/krisrang/dokku-mariadb , instruct you to install it through:

 cd /var/lib/dokku/plugins git clone https://github.com/krisrang/dokku-mariadb mariadb dokku plugins-install 

This does not work, since /var/lib/dokku/plugins has root and git clone with acces denied . Now it’s hard to be not an administrator, but maybe someone will tell me what I'm doing wrong? I need to install dokku in some other way, or all the doku-related tutorials on the Internet suggest that I run them as root (which, according to my limited administrator knowledge, is not highly recommended for security reasons).

+7
dokku
source share
2 answers

You should run these three commands as sudo :

 sudo su - 

The dokku wizard will run the code as a dokku user, even if you execute it as root. So it should be good to run it as it is. Once you are a sudo user, just run the installation instructions listed in your question. Hope my answer helps! :)

I also contacted them as they said:

In the future, we will have a method for installing plugins directly using the dokku command

+4
source share

As far as I can tell, you need to run it as root. The traditional way to install the program without root privileges is to download the source code and compile it , which can be done by doing:

git clone https://github.com/progrium/dokku.git

to do

make installation

The Dokku makefile depends on apt-get, which requires root access to run.

I am not familiar with doku or dokku mariadb, but I think that the author of dokku mariadb also allows root access.

+3
source share

All Articles