-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathentrypoint.sh
executable file
·31 lines (27 loc) · 1014 Bytes
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh -e
# This is documented here:
# https://docs.openshift.com/container-platform/3.11/creating_images/guidelines.html#openshift-specific-guidelines
if ! whoami &>/dev/null; then
if [ -w /etc/passwd ]; then
echo "${USER_NAME:-vm-analyzer}:x:$(id -u):$(id -g):${USER_NAME:-vm-analyzer} user:${HOME}:/sbin/nologin" >> /etc/passwd
fi
fi
#####
#set -x +e
#VDDK="/opt/vmware-vix-disklib-distrib/"
#ls -l "/usr/lib64/nbdkit/plugins/nbdkit-vddk-plugin.so"
#ls -ld "$VDDK"
## Use find to detect misplaced library. This does not allow for arbitrary
## location, the path is hard-coded in wrapper.
#lib="$(find "$VDDK" -name libvixDiskLib.so.6)"
#LD_LIBRARY_PATH="$(dirname "$lib")" nbdkit --dump-plugin vddk
#LIBGUESTFS_BACKEND='direct' libguestfs-test-tool
#set +x -e
#
#echo
#echo "... OK ..."
#echo
#exec nbdkit -U - memory 1G --readonly --exit-with-parent --newstyle --run 'python3 /usr/local/bin/break "$unixsocket"'
exec /usr/local/bin/vm-analyzer
#exec /usr/local/bin/break
#/usr/local/bin/break