Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Install Chocolatey
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString(''))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
# New Powershell, so choco is available
SHELL ["powershell"]
# Choco disable upload progress
RUN choco feature disable --name showDownloadProgress
# python 3.
RUN choco install -y python3
RUN py -m pip install --upgrade pip
# Jpype requires: (and respect caching)
RUN choco install -y vcbuildtools # XXX: so long...
RUN choco install -y adoptopenjdk11 --version # XXX: version fixed for JAVA_HOME.
ENV JAVA_HOME "C:\\Program Files\\AdoptOpenJDK\\jdk-"
#RUN [Environment]::SetEnvironmentVariable('JAVA_HOME', 'C:\Program Files\AdoptOpenJDK\jdk-') # NOT CACHED! - Use above.
# Try to Install another openjdk.
#RUN (New-Object System.Net.WebClient).DownloadFile('', '')
#RUN Expand-Archive .\ -DestinationPath jre
#RUN [Environment]::SetEnvironmentVariable('JAVA_HOME', 'C:\jre\jdk-9.0.4+11-jre')
# TestEnv
RUN choco install -y git.install
RUN & 'C:\Program Files\Git\bin\git.exe' clone konlpy.git
WORKDIR konlpy.git
RUN & 'C:\Program Files\Git\bin\git.exe' checkout master
RUN py -m pip install --index-url --extra-index-url konlpy==0.5.2-rc.2
RUN py -m pip install -r .\requirements-dev.txt
CMD py -m pytest -v .

This comment has been minimized.

Copy link
Owner Author

@minhoryang minhoryang commented Nov 14, 2019

RUN choco install -y adoptopenjdk13 --version 13.33 # XXX: version fixed for JAVA_HOME.
ENV JAVA_HOME "C:\Program Files\AdoptOpenJDK\jdk-13.33-hotspot"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment