telus-agcg / nib

A Docker Compose wrapper geared towards Ruby/Rails development with a focus on: convention, convenience and productivity.
MIT License
15 stars 3 forks source link

`run` command does not default to `CMD` #127

Closed johnallen3d closed 7 years ago

johnallen3d commented 7 years ago

For example:

Dockerfile

FROM ruby
CMD irb

docker-compose native

$ docker-compose run app
IRB >

nib currently

$ docker-compose run app
# container immediately exists

nib workaround

$ docker-compose run app irb
IRB >

This is regression is a result of introducing history to the run command (fc1b9dde0b7664a07d047e5ce0a248edebe474dd). As it is currently implemented the History module is executing a script at container start and then expecting a command to be passed in.