Git Product home page Git Product logo

Comments (1)

Kimtaro avatar Kimtaro commented on June 26, 2024

Hi @e-e. I don't know docker and docker-compose very well.

I have just tried getting the container to work - there were issues with some of the download urls. I am able to get the container running with the Dockerfile below. But I can't seem to connect to it.

You're welcome to try it out yourself to see if you have better luck than I have.

# Use phusion/passenger-full as base image. To make your builds reproducible, make
# sure you lock down to a specific version, not to `latest`!
# See https://github.com/phusion/passenger-docker/blob/master/Changelog.md for
# a list of version numbers.

FROM phusion/passenger-ruby26:1.0.11
# Set correct environment variables.
ENV HOME /root

# Use baseimage-docker's init process.
CMD ["/sbin/my_init"]

# Update apt
RUN apt-get update

# Mecab
RUN curl -L -o mecab-0.996.tar.gz 'https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE'
RUN tar -xzf mecab-0.996.tar.gz
RUN cd mecab-0.996; ./configure --enable-utf8-only; make; make install; ldconfig

# Ipadic
RUN curl -L -o mecab-ipadic-2.7.0-20070801.tar.gz 'https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM'
RUN tar -xzf mecab-ipadic-2.7.0-20070801.tar.gz
RUN cd mecab-ipadic-2.7.0-20070801; ./configure --with-charset=utf8; make; make install
RUN echo "dicdir = /usr/local/lib/mecab/dic/ipadic" > /usr/local/etc/mecabrc

# FreeLing from source
# RUN apt-get -y install build-essential automake autoconf
# RUN apt-get -y install libboost-regex-dev libicu-dev zlib1g-dev
# RUN apt-get -y install libboost-system-dev libboost-program-options-dev libboost-thread-dev
# RUN curl -o freeling-3.1.tar.gz http://devel.cpl.upc.edu/freeling/downloads/32
# RUN tar -xvzf freeling-3.1.tar.gz
# RUN cd freeling-3.1.tar.gz/freeling-3.1; ./configure; make; make install
# ENV FREELINGSHARE /usr/local/share/freeling

# Ve
RUN git clone https://github.com/Kimtaro/ve.git
RUN cd /ve; gem install bundler; bundle install; gem build ve.gemspec; gem install ve-0.0.4.gem

# Start the server
EXPOSE 4567
RUN mkdir /etc/service/ve
ADD ve.sh /etc/service/ve/run

RUN echo `ls -la /usr/local/lib/`

# Clean up
RUN apt-get remove -y build-essential
RUN rm -rf mecab-0.996.tar.gz*
RUN rm -rf mecab-ipadic-2.7.0-20070801*
RUN rm -rf freeling-*

# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

from docker-ve-server.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.