Contents

Install Dory on Ubuntu

Dory is one of optional requirement to run canvas.

What' Dory?

Dory builds local DNS and reverse proxy. Dory enables user to access over domain name address like http:// .


Environment

Ubuntu 18.04.5 LTS

1
2
3
4
5
6
$  lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic

Install

Instruction is at github.

Warning
Using sudo for gem install dory worked once, but it brought error on canvas installation for some authorization error. So, I gem uninstall dory and did below procedure.

Activate rbenv for ruby 2.6.6

See Install canvas lms - ruby

** Following process is done by ruby 2.6.6 on rbenv. **

Install Dory

1
$ gem install dory
1
2
$ dory version
Dory - Version: 1.1.1

Run/stop dory

I just did dory up at canvas directory that has docker-compose.yml. However, it might be useless as I did not configure VIRTUAL_PORT on docker-compose.yml at this point. In detail, see instruction

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
$ dory up
...
29402ea62349): Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use.
You have some systemd services running that will race against us 
to bind to port 53 (and usually they win):

     NetworkManager.service, systemd-resolved.service

If we don't stop these services temporarily while putting up the 
dnsmasq container, starting it will likely fail.
Would you like me to put them down while we start dns 
(I'll put them back up when finished)? (Y/N): Y
...
Successfully started dnsmasq
Requesting sudo to write to /etc/resolv.conf
Successfully configured local resolved

Stop dory

1
$ dory down

References