Created
October 21, 2019 10:30
-
-
Save mausch/c69962e8c5a1462e181224e852761259 to your computer and use it in GitHub Desktop.
This file contains 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 | |
set -eu | |
cat << EOF > avro.dockerfile | |
FROM maven:slim | |
RUN apt-get update && apt-get install -y unzip | |
RUN curl -L --output source.zip https://github.com/streamroot/avro-compat/archive/master.zip | |
RUN unzip source.zip | |
RUN rm source.zip | |
WORKDIR /avro-compat-master | |
RUN mvn clean package | |
ENTRYPOINT ["java", "-jar", "target/avro-compat-1.3.jar"] | |
EOF | |
trap "rm avro.dockerfile" EXIT | |
docker build --quiet -t avro-check - < avro.dockerfile | |
docker run -v $PWD:/work --rm avro-check "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment