medic / chis-interoperability

5 stars 1 forks source link

Cull services not needed on cop server #8

Closed mrjones-plip closed 3 years ago

mrjones-plip commented 3 years ago

Now that the @nsikak-e-akpakpan has deployed the cop server and it's working as expected - we should audit what services are running via all the containers. We should only run what is needed.

Here's the current output of docker ps:

root@ip-10-35-4-237:~# docker ps                                                                                                                                                          [56/1958]
CONTAINER ID   IMAGE                                         COMMAND                  CREATED        STATUS                         PORTS                              NAMES                                                                                                       
a7e51365892f   jembi/instantohie-mcsd-mock-services:v1.1.1   "docker-entrypoint.s…"   18 hours ago   Up 18 hours                    0.0.0.0:4000->4000/tcp                              mock-service                                                                                                                 
db14fde04fe7   jembi/openhim-mediator-mapping:v1.0.0         "docker-entrypoint.s…"   18 hours ago   Up 18 hours                    0.0.0.0:3003->3003/tcp                              mcsd-mediator                                                                                 
6792b5884bda   ihris/ihris                                   "docker-entrypoint.s…"   18 hours ago   Restarting (1) 3 seconds ago                              ihris                                                                                                                        
81e84a111c55   redis:alpine                                  "docker-entrypoint.s…"   18 hours ago   Up 18 hours                    6379/tcp                              healthworker_redis_1                                                                          
a629c8d0b256   docker.elastic.co/kibana/kibana:7.9.2         "/usr/local/bin/dumb…"   18 hours ago   Up 18 hours                    0.0.0.0:5601->5601/tcp                              kibana                                                                                              
a6da5182fac0   postgres                                      "docker-entrypoint.s…"   18 hours ago   Up 18 hours                    0.0.0.0:5432->5432/tcp                              healthworker_db_1                                                                                              
85634caf8975   redis                                         "docker-entrypoint.s…"   18 hours ago   Up 18 hours                    0.0.0.0:6379->6379/tcp                              redis-gofr                                                                                                                   
b8a741680315   intrahealth/opencr:9628aa9                    "/bin/sh -c 'dockeri…"   18 hours ago   Up 18 hours                    0.0.0.0:3004->3000/tcp                              opencr                                                                                        
e248522a3af9   intrahealth/elasticsearch:latest              "/usr/local/bin/dock…"   18 hours ago   Up 18 hours                    0.0.0.0:9200->9200/tcp, 9300/tcp                              es                                                                                            
57a99090f255   hapiproject/hapi:v5.2.1                       "catalina.sh run"        18 hours ago   Up 18 hours                    0.0.0.0:3447->8080/tcp                              hapi-fhir                                                                                     
f8b9740dcd4a   mongo:4.2                                     "docker-entrypoint.s…"   18 hours ago   Up 18 hours                    0.0.0.0:27017->27017/tcp                              mongo-1                                                                       
eb10570322e1   jembi/openhim-core:5                          "docker-entrypoint.s…"   18 hours ago   Up 18 hours                    0.0.0.0:5000-5001->5000-5001/tcp, 0.0.0.0:5050-5052->5050-5052/tcp, 0.0.0.0:8080->8080/tcp   openhim-core                                                                                                                 
c78c05aa1047   mysql:5.7                                     "docker-entrypoint.s…"   18 hours ago   Up 18 hours                    0.0.0.0:3306->3306/tcp, 33060/tcp                              hapi-mysql                                                                    
116eb366584d   jembi/openhim-console:1.14                    "/docker-entrypoint.…"   18 hours ago   Up 18 hours                    0.0.0.0:9000->80/tcp                              openhim-console                                                               
b7617447ed7a   mongo:4.2                                     "docker-entrypoint.s…"   18 hours ago   Up 18 hours                    27017/tcp                              mongo-3                                                                                                                      
92d40f4090d1   mongo:4.2                                     "docker-entrypoint.s…"   18 hours ago   Up 18 hours                    27017/tcp                              mongo-2    
mrjones-plip commented 3 years ago

