| 1 | Please read [[Docker HowTo Install]] before installing MRBS |
| 2 | |
| 3 | Tags: [[MRBS]] [[HowTo]] |
| 4 | |
| 5 | == Prerequisites if required |
| 6 | |
| 7 | '''Step 1 - Install Git''' |
| 8 | |
| 9 | {{{$ sudo apt-get update }}} |
| 10 | |
| 11 | {{{$ sudo apt-get install git }}} |
| 12 | |
| 13 | '''Step 2 - Install Docker''' |
| 14 | |
| 15 | [[Docker HowTo Install]] |
| 16 | |
| 17 | '''Step 3 - Install NGINX''' |
| 18 | |
| 19 | [[NGINX HowTo Install Using Docker]] |
| 20 | |
| 21 | == Install MRBS using Docker |
| 22 | |
| 23 | 1. On the host machine go to directory |
| 24 | |
| 25 | {{{cd /local/docker/<USER>/}}} |
| 26 | |
| 27 | 2. Go to this directory and checkout from docker_appointments |
| 28 | |
| 29 | {{{sudo git clone https://github.com/LCBRU/docker_appointments.git}}} |
| 30 | |
| 31 | {{{sudo chmod -R 777 docker_briccs_labels/}}} |
| 32 | |
| 33 | This will create a directory /local/docker/<USER>/docker_briccs_labels |
| 34 | |
| 35 | 3. To build the image : |
| 36 | |
| 37 | {{{sudo docker build -t lcbruit/appointments_install:v1.1 .}}} |
| 38 | |
| 39 | 4. To run the docker container : |
| 40 | |
| 41 | {{{sudo docker run -v /share:/share -itd -p 81:80 lcbruit/appointments_install:v1.1}}} |
| 42 | |
| 43 | 5. Test BRICCS Label Printing : |
| 44 | |
| 45 | {{{http://XXXXXXXXXXXXXX.xuhl-tr.nhs.uk:81}}} |
| 46 | |
| 47 | 6. If required amend to NGINX configuration, particularly /share/nginx.conf |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |