Skip to content

Instantly share code, notes, and snippets.

@AndrienkoAleksandr
Created February 6, 2017 13:21
Show Gist options
  • Save AndrienkoAleksandr/441b542634a1a998f43b92473fb2bb44 to your computer and use it in GitHub Desktop.
Save AndrienkoAleksandr/441b542634a1a998f43b92473fb2bb44 to your computer and use it in GitHub Desktop.
#!/bin/bash
PATH_TO_CHE=${1}
if [ -z "${PATH_TO_CHE}" ]; then
echo "You should set up PATH to Eclipse CHE source code, like argument for this script."
exit 1;
fi
# Run Docker container to build Eclipse CHE. Source code will be mounted to the docker container (-v params). Inside container will be executed command:
# which goes to the mounted source code folder, build it with skip tests and skip sources validation to speed up. --rm flags means that container will be
# removed after build.
docker run --rm -v "${PATH_TO_CHE}":/che aandrienko/build-che bash -c "cd /che && mvn clean install -DskipTests -Dskip-validate-sources"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment