Created
November 14, 2019 07:21
-
-
Save minhoryang/c2c2540822a63483242e2ea131cb1835 to your computer and use it in GitHub Desktop.
Dockerfile.windows:1809
This file contains hidden or 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 mcr.microsoft.com/windows:1809 | |
# Install Chocolatey | |
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && 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 11.0.5.10 # XXX: version fixed for JAVA_HOME. | |
ENV JAVA_HOME "C:\\Program Files\\AdoptOpenJDK\\jdk-11.0.5.10-hotspot" | |
#RUN [Environment]::SetEnvironmentVariable('JAVA_HOME', 'C:\Program Files\AdoptOpenJDK\jdk-11.0.5.10-hotspot') # NOT CACHED! - Use above. | |
# Try to Install another openjdk. | |
#RUN (New-Object System.Net.WebClient).DownloadFile('https://github.com/AdoptOpenJDK/openjdk9-binaries/releases/download/jdk-9.0.4%2B11/OpenJDK9U-jre_x64_windows_hotspot_9.0.4_11.zip', 'jre.zip') | |
#RUN Expand-Archive .\jre.zip -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 https://github.com/konlpy/konlpy konlpy.git | |
WORKDIR konlpy.git | |
RUN & 'C:\Program Files\Git\bin\git.exe' checkout master | |
RUN py -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ konlpy==0.5.2-rc.2 | |
RUN py -m pip install -r .\requirements-dev.txt | |
CMD py -m pytest -v . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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"