/sds-docker

SecSalud Dockerfiles to create images

Primary LanguageDockerfileBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

sds-docker

SecSalud Dockerfiles to create images

Build images

Take a look at README.md at folder images.

Testing

To test the system package locally, docker and docker-compose is required.

      apt install docker-compose

Run in the folder sds-docker

docker-compose up

And open in your browser the link: http://localhost. The full working application would appears directly there.

Microservices architecture

img

An architecture if virtualization based on containers was defined, where each module will be an independent container deployed as a multicontainer webapp in the Azure cloud.

Azure Deploy

Install azure cli

login

az login

set the right subscription

az account list --output table

az account set --subscription xxxxxx-yyyyy-zzzzzzz

create a plan (https://azure.microsoft.com/en-us/pricing/details/app-service/linux/)

az appservice plan create --name sdsAppServicePlan --resource-group RG-AEU-SDS-QA-OBSE --sku B3 --is-linux

Deploy the app

az webapp create --resource-group RG-AEU-SDS-QA-OBSE --plan sdsAppServicePlan --name sds-investigacion --multicontainer-config-type compose --multicontainer-config-file docker-compose.yml

NOTE:

It takes a while starting the service in azure, you can check at https://sds-investigacion.azurewebsites.net/app

Appendix

Some docker commands:

  • Be sure that the service is running → service docker start
  • Shut down all the docker services before a new docker-compose up → docker-compose down
  • List images → docker images
  • Delete image → docker image rm [IMAGE ID]