Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create container for service ve_server: No command specified #2

Open
e-e opened this issue Aug 11, 2020 · 1 comment
Open

Cannot create container for service ve_server: No command specified #2

e-e opened this issue Aug 11, 2020 · 1 comment

Comments

@e-e
Copy link

e-e commented Aug 11, 2020

In my docker-compose.yml I have this as a service like:

ve_server:
    image: kimtaro/ve-server:latest
    networks:
      - app_backend
    ports:
      - "4567:4567"
    restart: always

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?

@Kimtaro
Copy link
Owner

Kimtaro commented Sep 6, 2020

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/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants