You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, running docker-compose up results in Cannot create container for service ve_server: No command specified Is this a dockerfile / docker-compose version issue?
The text was updated successfully, but these errors were encountered:
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/*
In my
docker-compose.yml
I have this as a service like:However, running
docker-compose up
results inCannot create container for service ve_server: No command specified
Is this a dockerfile / docker-compose version issue?The text was updated successfully, but these errors were encountered: