Skip to content

Instantly share code, notes, and snippets.

@rmetzger
Last active April 18, 2019 07:37
Show Gist options
  • Save rmetzger/f394b124c822baa1bab4a611239899b9 to your computer and use it in GitHub Desktop.
Save rmetzger/f394b124c822baa1bab4a611239899b9 to your computer and use it in GitHub Desktop.
Bootstrap Ubuntu 18.04 for building Flink (Google Cloud)
sudo -s
apt update
apt install maven openjdk-8-jdk git
apt remove openjdk-11-jre-headless
exit
git clone https://github.com/apache/flink.git
cd flink
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/
mvn clean install
# setup minikube
sudo apt install docker.io
sudo usermod -aG docker ${USER}
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube
sudo ./minikube --vm-driver=none start
# fix issue with surefire / VM exit
<profile>
<id>SUREFIRE-1588</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
</properties>
</profile>
into:
~/.m2/settings.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment