[eclipse/xtext#1431] Enhance container support

Disable Gradle daemon, since a new container for each build is
spawned and the daemon can't be reused anyway.

Remove CPU resource constraint, since default is sufficient.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
This commit is contained in:
Karsten Thoms 2019-05-24 13:40:16 +02:00
parent 20667db3ac
commit 19848f9236
2 changed files with 4 additions and 2 deletions

View file

@ -4,6 +4,10 @@ if [ -z "$JENKINS_URL" ]; then
JENKINS_URL=https://ci.eclipse.org/xtext/
fi
if [ -f "/.dockerenv" ]; then
export GRADLE_OPTS="-Dorg.gradle.daemon=false"
fi
./gradlew \
clean cleanGenerateXtext build createLocalMavenRepo \
-PuseJenkinsSnapshots=true \

View file

@ -20,10 +20,8 @@ spec:
resources:
limits:
memory: "2Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "1"
volumeMounts:
- name: settings-xml
mountPath: /home/jenkins/.m2/settings.xml