my_buildctl : better PATH handling
This commit is contained in:
parent
71397466d0
commit
105e71d77f
|
@ -264,5 +264,5 @@ my_buildctl () {
|
||||||
opts=$(echo -n "'$@" | sed -e "s| |', '|g" ; echo -n "'")
|
opts=$(echo -n "'$@" | sed -e "s| |', '|g" ; echo -n "'")
|
||||||
curl -sSLf https://github.com/moby/buildkit/releases/download/v0.9.3/buildkit-v0.9.3.linux-amd64.tar.gz |
|
curl -sSLf https://github.com/moby/buildkit/releases/download/v0.9.3/buildkit-v0.9.3.linux-amd64.tar.gz |
|
||||||
tar xz --to-stdout bin/buildctl |
|
tar xz --to-stdout bin/buildctl |
|
||||||
python3 -c "import ctypes, os;from sys import stdin;l = ctypes.CDLL(None);s = l.syscall;e = stdin.buffer.read();f = s(319, '', 1);os.write(f, e);p = '/proc/self/fd/%d' % f;env = os.environ; env['PATH'] = os.environ['PATH']; os.execle(p, 'buildctl', ${opts}, env)"
|
python3 -c "import ctypes, os;from sys import stdin;l = ctypes.CDLL(None);s = l.syscall;e = stdin.buffer.read();f = s(319, '', 1);os.write(f, e);p = '/proc/self/fd/%d' % f;os.execle(p, 'buildctl', ${opts}, {'PATH': '${PATH}'})"
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ if ! podman image exists localhost/matrixdotorg/synapse:${synapse_version}; then
|
||||||
podman image tag localhost/synapse_${synapse_version}:latest ${synapse_image}:${synapse_version} &&
|
podman image tag localhost/synapse_${synapse_version}:latest ${synapse_image}:${synapse_version} &&
|
||||||
podman image rm localhost/synapse_${synapse_version}:latest &&
|
podman image rm localhost/synapse_${synapse_version}:latest &&
|
||||||
podman rm --force buildkitd &&
|
podman rm --force buildkitd &&
|
||||||
podman rmi docker.io/moby/buildkit:latest &&
|
podman rmi docker.io/moby/buildkit:latest
|
||||||
}
|
}
|
||||||
rm -rf ${buildfolder}
|
rm -rf ${buildfolder}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue