Versions Compared

Key

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

...

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

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


    2. Add official Docker GPG key.

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


      Code Block
      sudo apt-key fingerprint 0EBFCD88


    3. Configure the repository:
      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/ubuntu $(lsb_release -cs) stable"


      2. for the armhf architecture:

        • Debian:

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


        • Ubuntu:

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


    4. Update the lists of packages:

      Code Block
      sudo apt-get update


  2. Install and configure the Docker:

    1. Install docker-ce.

      Code Block
      sudo apt-get install docker-ce docker-compose


    2. Add a user to the Docker.

      Code Block
      sudo adduser user docker


    3. Install git.

      Code Block
      sudo apt-get install git gettext


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

      Code Block
      cd /home


    5. Clone the files from the repository.

      Code Block
      git clone https://src.axxonsoft.dev/bitbucket/projectsscm/ONE/reposone/axxonnext.docker/browse.git


    6. Update the cloned repository files:
      1. Go to axxononeaxxonnext.docker folder.

        Code Block
        cd /axxononeaxxonnext.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/Downloads/axxon-* /home/axxononeaxxonnext.docker/server/build/ 


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

      Code Block
      cd /home/axxononeaxxonnext.docker/server


    3. 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


    4. Restart the OS after the container is built.

      Code Block
      sudo reboot


...