forked from termux/termux-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(root/containerd): clean up patches
Seems newer versions of containerd does not work in termux, trying to run docker with containerd 1.6.24 or 1.7.7 we get: $ sudo docker run -it ubuntu bash docker: Error response from daemon: failed to create task for container: failed to start shim: start failed: io.containerd.runc.v2: create new shim socket: listen unix /data/data/com.termux/files/usr/var/run/containerd/s/3f71828f1d6c1ead43fded842abc9c3cf5857c74c3e0704cd83ab177e17cfe6c: bind: invalid argument: exit status 1: unknown.
- Loading branch information
Showing
6 changed files
with
59 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff -ur ../src.orig/cluster/gce/configure.sh ./cluster/gce/configure.sh | ||
--- ../src.orig/cluster/gce/configure.sh 2023-10-15 18:45:05.281722654 +0000 | ||
+++ ./cluster/gce/configure.sh 2023-10-15 18:45:27.488481779 +0000 | ||
@@ -189,7 +189,7 @@ | ||
rm -f "${CONTAINERD_HOME}/etc/crictl.yaml" | ||
|
||
# Generate containerd config | ||
-config_path="${CONTAINERD_CONFIG_PATH:-"/etc/containerd/config.toml"}" | ||
+config_path="${CONTAINERD_CONFIG_PATH:-"@TERMUX_PREFIX@/etc/containerd/config.toml"}" | ||
mkdir -p $(dirname ${config_path}) | ||
cni_bin_dir="${CONTAINERD_HOME}/opt/cni/bin" | ||
cni_template_path="${CONTAINERD_HOME}/opt/containerd/cluster/gce/cni.template" | ||
diff -ur ../src.orig/contrib/ansible/cri-containerd.yaml ./contrib/ansible/cri-containerd.yaml | ||
--- ../src.orig/contrib/ansible/cri-containerd.yaml 2023-10-15 18:45:05.278389306 +0000 | ||
+++ ./contrib/ansible/cri-containerd.yaml 2023-10-15 18:45:27.488481779 +0000 | ||
@@ -11,7 +11,7 @@ | ||
- include_tasks: tasks/binaries.yaml # Contains tasks for pulling containerd components | ||
|
||
- name: "Create a directory for containerd config" | ||
- file: path=/etc/containerd state=directory | ||
+ file: path=@TERMUX_PREFIX@/etc/containerd state=directory | ||
|
||
- name: "Start Containerd" | ||
systemd: name=containerd daemon_reload=yes state=started enabled=yes | ||
diff -ur ../src.orig/script/setup/config-containerd ./script/setup/config-containerd | ||
--- ../src.orig/script/setup/config-containerd 2023-10-15 18:45:05.351722947 +0000 | ||
+++ ./script/setup/config-containerd 2023-10-15 18:45:27.495148474 +0000 | ||
@@ -15,7 +15,7 @@ | ||
# limitations under the License. | ||
|
||
# | ||
-# establishes /etc/containerd/config.toml | ||
+# establishes @TERMUX_PREFIX@/etc/containerd/config.toml | ||
# parameterized by the current SELinux mode | ||
# | ||
set -eux -o pipefail | ||
@@ -26,9 +26,9 @@ | ||
enable_selinux=true | ||
fi | ||
|
||
-mkdir -p /etc/containerd | ||
+mkdir -p @TERMUX_PREFIX@/etc/containerd | ||
|
||
-cat << EOF | sudo tee /etc/containerd/config.toml | ||
+cat << EOF | sudo tee @TERMUX_PREFIX@/etc/containerd/config.toml | ||
version = 2 | ||
[plugins] | ||
[plugins."io.containerd.grpc.v1.cri"] |
This file was deleted.
Oops, something went wrong.