-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 from minhoryang/issues/271
Fixes #271, Update install.rst, mecab.sh to support Python 3.
- Loading branch information
Showing
12 changed files
with
248 additions
and
29 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM centos:7 | ||
|
||
RUN yum update -y | ||
RUN yum install --assumeyes gcc-c++ python3 python3-devel python3-pip java-1.8.0-openjdk-devel make diffutils | ||
RUN python3 -m pip install --upgrade pip | ||
RUN python3 -m pip install konlpy | ||
|
||
RUN yum install --assumeyes curl git | ||
RUN curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh | bash | ||
|
||
RUN yum install --assumeyes git | ||
RUN git clone https://github.com/konlpy/konlpy konlpy.git | ||
WORKDIR konlpy.git | ||
RUN git checkout master | ||
RUN python3 -m pip install -r requirements-dev.txt | ||
CMD python3 -m pytest -v . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM centos:8 | ||
|
||
RUN yum update -y | ||
RUN yum install --assumeyes gcc-c++ python3 python3-devel python3-pip java-1.8.0-openjdk-devel make diffutils | ||
RUN python3 -m pip install --upgrade pip | ||
RUN python3 -m pip install konlpy | ||
|
||
RUN yum install --assumeyes curl git | ||
RUN curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh | bash | ||
|
||
RUN yum install --assumeyes git | ||
RUN git clone https://github.com/konlpy/konlpy konlpy.git | ||
WORKDIR konlpy.git | ||
RUN git checkout master | ||
RUN python3 -m pip install -r requirements-dev.txt | ||
CMD python3 -m pytest -v . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM centos:{{ docker_image_version | default('latest') }} AS install_phase | ||
|
||
RUN yum update -y | ||
RUN yum install --assumeyes gcc-c++ python3 python3-devel python3-pip java-1.8.0-openjdk-devel make diffutils | ||
RUN python3 -m pip install --upgrade pip | ||
RUN python3 -m pip install {{ konlpy_package_definition | default('konlpy') }} | ||
|
||
RUN yum install --assumeyes curl git | ||
RUN curl -s https://raw.githubusercontent.com/{{ github_repo_mecab | default('konlpy/konlpy') }}/{{ github_branch_mecab | default('master') }}/scripts/mecab.sh | bash | ||
|
||
ENTRYPOINT python3 | ||
|
||
# XXX: Stop Here with `docker build --target install_phase ...` | ||
FROM install_phase AS test_phase | ||
|
||
RUN yum install --assumeyes git | ||
RUN git clone https://github.com/{{ github_repo_konlpy | default('konlpy/konlpy') }} konlpy.git | ||
WORKDIR konlpy.git | ||
RUN git checkout {{ github_branch_konlpy | default('master') }} | ||
RUN python3 -m pip install -r requirements-dev.txt | ||
CMD -m pytest -v . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ubuntu:{{ docker_image_version | default('latest') }} AS install_phase | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y g++ openjdk-8-jdk python3-dev python3-pip | ||
RUN python3 -m pip install --upgrade pip | ||
RUN python3 -m pip install {{ konlpy_package_definition | default('konlpy') }} | ||
|
||
RUN apt-get install -y curl git | ||
RUN curl -s https://raw.githubusercontent.com/{{ github_repo_mecab | default('konlpy/konlpy') }}/{{ github_branch_mecab | default('master') }}/scripts/mecab.sh | bash | ||
|
||
# XXX: Stop Here with `docker build --target install_phase ...` | ||
FROM install_phase AS test_phase | ||
|
||
RUN apt-get install -y git | ||
RUN git clone https://github.com/{{ github_repo_konlpy | default('konlpy/konlpy') }} konlpy.git | ||
WORKDIR konlpy.git | ||
RUN git checkout {{ github_branch_konlpy | default('master') }} | ||
RUN python3 -m pip install -r requirements-dev.txt | ||
CMD python3 -m pytest -v . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ubuntu:bionic | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y g++ openjdk-8-jdk python3-dev python3-pip | ||
RUN python3 -m pip install --upgrade pip | ||
RUN python3 -m pip install konlpy | ||
|
||
RUN apt-get install -y curl git | ||
RUN curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh | bash | ||
|
||
RUN apt-get install -y git | ||
RUN git clone https://github.com/konlpy/konlpy konlpy.git | ||
WORKDIR konlpy.git | ||
RUN git checkout master | ||
RUN python3 -m pip install -r requirements-dev.txt | ||
CMD python3 -m pytest -v . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ubuntu:disco | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y g++ openjdk-8-jdk python3-dev python3-pip | ||
RUN python3 -m pip install --upgrade pip | ||
RUN python3 -m pip install konlpy | ||
|
||
RUN apt-get install -y curl git | ||
RUN curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh | bash | ||
|
||
RUN apt-get install -y git | ||
RUN git clone https://github.com/konlpy/konlpy konlpy.git | ||
WORKDIR konlpy.git | ||
RUN git checkout master | ||
RUN python3 -m pip install -r requirements-dev.txt | ||
CMD python3 -m pytest -v . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ubuntu:eoan | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y g++ openjdk-8-jdk python3-dev python3-pip | ||
RUN python3 -m pip install --upgrade pip | ||
RUN python3 -m pip install konlpy | ||
|
||
RUN apt-get install -y curl git | ||
RUN curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh | bash | ||
|
||
RUN apt-get install -y git | ||
RUN git clone https://github.com/konlpy/konlpy konlpy.git | ||
WORKDIR konlpy.git | ||
RUN git checkout master | ||
RUN python3 -m pip install -r requirements-dev.txt | ||
CMD python3 -m pytest -v . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ubuntu:xenial | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y g++ openjdk-8-jdk python3-dev python3-pip | ||
RUN python3 -m pip install --upgrade pip | ||
RUN python3 -m pip install konlpy | ||
|
||
RUN apt-get install -y curl git | ||
RUN curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh | bash | ||
|
||
RUN apt-get install -y git | ||
RUN git clone https://github.com/konlpy/konlpy konlpy.git | ||
WORKDIR konlpy.git | ||
RUN git checkout master | ||
RUN python3 -m pip install -r requirements-dev.txt | ||
CMD python3 -m pytest -v . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ubuntu:xenial | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y g++ openjdk-8-jdk python3-dev python3-pip | ||
RUN python3 -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ konlpy==0.5.2-rc.2 | ||
|
||
RUN apt-get install -y curl git | ||
RUN curl -s https://raw.githubusercontent.com/minhoryang/konlpy/issues/271/scripts/mecab.sh | bash | ||
|
||
RUN apt-get install -y git | ||
RUN git clone https://github.com/konlpy/konlpy konlpy.git | ||
WORKDIR konlpy.git | ||
RUN git checkout master | ||
RUN python3 -m pip install -r requirements-dev.txt | ||
CMD python3 -m pytest -v . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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" | ||
|
||
# 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 . |
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