3 SCRIPT_BASE
=$
(dirname `readlink -f $0`)
36 function build_image
()
39 compiler_name
=${compiler%-*}
40 compiler_version
=${compiler#${compiler_name}-}
44 --build-arg compiler_version
=${compiler_version} \
45 --tag ${account}${name}:${compiler} \
46 --file ${SCRIPT_BASE}/docker
/Dockerfile.
${compiler_name} \
52 echo "usage: $(basename $0) compiler"
54 echo " supported compilers:"
55 for v
in ${supported_compilers[@]} ; do
61 if [ $# -ne 1 ] ; then
66 for v
in ${supported_compilers[@]} ; do
67 if [ "${v}" == "$1" ] ; then
72 echo "error: specified compiler not supported: $1"