cbrain icon indicating copy to clipboard operation
cbrain copied to clipboard

Introduce Docker

Open dlq opened this issue 4 years ago • 7 comments

dlq avatar Jun 28 '21 17:06 dlq

docker-compose build docker-compose up docker-compose run brainportal rake db:create

dlq avatar Jun 28 '21 17:06 dlq

I failed to build docker from Dockerfile, but docker-compose build works (from a ubuntu vagrant). Regretfully it fails and exits. May be will try latter in a different environment

vagrant@vagrant:~/cbrdoc$ sudo docker-compose run brainportal rake db:create
Starting cbrdoc_db_1 ... done
rake aborted!
LoadError: Could not open library 'sodium': sodium: cannot open shared object file: No such file or directory.
Could not open library 'libsodium.so': libsodium.so: cannot open shared object file: No such file or directory.
Could not open library 'libsodium.so.18': libsodium.so.18: cannot open shared object file: No such file or directory.
Could not open library 'libsodium.so.23': libsodium.so.23: cannot open shared object file: No such file or directory
/usr/local/bundle/gems/ffi-1.15.3/lib/ffi/library.rb:145:in `block in ffi_lib'
/usr/local/bundle/gems/ffi-1.15.3/lib/ffi/library.rb:99:in `map'
/usr/local/bundle/gems/ffi-1.15.3/lib/ffi/library.rb:99:in `ffi_lib'
/usr/local/bundle/gems/rbnacl-7.1.1/lib/rbnacl/sodium.rb:11:in `extended'
/usr/local/bundle/gems/rbnacl-7.1.1/lib/rbnacl/sodium/version.rb:14:in `extend'
/usr/local/bundle/gems/rbnacl-7.1.1/lib/rbnacl/sodium/version.rb:14:in `<module:Version>'
/usr/local/bundle/gems/rbnacl-7.1.1/lib/rbnacl/sodium/version.rb:9:in `<module:Sodium>'
/usr/local/bundle/gems/rbnacl-7.1.1/lib/rbnacl/sodium/version.rb:7:in `<module:RbNaCl>'
/usr/local/bundle/gems/rbnacl-7.1.1/lib/rbnacl/sodium/version.rb:6:in `<top (required)>'
/usr/local/bundle/gems/rbnacl-7.1.1/lib/rbnacl.rb:12:in `require'
/usr/local/bundle/gems/rbnacl-7.1.1/lib/rbnacl.rb:12:in `<top (required)>'
/BrainPortal/config/application.rb:7:in `<top (required)>'
/BrainPortal/Rakefile:4:in `require_relative'
/BrainPortal/Rakefile:4:in `<top (required)>'
/usr/local/bundle/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)

MontrealSergiy avatar Jun 28 '21 20:06 MontrealSergiy

Same failure with Ubuntu 16 laptop

MontrealSergiy avatar Jun 28 '21 23:06 MontrealSergiy

Hmm. Do you have any outputs that I can see?

Darcy

On Jun 28, 2021, at 19:41, Serge @.***> wrote:

Same failure with Ubuntu 16 laptop

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aces/cbrain/pull/1140#issuecomment-870119097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA6NFDSINNWVDXPI2A7EWTTVECENANCNFSM47OLPKZQ.

dlq avatar Jun 29 '21 16:06 dlq

Hmm. Do you have any outputs that I can see? Darcy

Do you see the stack trace in the above comment https://github.com/aces/cbrain/pull/1140#issuecomment-869994201

MontrealSergiy avatar Jun 29 '21 17:06 MontrealSergiy

Yes, now I do. Thanks!

dlq avatar Jun 29 '21 17:06 dlq

This doesn't work. There are no places where the configuration for the servers are made:

  1. the config_portal.rb (or config_bourreau.rb) is not properly poluated with a name
  2. the database.yml is never configured

I also don't understand what the PR is supposed to be about anyway. Provide a developement environement for a developer? A production CBRAIN portal? What?

If the first, how is the developer supposed to be able to edit CBRAIN's code base and see what effect they have on the server?

prioux avatar Dec 09 '21 17:12 prioux

No activity and no fixes, closing.

prioux avatar Oct 03 '22 20:10 prioux