DigitalState / Platform

The DigitalState Platform
MIT License
40 stars 20 forks source link

@Weglarz #76

Closed Weglarz closed 4 years ago

Weglarz commented 5 years ago

@Weglarz If you want to install a DEV environment with the release 0.15.0 code, you will need to either: 1) Create a custom Ansible inventory (advanced) or 2) Edit the already-made DEV Ansible inventory to make it point from the develop branch to the release/0.15.0 branch (easy).

I suggest option 2.

Simply edit this line https://github.com/DigitalState/Platform/blob/release/0.15.0/platform/ansible/env/dev/vars/app/assets.yml#L5 , replacing develop with release/0.15.0

This needs to be done in that directory for each microservice files listed below:

assets.yml
authentication.yml
cases.yml
cms.yml
core.yml
discovery.yml
formio.yml
forms.yml
identities.yml
microservice.yml
proxy.yml
records.yml
services.yml
tasks.yml
tenants.yml
workflow.yml

The issue you are getting is due to using the Platform 0.15.0 branch with microservices in develop branches. Platform develop works with microservices in develop branches, Platform 0.15.0 works with microservices in 0.15.0 branch.

Once the release is merged to develop, then you'll be able to use the DEV Ansible environment as-is without needing to modify versions. However, the DEV environment is mostly used by developers who is further developing the code.

Also note that you will need to clean your docker environment because currently, your server most likely cached the develop based docker images for all the microservices.

Originally posted by @marioprudhomme in https://github.com/DigitalState/Platform/issues/70#issuecomment-463589227

Weglarz commented 5 years ago

@marioprudhomme

Thank you for information, but I have more question:

  1. I want to evaluate DigitalState Platform for using in eHealth systems and I chose the following path evaluation with installation on-promise in my local environment described under url:

https://github.com/DigitalState/Guide/blob/master/deployments.md#on-premise

I use the following steps:

a) Install Git and Docker on your local machine : Linux Ubuntu 18.4

b) Download the platform repository:

cd C:\Users\Demo git clone https://github.com/DigitalState/Platform.git cd Platform git checkout tags/0.15.0 c) Boot the platform container docker-compose up -d d) Enter the platform container console docker exec -it platform /bin/sh cd /etc/ansible/env/dev e) Run the install playbook using Ansible ansible-playbook ./install.yml

My question is a) I chose good path for evaluation? b) After edition: https://github.com/DigitalState/Platform/blob/release/0.15.0/platform/ansible/env/dev/vars/app/assets.yml#L5 , replacing develop with release/0.15.0 for all modules

how can I verify that it was done?

b) filtering tag is now: git checkout tags/0.15.0

I will very grateful for support me.

Best Regards Władysław Węglarz Telemedis