Skip to content

Instantly share code, notes, and snippets.

@ColinHarrington
Created March 13, 2017 20:04
Show Gist options
  • Save ColinHarrington/5330c86c15878863fea9beb8d256f627 to your computer and use it in GitHub Desktop.
Save ColinHarrington/5330c86c15878863fea9beb8d256f627 to your computer and use it in GitHub Desktop.
Dockerfile for recreating an issue with installing grails 2.5.5 https://github.com/grails/grails-core/issues/10011
FROM openjdk:8
RUN apt-get update && apt-get install -y --no-install-recommends zip unzip
RUN curl -s get.sdkman.io | bash
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
RUN set -x \
&& echo "sdkman_auto_answer=true" > $SDKMAN_DIR/etc/config \
&& echo "sdkman_auto_selfupdate=false" >> $SDKMAN_DIR/etc/config \
&& echo "sdkman_insecure_ssl=false" >> $SDKMAN_DIR/etc/config
RUN yes | /bin/bash -c -l 'sdk install grails 2.5.5'
# Define default command.
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment