Introduce Docker
docker-compose build docker-compose up docker-compose run brainportal rake db:create
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)
Same failure with Ubuntu 16 laptop
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.
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
Yes, now I do. Thanks!
This doesn't work. There are no places where the configuration for the servers are made:
- the config_portal.rb (or config_bourreau.rb) is not properly poluated with a name
- 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?
No activity and no fixes, closing.