Skip to content

Commit

Permalink
Remove temporary directory about juman
Browse files Browse the repository at this point in the history
  • Loading branch information
zuqqhi2 committed Jan 6, 2017
1 parent 0e5f1d1 commit b0e74f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .bash_profile
Expand Up @@ -3,8 +3,5 @@ export PYENV_ROOT=$HOME/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
eval "$(pyenv init -)"

# juman
export PATH=$HOME/.juman/bin:$HOME/.knp/bin:$PATH

# virtualenv
alias mlact="source $HOME/.ml-env/bin/activate"
6 changes: 4 additions & 2 deletions Dockerfile
Expand Up @@ -42,15 +42,16 @@ RUN cd knp-4.16 && \
make && \
make install

WORKDIR /home/root
RUN rm -rf /home/root/work-juman

# Create user
RUN mkdir /home/ml
RUN useradd -b /home/ml -G sudo -m -s /bin/bash ml && echo 'ml:ml' | chpasswd
RUN chown ml:ml /home/ml
USER ml
ENV HOME /home/ml
WORKDIR $HOME
RUN mkdir $HOME/share
ADD . $HOME/share

# Install pyenv
RUN git clone https://github.com/yyuu/pyenv.git $HOME/.pyenv
Expand Down Expand Up @@ -86,6 +87,7 @@ RUN eval "$(pyenv init -)" && \
cd pyknp-0.3 && \
python setup.py install
WORKDIR $HOME
RUN rm -rf $HOME/work-juman

# Run jupyter
RUN mkdir $HOME/.jupyter
Expand Down
11 changes: 5 additions & 6 deletions README.md
Expand Up @@ -18,20 +18,19 @@ This docker setting is for tring to touch and test some machine learning.

and other dependent libraries.

# Note


# Password

Please update passwords before building image.
Please update passwords(default is "ml" for following).

- ml user password
- ipyton password(jupyter_notebook_config.py)

- Dockerfile create user part
- jupyter_notebook_config.py

# How to run docker image

# Build image
# This image requires more than 9 GB disk space.
# This image requires more than 13 GB disk space
docker build -t zuqqhi2/ml-python-sandbox .

# Run jupyter notebook
Expand Down

0 comments on commit b0e74f1

Please sign in to comment.