After fixing number medic/chis-interoperability#6 , there's a LOT less services running to cull:

root@ip-10-35-4-237:~# docker ps
CONTAINER ID   IMAGE                        COMMAND                  CREATED       STATUS       PORTS                                                                                        NAMES
80017db02f9b   hapiproject/hapi:v5.2.1      "catalina.sh run"        5 hours ago   Up 5 hours   0.0.0.0:3447->8080/tcp                                                                       hapi-fhir
363ee937143b   mongo:4.2                    "docker-entrypoint.s…"   5 hours ago   Up 5 hours   0.0.0.0:27017->27017/tcp                                                                     mongo-1
cbd0c5b16d17   mysql:5.7                    "docker-entrypoint.s…"   5 hours ago   Up 5 hours   0.0.0.0:3306->3306/tcp, 33060/tcp                                                            hapi-mysql
2c6b1adea6d9   jembi/openhim-console:1.14   "/docker-entrypoint.…"   5 hours ago   Up 5 hours   0.0.0.0:9000->80/tcp                                                                         openhim-console
f0dc59480dce   jembi/openhim-core:5         "docker-entrypoint.s…"   5 hours ago   Up 5 hours   0.0.0.0:5000-5001->5000-5001/tcp, 0.0.0.0:5050-5052->5050-5052/tcp, 0.0.0.0:8080->8080/tcp   openhim-core
ba6673971043   mongo:4.2                    "docker-entrypoint.s…"   5 hours ago   Up 5 hours   27017/tcp                                                                                    mongo-2
5759deba3c99   mongo:4.2                    "docker-entrypoint.s…"   5 hours ago   Up 5 hours   27017/tcp                                                                                    mongo-3
mrjones-plip commented 3 years ago

While we've added another container when re-deploying the Instant OpenHIE in #6 , we're also no longer exposing a lot of services because we don't including the extrra dev yml file in our docker-compose up call. I think the 8 containers in the MVP for this project!

here's the docker ps output:

CONTAINER ID   IMAGE                        COMMAND                  CREATED        STATUS          PORTS                                                                                                                                                                     NAMES
25311fbbcc4f   hapiproject/hapi:v5.2.1      "catalina.sh run"        24 hours ago   Up 24 hours     8080/tcp                                                                                                                                                                  hapi-fhir
4170705ad1a2   nginx:latest                 "/docker-entrypoint.…"   24 hours ago   Up 24 hours     0.0.0.0:5002->5002/tcp, :::5002->5002/tcp, 80/tcp, 0.0.0.0:9001->9001/tcp, :::9001->9001/tcp                                                                              nginx-proxy
e09773683681   jembi/openhim-console:1.14   "/docker-entrypoint.…"   24 hours ago   Up 24 hours     80/tcp                                                                                                                                                                    openhim-console
f8cf27f4d682   jembi/openhim-core:5         "docker-entrypoint.s…"   24 hours ago   Up 20 minutes   0.0.0.0:5000-5001->5000-5001/tcp, :::5000-5001->5000-5001/tcp, 0.0.0.0:5050-5052->5050-5052/tcp, :::5050-5052->5050-5052/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp   openhim-core
c02a96962d4b   mysql:5.7                    "docker-entrypoint.s…"   24 hours ago   Up 24 hours     3306/tcp, 33060/tcp                                                                                                                                                       hapi-mysql
8da6786552cf   mongo:4.2                    "docker-entrypoint.s…"   24 hours ago   Up 24 hours     27017/tcp                                                                                                                                                                 mongo-2
f70681545611   mongo:4.2                    "docker-entrypoint.s…"   24 hours ago   Up 24 hours     27017/tcp                                                                                                                                                                 mongo-3
0a6b794b751f   mongo:4.2                    "docker-entrypoint.s…"   24 hours ago   Up 24 hours     27017/tcp                                                                                                                                                                 mongo-1

closing for now!