IcaliaLabs / alpha

Craft your own web-based chatbot
MIT License
138 stars 76 forks source link

Issue with Docker, can't get started #18

Closed enric1994 closed 6 years ago

enric1994 commented 6 years ago

Hey!

I followed up the Docker Development guide:

  1. git clone https://github.com/IcaliaLabs/alpha.git
  2. cd alpha
  3. But I get this error when composing up the container: docker-compose up web
    Starting alpha_web_1 ... done
    Attaching to alpha_web_1
    yarn start v0.21.3
    $ cross-env NODE_ENV=development node server 
    web_1  | sh: 1: cross-env: not found
    error Command failed with exit code 127.
    alpha_web_1 exited with code 1

Thanks!

CharlieIGG commented 6 years ago

@enric1994 try running the following:

  1. docker-compose run web bash
  2. yarn install
  3. exit
  4. docker-compose up web

Let me know if that works for you.

enric1994 commented 6 years ago

@CharlieIGG it works, ty! But I don't understand why. The dev.Dockerfile also includes the command RUN yarn install

How can this "issue" be corrected? I want to start my container using docker-compose up -d and avoid jumping inside the container to install yarn every time.

gchristov commented 6 years ago

Having the exact same issue over here - fresh docker install and clone of the repo. The suggested workaround works. Any idea how to get it working without having to access the container every time?

CharlieIGG commented 6 years ago

@kurenn think you could take a look at this issue?

kurenn commented 6 years ago

I can take a look at it, and see if I can persist the yarn dependencies on image build

kurenn commented 6 years ago

I manage to solve on #21 please let us know if that works for you as well

enric1994 commented 6 years ago

Thanks @kurenn !

Closing