Better HN
topnewbestaskshowjobs
Log inSign up

summerborn

1 karma · joined Sep 19, 2021 (5y ago) · 12 submissions

Submissions

comment 5y ago · link · parent

OK. Looks like I did not make my question clear, sir. Here is the thing: 1. I have a huge monorepo for the backend, written in NodeJS and Express. I have used Bitbucket (Git) for VC. Inside that monorepo, there are 5 application drivers. Those drivers perform their own unique tasks. i. Validator - validates txs ii. writer, etc. You probably got it I'm sure.

Now, I have written the CI/CD pipe already. I have a private Docker Hub repo. There in, I have pushed that entire monorepo from Bitbucket. The bitbucket-pipelines.yml file is written for the whole monorepo and not for individual applications drivers that I mentioned above. Now, there is Docker Image for that entire repo. The thing is, in the private Docker Hub repo, I want to store them as separate images - inside that single repo, because right now, I can't separately access them. Those 5 of them I mean. However, I can't separate those drivers as micro-services of their own ( I mean in separate repo because they share NGINX, mongodb, logdna, etc).

My question is: 1. Is it possible | logical to write 'Dockerfile' inside each application driver and would that suffice me to see them as separate images inside the Docker Hub repo? 2. Or is there any other way I could do it? 3. Can I use docker-compose.yml file which is available for the monorepo as a whole to connect those drivers ( using the Dockerfile inside each of them?)

Thank You.

comment 5y ago · link · parent

Does each of those drivers/sub-directory applications require their own Dockerfile first?

comment 5y ago · link · parent

Well, I hope to use each of those images from sub directory as a Kubernetes container.

4.

Push Docker image from specific sub-directory

3 points · by summerborn · 5y ago · 6 comments