Skip to content

Commit

Permalink
Builds with latest scala, and quite a lot of warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Jun 23, 2017
1 parent 4fd3197 commit fc93d21
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions kafka/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
FROM openjdk:8u131-jre-alpine

ENV KAFKA_VERSION=0.11.0.0-rc2
ENV KAFKA_VERSION=0.11.0.0-rc2 SCALA_VERSION=2.12.2

RUN set -e; cd /usr/local; \
GRADLE_VERSION=4.0 PATH=$PATH:$(pwd)/gradle-$GRADLE_VERSION/bin; \
apk add --no-cache curl; \
apk add --no-cache curl openjdk8="$JAVA_ALPINE_VERSION"; \
curl -SLs -o gradle-$GRADLE_VERSION-bin.zip https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip; \
unzip gradle-$GRADLE_VERSION-bin.zip; \
rm gradle-$GRADLE_VERSION-bin.zip; \
gradle -v; \
\
gradle
gradle -v;

RUN set -e; cd /usr/local; \
export PATH=$PATH:/usr/local/gradle-4.0/bin; \
mkdir kafka-build; \
curl -SLs "https://github.com/apache/kafka/archive/$KAFKA_VERSION.tar.gz" | tar -xzf - --strip-components=1 -C ./kafka-build; \
cd kafka-build; \
ls -la
mkdir build-kafka; \
curl -SLs "https://github.com/apache/kafka/archive/$KAFKA_VERSION.tar.gz" | tar -xzf - --strip-components=1 -C ./build-kafka; \
cd build-kafka; \
sed -i "s/scalaVersion=.*/scalaVersion=$SCALA_VERSION/" gradle.properties; \
gradle; \
#./gradlew test; \
./gradlew jar

RUN mkdir -p /usr/local/kafka/config && touch /usr/local/kafka/config/server.properties

Expand Down

0 comments on commit fc93d21

Please sign in to comment.