i2 Analyze Deployment Tooling

    Show / Hide Table of Contents

    analyze-containers client

    The analyze containers client image contains the analyze-containers code and is used to pull and build other images required by the deployment and also run the analyze-containers scripts.

    Running an analyze-containers client container

    An analyze-containers client container uses the analyze-containers client image. In the docker run command, you can use -e to pass environment variables to the container. The environment variables are described in environment variables

    The default user is called i2analyze with User ID and Group ID 1000 (this can be changed with the USER_ID and GROUP_ID env variables).

    For more information about the command, see docker run reference.

    Docker run command

    docker run \
      --rm \
      -i \
      -w /opt/analyze-containers \
      "${BIND_MOUNTS[@]}" \
      -v "${PATH_TO_DIR}:${PATH_TO_DIR}" \
      -v "ac_m2:/home/i2analyze/.m2" \
      -v "ac_images_2.9.1:/opt/analyze-containers/images" \
      -v "ac_templates_2.9.1:/opt/analyze-containers/templates" \
      -v "/var/run/docker.sock:/var/run/docker-host.sock" \
      -v "ac_tmp:/opt/analyze-containers/.tmp" \
      -e WORKDIR="${PATH_TO_DIR}" \
      -e USER_ID="$(id -u)" -e GROUP_ID="$(id -g)" \
      "i2eng-analyze-containers-client:2.9.1" "$@"
    

    The local user ID is required so that a user is created in the Docker container with a USER_ID that is the same as the local user. The user is required to ensure that the local user can access any files that are generated on the container. The value of $id comes from your shell.

    Bind mounts

    The value for BIND_MOUNTS is the paths that are specified as the rootDirectory and upgradeDirectory in the path-configuration.json file. For more information about the path-configuration.json file, see Managing shared configurations.

    The value for PATH_TO_DIR is the path where analyze-containers is installed. This path is mounted into the analyze-containers client image.

    Environment variables

    Environment variable Description
    WORK_DIR Where the local version of analyze-containers is installed.
    USER_ID The id of the current user.
    GROUP_ID The id of the current user's group.
    Back to top © N. Harris Computer Corporation