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.  
    1. apt-transport-https
    \
    1.  
    1. ca-certificates
    \
    1.  
    1. curl
    \
    1.  gnupg2
    \
    1.  
    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
    1. <0EBFCD88>
    Add

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

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


      2. for the armhf architecture.

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


    1. Update the lists.


      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 git 
    mercurial
    1. gettext
    Add string

    1. Go to the

    hgrc file
    1. directory where the container will be located.

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


    2. Clone the repository.

      Code Block
    hg
    1. git clone https://bitbucket.org/Axxonsoft/axxonone.docker.git


    2. Update the repository:
      1. Go to axxonone.docker folder.


        Code Block
        cd axxonone.docker


      2. Download content from git.

        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/Downloads/axxon-* /home/axxonone.docker
    Update the repository, if necessary
    1. /server/build/


    2. Start building the container.

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


    2. Restart OS after the container is built.

      Code Block
      sudo reboot


The Docker is installed.