Last active
January 6, 2022 12:17
-
-
Save kskrygan/dd2659687a2d55eb2878fbf86f9e87e0 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
FROM openjdk:11-jdk-slim | |
RUN apt-get update && apt-get install -y git curl unzip procps time | |
RUN git clone https://github.com/spring-petclinic/spring-petclinic-kotlin.git /project && \ | |
cd /project && git reset --hard 429f88335e8d233ffc527bff009721a72611e5e7 | |
WORKDIR /project | |
# warm-up dependencies, gradle caches, compilation, etc | |
RUN time ./gradlew assemble | |
ARG IDEA_BUILD=213.6461 | |
RUN curl -fsSL -o /ide.tar.gz https://download.jetbrains.com/idea/ideaIU-2021.3.1.tar.gz && \ | |
mkdir /ide && \ | |
tar xfz /ide.tar.gz --strip-components=1 -C /ide && \ | |
rm /ide.tar.gz | |
# Install any additional plugins required for opening the project | |
# RUN /ide/bin/remote-dev-server.sh installPlugins /project org.intellij.scala | |
# warm-up IDE indexes, caches etc | |
# RUN time /ide/bin/remote-dev-server.sh warm-up /project | |
# Enable JCEF (embedded Chromium) for e.g. markdown preview | |
# ENV REMOTE_DEV_SERVER_JCEF_ENABLED=1 | |
CMD /ide/bin/remote-dev-server.sh run /project --listenOn 0.0.0.0 --port 5990 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment