Hello!

During the initial Fineract devops meeting there was a proposition to
create a Dockerfile into each of the fineract-cn-* repositories (first step
towards publishing imgaes into Docker Hub)

I plan to get those files created but I would request some help from the
community about how exactly the files should look like. I know Courage has
files for most of the services here:
https://github.com/openMF/fineract-cn-containers but they require
modifications.

To reduce the scope my initial plan was to start with a bare minimum.
Recently Vishwas added (
https://github.com/apache/fineract-cn-demo-server/pull/25) for demo server
a new flag -Ddemoserver.lite , which when set to true restricts the working
set of micro-services to Provisioner, Identity, Rhythm, Organization and
Customer. So my plan is to first create Dockerfile-s for the same services
and create a pull request for each of them.

To get started I created initial files for the first two:
https://github.com/aasaru/fineract-cn-provisioner/blob/dockerfile/Dockerfile
https://github.com/aasaru/fineract-cn-identity/blob/dockerfile/Dockerfile

And in order to make it dead simple to follow, I propose launching required
supporting services also via running docker images from Docker Hub. This is
what I have this far:

docker run --name=cassandra-for-min-fineract-cn -p9042:9042 cassandra:3.11
docker run --name=mysql-for-min-fineract-cn -p3306:3306 -e
MYSQL_ROOT_HOST=% -e MYSQL_ROOT_PASSWORD=mysql -d mysql/mysql-server:5.7
docker run -p8761:8761 --name=eureka-for-min-fineract-cn
springcloud/eureka:latest

And the building and running of the services (in their respective
directories) looks like this:

docker build -t fineract-cn-provisioner .
docker run -p2020:2020 fineract-cn-provisioner:latest

docker build -t fineract-cn-identity .
docker run -p2021:2021 fineract-cn-identity:latest

Currently, I have run into a problem that Eureka doesn't see Identity
service. Also I had to include private keys in Dockerfile. So I would
welcome any feedback from the community about the format of Dockerfiles
especially from those who have already created the Dockerfiles by
themselves.

Kind regards
Juhan Aasaru

Reply via email to