GO_AGENT_PKG
if [ -z "${AGENT_SOURCE_BIN}" ] ; then if [ "$RUST_AGENT" == "no" ]; then docker_run_args+=" --env GO_AGENT_PKG=${GO_AGENT_PKG}" else docker_run_args+=" --env RUST_AGENT_PKG=${RUST_AGENT_PKG}" fi docker_run_args+=" --env RUST_AGENT=${RUST_AGENT} -v ${GOPATH_LOCAL}:${GOPATH_LOCAL} --env GOPATH=${GOPATH_LOCAL}" else docker_run_args+=" --env AGENT_SOURCE_BIN=${AGENT_SOURCE_BIN}" docker_run_args+=" -v ${AGENT_SOURCE_BIN}:${AGENT_SOURCE_BIN}" fi
"$container_engine" run --env https_proxy="${https_proxy}" --env http_proxy="${http_proxy}" --env AGENT_VERSION="${AGENT_VERSION}" --env ROOTFS_DIR="/rootfs" --env AGENT_BIN="${AGENT_BIN}" --env AGENT_INIT="${AGENT_INIT}" --env KERNEL_MODULES_DIR="${KERNEL_MODULES_DIR}" --env EXTRA_PKGS="${EXTRA_PKGS}" --env OSBUILDER_VERSION="${OSBUILDER_VERSION}" --env INSIDE_CONTAINER=1 --env SECCOMP="${SECCOMP}" --env DEBUG="${DEBUG}" --env HOME="/root" -v "${script_dir}":"/osbuilder" -v "${ROOTFS_DIR}":"/rootfs" -v "${script_dir}/../scripts":"/scripts" -v "${kernel_mod_dir}":"${kernel_mod_dir}" $docker_run_args ${image_name} bash /osbuilder/rootfs.sh "${distro}"