Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To install the Docker, do the following:

  1. Prepare the environment:
    1. Install the packages to use the repository via HTTPS

    Execute the command in the root mode
    1. .

      Code Block
      sudo apt-get install
    \
    1.  apt-transport-https 
    \
    1. ca-certificates 
    \
    1. curl 
    \
    1. gnupg2 
    \
    1. software-properties-common


    2. Add

    CPG
    1. official Docker GPG key

    and fingerprints
    1. .

      Code Block
      curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

    1. Code Block
      sudo apt-key fingerprint 0EBFCD88
    . Add

    1. Configure the
    official
    1. repository
    to the source.list.
    1. :
      1. for the x86_64 / amd64 architecture:

        • Debian:

          Code Block
          sudo add-apt-repository
    \
        •  "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"


        • Ubuntu:

          Code Block
          sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/
    debian \
        • ubuntu $(lsb_release -cs) stable"


      1. for the armhf architecture:

        • Debian:

          Code Block
          sudo add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/debian $(lsb_release -cs) 
    \ stable"
        • stable"


        • Ubuntu:

          Code Block
          sudo add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"


    1. Update the lists of packages:

      Code Block
      sudo apt-get update


  2. Install and configure the Docker:

    1. Install docker-ce

    and docker-compose (see https://github
    1. .

    com/docker/compose/releases).
    1. Code Block
      sudo apt-get install docker-ce docker-compose


    2. Add

    the system
    1. a user to the

    docker group
    1. Docker.

      Code Block
      sudo adduser user docker
    Log in the system under this user.

    1. Install

    Mercurial
    1. git.

      Code Block
      sudo apt-get install 
    mercurialAdd string to the hgrc file
    1. git gettext


    2. Go to the directory where the container will be located.

      Code Block
    sudo
    1. cd 
    nano ~/.hgrc Code Block[ui] tls = False
    1. /home


    2. Clone the files from the repository.

      Code Block
    hg
    1. git clone https://src.axxonsoft.dev/bitbucket
    .org/Axxonsoft/axxonone.docker
    1. /scm/one/axxonnext.docker.git


    2. Update the cloned repository files:
      1. Go to axxonnext.docker folder.

        Code Block
        cd /home/axxonnext.docker/


      2. Download the content from the git repository.

        Code Block
        git pull


  3. Install the container:
    1. Place the downloaded .deb packages in the /server/build folder of the container.

      Code Block
      mv /home/user/
    axxonone
    1. Downloads/axxon-* /home/axxonnext.docker
    Update the repository, if necessary
    1. /server/build/ 


    2. Go to the directory where axxon-one.sh is located.

      Code Block
      cd 
    axxonone.docker hg pull -u
    1. /home/axxonnext.docker/server


    2. Start building the container.

      Code Block
      ./axxon-one.sh build

      When the container is built, the terminal will display the information:
      Example:

      Code Block
      Successfully built fce00881f1c7
      Successfully tagged axxon-one:latest


    3. Restart the OS after the container is built.

      Code Block
      sudo reboot


The Docker is installed.

Start the container.

Code Block
./axxon-one.sh start

If you need to check the status of the Server, use the command:

Code Block
./axxon-one.sh status

The list of commands you can use with axxon-one.sh:

Image Added