Open Crupuk opened 4 years ago
And if I try with the latest version I got this error :
$ sudo podman run --name wreeto -p 8383:80 -e POSTGRES_USER=wreeto -e POSTGRES_PASSWORD=xxxxxx -e POSTGRES_HOST=10.88.0.19 -e POSTGRES_DB=wreeto -e RAILS_ENV=production -e RACK_ENV=production -e REDIS_HOST=10.88.0.20 -e WREETO_HOST=notes.ndd.com -e WREETO_PORT=8383 -e RAILS_MASTER_KEY=f21ab619787e22f6cb13d3884ca20d78 docker.io/chrisvel/wreeto:latest
Trying to pull docker.io/chrisvel/wreeto:latest...
Getting image source signatures
Copying blob 4dd8a1ae7c56 done
Copying blob 188c0c94c7c5 done
Copying blob 8b9bdda967f5 done
Copying blob dcff69af93dc done
Copying blob ba0772c8cbe1 done
Copying blob 1266e9897dbc done
Copying blob 341f42d4336d done
Copying blob c15060a315bb done
Copying blob 37ce0626eacb done
Copying blob b3f0fcb11fb6 done
Copying blob b1968c811809 done
Copying blob 77ca94beb58c done
Copying blob 7e18e9785e57 done
Copying blob 3148def3ff86 done
Copying blob a68a0beb968f done
Copying config 28e84eef6b done
Writing manifest to image destination
Storing signatures
== 20201012113301 ReplaceCategorySlugs: migrating =============================
== 20201012113301 ReplaceCategorySlugs: migrated (0.0064s) ====================
bundler: exec needs a command to run
And same error with the 2.6.4 :
bundler: exec needs a command to run
Hi @Crupuk,
I guess this happens because of the /docker-entrypoint.sh
script. I don't have a solution for you right now, it needs a little bit of research first. Why don't you use the docker-compose file? Isn't something equivalent in podman?
Hi @chrisvel thx for your fast reply.
No there isn't a replacement for that :-( And it's not a option to remove podman and use docker ( I have > 20 podman running for the moment )
Do you think you will work on this or not ? ( to know if a wait a little bit for a solution, or if I need to find a workaround / replacement )
Thanks for this great project !
@Crupuk yes, I will try to find a solution for this. I believe I can move the functionality of the shell script to the app itself. I'll keep you posted.
@Crupuk can you please remove the last line from the Dockerfile
https://github.com/chrisvel/wreeto_official/blob/c463075f33ab8965786907f77b0fb866b347c990/Dockerfile#L50 ?
Then build the docker image locally with docker build .
and run the following commands with podman in the image:
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed
I don't know how this is possible in podman, I guess something similar to docker like podman run ...
while the container has been built and is up ?
Hello @chrisvel ,
Thanks for your help, even if I try to execute this command it failed because "Podman" handle entrypoint differently :
sudo podman run -e POSTGRES_USER=wreeto -e POSTGRES_PASSWORD=xxxxxx -e POSTGRES_HOST=10.88.0.19 -e POSTGRES_DB=wreeto -e RACK_ENV=production -e RAILS_ENV=production -e REDIS_HOST=10.88.0.20 -e WREETO_HOST=notes.ndd.come -e WREETO_PORT=8383 -e RAILS_MASTER_KEY=xxxxxx -it wreeto sh "bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rake db:seed"
sh: can't open 'bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rake db:seed': No such file or directory
Also try with "cd /app/wreeto" but Podman doesn't like that...
@Crupuk I am working on including the entrypoint script's commands in the Dockerfile but it will need a little bit more time and effort.
It's definitely something that will help others as well, especially people that are using NAS devices to upload a Dockerfile instead of a docker-compose one.
If you want to hang on a bit more, it's a WIP.
Thx :-p , no problem I will wait :-D
Hi,
On CentOs, docker has been replaced with podman .
I have many docker image ( > 20 ) from docker.io that run fine with podman.
But when I try to install wreeto I got this error message :
And the log :
I don't know Rails, and my only experience was to install Redmine :-( .
Thanks for your help