Skip to content

Commit

Permalink
Keep all sources, for now util we do they layer cleanup, and install …
Browse files Browse the repository at this point in the history
…bash for the bin scripts
  • Loading branch information
solsson committed Jun 23, 2017
1 parent fc93d21 commit 6c1a656
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kafka/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ RUN set -e; cd /usr/local; \

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

RUN mkdir -p /usr/local/kafka/config && touch /usr/local/kafka/config/server.properties
RUN apk add --no-cache bash

WORKDIR /usr/local/kafka
ENTRYPOINT ["bin/kafka-server-start.sh"]
Expand Down

0 comments on commit 6c1a656

Please sign in to comment.