Im trying to get this to work on a 86_64 qnap nas via docker. what i have done so far to get to where i am is
- Install Entware-3x-std to get opkg (its a native package made for qnap you can find it here
- opkg install coreutils
- opkg install coreutils-cut (default version is watered down and missing functions)
- opkg install coreutils-kill (default version is watered down and missing functions)
- opkg install coreutils-ls (default version is watered down and missing functions)
- opkg install coreutils-sleep (default version is watered down and missing functions)
- opkg install git-http (for https)
- opkg install ncurses-bin (for tput)
and heres the first problem i ran into. “colrm” is not on qnap nas by default and theres no package via opkg to be able to install it… i lucked out buy just doing a search on the nas for “colrm” and found that a docker that i was running had that file so copy/paste go!. and it seems like it works (at least not getting any errors from it and seem to be working)
next problem that took me 3 days >.< to find out WTH was going on. after a lot of debugging found out that for some reason qnap dont like
set -a
. local.properties
so it not importing local.properties in to the bash. so ${VERSION} ended up being null/blank so keep saying invalid argument when it tryed to run docker build. so found a way around that (thank you google!) by using
configfile=${config_file}
if [ -f ${configfile} ]; then
echo “Reading user config…” >&2# check if the file contains something we don't want CONFIG_SYNTAX="(^\s*#|^\s*$|^\s*[a-z_][^[:space:]]*=[^;&\(\`]*$)" if egrep -q -iv "$CONFIG_SYNTAX" "$configfile"; then echo "Config file is unclean, Please cleaning it..." >&2 exit 1 fi # now source it, either the original or the filtered variant source "$configfile"
else
echo “There is no configuration file call ${configfile}”
fi
ran launcher bootstrap. and it working!!! checked nas and i can see it doing its thing… go fix me something to eat will its doing its thinking and came back to “One or more build-args [SERVER_BRANCH] were not consumed, failing build.” so at this point i removed the images that it was able to do and ran it again to the if there anymore error messages. and nothing just that one error message. reenabled debug and ran again. it gets all the way to step 30 and “One or more build-args [SERVER_BRANCH] were not consumed, failing build.”
Step 30 : ENTRYPOINT /home/kontalk/entrypoint.sh
—> Running in daa05a1c816a
—> 9781bcafa972
Removing intermediate container daa05a1c816a
i check dockerfile to see what comes after that point and nothing… that is the last step in the dockerfile.
at this point was thinking maybe its what ever docker is trying to build next that is getting the error from. after a few echo’s later
if [ -n “${DEBUG}” ]; then
echo “----------------------------”
echo “Starting build for ${image}”
echo “----------------------------”
echo “Base: ${base}”
echo “----------------------------”
echo "Full Command: " . ${docker_path} build -t ${image} $* ${base}
echo “----------------------------”${docker_path} build -t ${image} $* ${base}
else
nothing there’s only first entry “kontalk/xmppserver:0285f34” and nothing. no entry about building anything else after that one it just right when it get done with “kontalk/xmppserver:0285f34” it errors out. im hoping someone can point me in the right direction of what to check next. im out of ideas
P.S. i just seen that for some reason when it gets done with “kontalk/xmppserver:0285f34” and errors out. docker not showing a container for “kontalk/xmppserver” it show the images for it but thats it. almost like it was not done building it.
P.S.S just noticed that both “kontalk/xmppserver” and “kontalk/httpupload” not listed on hub.docker.com maybe that where its getting the error it cant find it? brain over loaded, maybe im just over thinking it >.<
the none and debian is the ones created by the script
Log
https://github.com/kontalk/xmppserver-docker/files/1713006/bootstrap.txt