To install the Docker, do the following:
Install the packages to use the repository via HTTPS.
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common |
Add official Docker GPG key.
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - |
sudo apt-key fingerprint 0EBFCD88 |
for the x86_64 / amd64 architecture:
Debian:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" |
Ubuntu:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
for the armhf architecture:
Debian:
sudo add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/debian $(lsb_release -cs) stable" |
Ubuntu:
sudo add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
Update the lists of packages:
sudo apt-get update |
Install and configure the Docker:
Install docker-ce.
sudo apt-get install docker-ce docker-compose |
Add a user to the Docker.
sudo adduser user docker |
Install git.
sudo apt-get install git gettext |
Go to the directory where the container will be located.
cd /home |
Clone the files from the repository.
git clone https://src.axxonsoft.dev/bitbucket/scm/one/axxonnext.docker.git |
Go to axxonnext.docker folder.
cd /home/axxonnext.docker/ |
Download the content from the git repository.
git pull |
Place the downloaded .deb packages in the /server/build folder of the container.
mv /home/user/Downloads/axxon-* /home/axxonnext.docker/server/build/ |
Go to the directory where axxon-one.sh is located.
cd /home/axxonnext.docker/server |
Start building the container.
./axxon-one.sh build |
When the container is built, the terminal will display the information:
Example:
Successfully built fce00881f1c7 Successfully tagged axxon-one:latest |
Restart the OS after the container is built.
sudo reboot |
The Docker is installed.
Start the container.
./axxon-one.sh start |
If you need to check the status of the Server, use the command:
./axxon-one.sh status |
The list of commands you can use with axxon-one.sh: