Install Tani Software

First select the product to install:

  1. Build the base image. This this contains all required dependencies.
    • run: docker build -t plcgitcomplete/base base
      parameters:
      -t plcgitcomplete/base
      gives a name to the new image
      base
      the directory where the Dockerfile is located
      Notes:
      • This requires internet access, as it downloads a docker base image.
      • The name is referenced in the Dockerfile of the second step.
  2. Optional: archive this base image (e.g. for reproducible build or transfer into offline environment).
    • to export, run: docker save -o plcgitcomplete-base.img plcgitcomplete/base
      parameters:
      -o plcgitcomplete-base.img
      name of the image file
      plcgitcomplete/base
      the image to export
    • to import (on same or other machine), run docker load -i plcgitcomplete-base.img
      parameters:
      -i plcgitcomplete-base.img
      name of the image file
  3. Build the final image. Running this will start the PlcGit Complete software.
    • run: docker build -t plcgitcomplete .
      parameters:
      -t plcgitcomplete
      gives a name to the new image
      .
      the directory where the Dockerfile is located
      Notes:
      • This does NOT require internet access, as it uses the base image generated in step 1.
  4. Run the generated image
    • run: docker run --name plcgitcomplete1 -p 2471:2471/tcp -p 2471:2471/udp -p 80:80/tcp -v plcgitcomplete-data:/etc/Tani -v plcgitcomplete-repo:/var/lib/repositories -d --rm plcgitcomplete
      parameters:
      --name plcgitcomplete1
      the name of the new instance
      -p 2471:2471/tcp -p 2471:2471/udp -p 80:80/tcp
      exposes the specified ports: configuration (2471) http (80); format is 'hostPort:containerPort'
      -v plcgitcomplete-data:/etc/Tani
      creates or resuses a volume named plcgitcomplete-data to store the PlcGit Complete configuration and license data
      -v plcgitcomplete-repo:/var/lib/plcgit
      creates or resuses a volume named plcgitcomplete-repo
      -d
      run in detached mode
      --rm
      remove the container after exiting
      plcgitcomplete
      the image to use
      Notes:
      • The permanent data will be stored in volumes on the host computer. To find them, run e.g.: docker volume inspect plcgitcomplete-data
      • To change the location of the permanent data, specify a different name or replace the volume parameter -v plcgitcomplete-data:/etc/Tani with a generic mount: --mount type=bind,src=/dir/on/host,dst=/etc/Tani
  5. Stop the running container
    • run: docker stop plcgitcomplete1
      parameters:
      plcgitcomplete1
      the instance to stop
  1. Build the base image. This this contains all required dependencies.
    • run: docker build -t plcgitagent/base base
      parameters:
      -t plcgitagent/base
      gives a name to the new image
      base
      the directory where the Dockerfile is located
      Notes:
      • This requires internet access, as it downloads a docker base image.
      • The name is referenced in the Dockerfile of the second step.
  2. Optional: archive this base image (e.g. for reproducible build or transfer into offline environment).
    • to export, run: docker save -o plcgitagent-base.img plcgitagent/base
      parameters:
      -o plcgitagent-base.img
      name of the image file
      plcgitagent/base
      the image to export
    • to import (on same or other machine), run docker load -i plcgitagent-base.img
      parameters:
      -i plcgitagent-base.img
      name of the image file
  3. Build the final image. Running this will start the PlcGit Agent software.
    • run: docker build -t plcgitagent .
      parameters:
      -t plcgitagent
      gives a name to the new image
      .
      the directory where the Dockerfile is located
      Notes:
      • This does NOT require internet access, as it uses the base image generated in step 1.
  4. Run the generated image
    • run: docker run --name plcgitagent1 -p 2471:2471/tcp -p 2471:2471/udp -v plcgitagent-data:/etc/Tani -v plcgitagent-repo:/var/lib/repositories -d --rm plcgitagent
      parameters:
      --name plcgitagent1
      the name of the new instance
      -p 2471:2471/tcp -p 2471:2471/udp
      exposes the specified ports: configuration (2471); format is 'hostPort:containerPort'
      -v plcgitagent-data:/etc/Tani
      creates or resuses a volume named plcgitagent-data to store the PlcGit Agent configuration and license data
      -v plcgitagent-repo:/var/lib/plcgit
      creates or resuses a volume named plcgitagent-repo
      -d
      run in detached mode
      --rm
      remove the container after exiting
      plcgitagent
      the image to use
      Notes:
      • The permanent data will be stored in volumes on the host computer. To find them, run e.g.: docker volume inspect plcgitagent-data
      • To change the location of the permanent data, specify a different name or replace the volume parameter -v plcgitagent-data:/etc/Tani with a generic mount: --mount type=bind,src=/dir/on/host,dst=/etc/Tani
  5. Stop the running container
    • run: docker stop plcgitagent1
      parameters:
      plcgitagent1
      the instance to stop
  1. Build the base image. This this contains all required dependencies.
    • run: docker build -t plcgitconf/base base
      parameters:
      -t plcgitconf/base
      gives a name to the new image
      base
      the directory where the Dockerfile is located
      Notes:
      • This requires internet access, as it downloads a docker base image.
      • The name is referenced in the Dockerfile of the second step.
  2. Optional: archive this base image (e.g. for reproducible build or transfer into offline environment).
    • to export, run: docker save -o plcgitconf-base.img plcgitconf/base
      parameters:
      -o plcgitconf-base.img
      name of the image file
      plcgitconf/base
      the image to export
    • to import (on same or other machine), run docker load -i plcgitconf-base.img
      parameters:
      -i plcgitconf-base.img
      name of the image file
  3. Build the final image. Running this will start the PlcGit Conf software.
    • run: docker build -t plcgitconf .
      parameters:
      -t plcgitconf
      gives a name to the new image
      .
      the directory where the Dockerfile is located
      Notes:
      • This does NOT require internet access, as it uses the base image generated in step 1.
  4. Run the generated image
    • run: docker run --name plcgitconf1 -p 2471:2471/tcp -p 2471:2471/udp -p 80:80/tcp -v plcgitconf-data:/etc/Tani -v plcgitconf-repo:/var/lib/repositories -d --rm plcgitconf
      parameters:
      --name plcgitconf1
      the name of the new instance
      -p 2471:2471/tcp -p 2471:2471/udp -p 80:80/tcp
      exposes the specified ports: configuration (2471) http (80); format is 'hostPort:containerPort'
      -v plcgitconf-data:/etc/Tani
      creates or resuses a volume named plcgitconf-data to store the PlcGit Conf configuration and license data
      -d
      run in detached mode
      --rm
      remove the container after exiting
      plcgitconf
      the image to use
      Notes:
      • The permanent data will be stored in volumes on the host computer. To find them, run e.g.: docker volume inspect plcgitconf-data
      • To change the location of the permanent data, specify a different name or replace the volume parameter -v plcgitconf-data:/etc/Tani with a generic mount: --mount type=bind,src=/dir/on/host,dst=/etc/Tani
  5. Stop the running container
    • run: docker stop plcgitconf1
      parameters:
      plcgitconf1
      the instance to stop