Created
February 6, 2017 13:21
-
-
Save AndrienkoAleksandr/441b542634a1a998f43b92473fb2bb44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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