diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-17 10:26:45 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-17 10:26:45 +0200 |
commit | efa329d6782b016dd1b95b84301e7cc155ef3372 (patch) | |
tree | e938321f87e52489c09f68ef014c9d15c48edb79 /tests | |
parent | b2abd05d6c43e1d50ffc4937575e3cef86411de4 (diff) | |
download | kube-efa329d6782b016dd1b95b84301e7cc155ef3372.tar.gz kube-efa329d6782b016dd1b95b84301e7cc155ef3372.zip |
runinnamespace script
Helps to test the scenario of two kube instances with separate pid
namespaces but shared filesystem as it can happen with flatpak.
lmdb does not support that scenario due to the use of the pid for
locking.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runinnamespace.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/runinnamespace.sh b/tests/runinnamespace.sh new file mode 100644 index 00000000..da632a51 --- /dev/null +++ b/tests/runinnamespace.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | #This script helps testing the scenario where two kube instance are running in separate namespaces. This is what happens with flatpak, and it currently breaks lmdb. | ||
4 | |||
5 | sudo unshare -fp env PATH=/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin QT_PLUGIN_PATH=/install/lib64/plugins/ QML2_IMPORT_PATH=/install/lib64/qml XDG_DATA_DIRS=/install/share/ LD_LIBRARY_PATH=/install/lib64 XDG_CONFIG_DIRS=/install/share/config /install/bin/kube | ||