jamesrwhite / minicron

🕰️ Monitor your cron jobs
GNU General Public License v3.0
2.34k stars 154 forks source link

Error with docker #188

Closed 1giba closed 8 years ago

1giba commented 8 years ago

I cloned the repository and installed with docker, but I got the error:

$ docker exec e132c2ac1720 minicron server start
/minicron-0.8.4-linux-x86_64/minicron: line 16: /opt/minicron/lib/ruby/bin/ruby: No such file or directory

Any idea?

gabrielpedepera commented 8 years ago

Hey @gjunior-tray , I had the same problem ..

I performed the following steps to start service:

$ docker exec -i -t ​*container_hash*​ bash
$ cp -r minicron-0.8.4-linux-x86_64 /opt/minicron
$ cd /opt/minicron
$ minicron db setup
$ exit
$ docker exec ​*container_hash*​ minicron server start

access via IP over port 9292

Ex.: http://docker-ip:9292/

And Works !!

I imagine there must be some problem in the script, but these steps resolved for at least to start service.. =]

1giba commented 8 years ago

Woowwwww, tks!!!

Please, close the bug!

jamesrwhite commented 8 years ago

Yeah the Dockerfile is quite broken :( It needs to run the install script to move things into the right places. I'll sort this out as soon as I can.

jamesrwhite commented 8 years ago

Does the jamesrwhite/minicron:0.8.4 image work for you guys?

docker pull jamesrwhite/minicron:0.8.4 && docker exec -it $(docker run -d jamesrwhite/minicron:0.8.4) minicron
gabrielpedepera commented 8 years ago

@jamesrwhite here works !! :+1:

jamesrwhite commented 8 years ago

Thanks! Going to close this then :)