diff --git a/test.sh b/test.sh index b8b9299..aff9640 100755 --- a/test.sh +++ b/test.sh @@ -39,7 +39,15 @@ for version in "${meteor_versions[@]}"; do cp "${dockerfile}" test.dockerfile do_sed "s|FROM geoffreybooth/meteor-base:.*|FROM geoffreybooth/meteor-base:${version}|" test.dockerfile - do_sed "s|FROM node:.*|FROM node:${node_version}-alpine|" test.dockerfile + + if [[ $(get_version_string "${node_version}") -ge $(get_version_string 14.21.4) && $(get_version_string "${node_version}") -lt $(get_version_string 18.0.0) ]]; then + echo 'Using Meteor fork of Node Docker image...' + do_sed "s|FROM node:.*|FROM meteor/node:${node_version}-alpine3.17|" test.dockerfile + else + echo 'Using official Node Docker image...' + do_sed "s|FROM node:.*|FROM node:${node_version}-alpine|" test.dockerfile + fi + do_sed "s|/app|/test-app|g" test.dockerfile cp docker-compose.yml test.docker-compose.yml