You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.4 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. # Doccano Offline Deployment
  2. ## Use Case
  3. These offline deployment scripts are suited for deploying Doccano on an air gapped Ubuntu 18.04/20.04 virtual machine (VM 2) with no internet connectivity (such as in clinical environments).
  4. The preparation requires another machine (VM 1) with internet access and `docker`/`docker-compose` preinstalled (with $USER in `docker` group) and running the same Ubuntu distribution as VM 2.
  5. The focus is primarily on the `docker-compose`-based production deployment.
  6. The files mentioned in this document are located in the `tools/offline_deployment/` directory.
  7. ## Setup Steps
  8. Run the following steps on VM 1:
  9. 1. Clone this repository
  10. 2. Run the scripts `offline_01_*.sh` in ascending order
  11. Skip OR modify and run the script `offline_01_1-optional_use_https`
  12. Do NOT run these scripts as `sudo`! The scripts will ask for sudo-permissions when it is needed.
  13. Now, move over to VM 2
  14. 3. Copy the repository folder from VM 1 to VM 2
  15. 4. Run the scripts `offline_02_*.sh` in ascending order
  16. Do NOT run these scripts as `sudo`! The scripts will ask for sudo-permissions when it is needed.
  17. 5. Make minor changes on `docker-compose.prod.yml` to change the admin credentials
  18. 6. Run `docker-compose -f docker-compose.prod.yml up` in the repository root directory or use the script `offline_03_*.sh`
  19. ## Remarks
  20. The setup was tested on Ubuntu 18.04 machines.