decidim / docker

Docker images for decidim
https://decidim.org
12 stars 18 forks source link

I can't generate a new project #89

Closed carlesaguilar closed 2 years ago

carlesaguilar commented 3 years ago

Hello, i'm trying to generate a new decidim project using this commands but i can't do it.

APP_NAME=HelloWorld
IMAGE=ghcr.io/decidim/decidim-generator:latest
docker run -it -v "$(pwd):/code" ${IMAGE} ${APP_NAME}

and the response is:

docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "HelloWorld": executable file not found in $PATH: unknown.
ERRO[0001] error waiting for container: context canceled

Can you help me to solve it? Thanks!

andreslucena commented 3 years ago

I can confirm that this is also happening in my machine. I think there's a missing decidim here, please try it like this:

APP_NAME=HelloWorld
IMAGE=ghcr.io/decidim/decidim-generator:latest
docker run -it -v "$(pwd):/code" ${IMAGE} decidim ${APP_NAME}
carlesaguilar commented 3 years ago

Thanks for help, now the command works but it shows another error when creates a Decidim project:

Fetching source index from https://rubygems.org/

**Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/

Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/

Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/

Could not fetch specs from https://rubygems.org/**
        gsub  config/boot.rb
      append  .gitignore
      remove  public/404.html
      remove  public/500.html
      create  config/initializers/decidim.rb
       route  mount Decidim::Core::Engine => '/'
      append  db/seeds.rb
      create  config/initializers/carrierwave.rb
      create  config/initializers/social_share_button.rb
      create  config/secrets.yml
      remove  app/views/layouts/application.html.erb
      remove  app/views/layouts/mailer.text.erb
      append  app/assets/javascripts/application.js
        gsub  app/assets/javascripts/application.js
      insert  app/assets/stylesheets/application.css
      create  app/assets/stylesheets/decidim.scss
      insert  config/environments/development.rb
      insert  config/environments/test.rb
        gsub  config/environments/production.rb
      insert  config/environments/production.rb
Could not find gem 'decidim-dev (= 0.24.0.rc1)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
andreslucena commented 3 years ago

Oh, I cannot reproduce the last one actually...

Which docker version are you using? (docker --version) What is your Operating System?

carlesaguilar commented 3 years ago

Docker version 20.10.7, build 20.10.7-0ubuntu5~20.04.2

carlesaguilar commented 3 years ago

Hello again, finally i generate a decidim project using a Debian distribution, the project it seems generated correctly but when i start the generated project executing docker-compose up i get this error:

error: database is uninitialized and superuser password is not specified. You must specify POSTGRES_PASSWORD to a non-empty value for the superuser.

More info on this screenshot: https://drive.google.com/file/d/1s-KrYTSiDxpJ6zHiGJOqGxATx8QcKOFy/view?usp=sharing

can you help me? thanks.