60 | | == Upgrade Redcap |
| 64 | == Upgrade Redcap using Docker |
| 65 | |
| 66 | Go to your home directory and checkout from git docker_redcap_upgrade |
| 67 | |
| 68 | {{{sudo git clone https://github.com/LCBRU/docker_redcap_upgrade}}} |
| 69 | |
| 70 | This will create a directory /home/<USER>/docker_redcap_upgrade |
| 71 | |
| 72 | This docker script upgrades an existing redcap installation. |
| 73 | |
| 74 | The first step is to zip the existing redcap installation, this could be either |
| 75 | |
| 76 | 1. The directory /var/www/redcap on a virtual machine. |
| 77 | |
| 78 | {{{cd /var/www/redcap}}} |
| 79 | {{{sudo zip -r redcap_v5.7.0.zip *}}} |
| 80 | |
| 81 | Move this file into /home/<USER>/docker_redcap_upgrade |
| 82 | |
| 83 | 2. The directory /var/www/redcap within a running Docker container. |
| 84 | |
| 85 | Connect to existing docker container using |
| 86 | |
| 87 | {{{sudo docker exec -i -t <CONTAINERID> /bin/bash}}} |
| 88 | {{{cd /var/www/redcap}}} |
| 89 | {{{sudo zip -r redcap_v5.7.0.zip *}}} |
| 90 | {{{sudo mv redcap_v5.7.0.zip /share/ |
| 91 | {{{exit}}} |
| 92 | |
| 93 | redcap_v5.7.0.zip should now be available on the host machine. In the directory /share/ |
| 94 | |
| 95 | Move this file into /home/<USER>/docker_redcap_upgrade |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | {{{sudo docker build -t lcbruit/redcap_fresh:v6.16.6 .}}} |
| 104 | |
| 105 | {{{sudo docker run -v /share:/share -itd -p 80:80 lcbruit/redcap_fresh:v6.16.6}}} |
| 106 | |
| 107 | {{{sudo docker exec -i -t cbd3b580bd1b /bin/bash}}} |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |