Skip to content

Commit

Permalink
Merge pull request containerd#1069 from tallclair/runtimehandler-setup
Browse files Browse the repository at this point in the history
Expose environment variables for configuring an additional runtime handler
  • Loading branch information
Random-Liu authored Mar 14, 2019
2 parents 8d84e3f + d7c5b24 commit 9c9bf1d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cluster/gce/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,16 @@ disabled_plugins = ["restart"]
EOF
chmod 644 "${config_path}"

if [[ -n "${CONTAINERD_EXTRA_RUNTIME_HANDLER}" ]]; then
cat >> ${config_path} <<EOF
[plugins.cri.containerd.runtimes.${CONTAINERD_EXTRA_RUNTIME_HANDLER}]
runtime_type = "${CONTAINERD_EXTRA_RUNTIME_TYPE:-io.containerd.runc.v1}"
[plugins.cri.containerd.runtimes.${CONTAINERD_EXTRA_RUNTIME_HANDLER}.options]
${CONTAINERD_EXTRA_RUNTIME_OPTIONS:-}
EOF
fi

echo "export PATH=${CONTAINERD_HOME}/usr/local/bin/:${CONTAINERD_HOME}/usr/local/sbin/:\$PATH" > \
/etc/profile.d/containerd_env.sh

Expand Down

0 comments on commit 9c9bf1d

Please sign in to comment.