Reputation: 1279
I have been watching videos on youtube about docker and how they work. I get the concept and I really like it. But I am not liking the idea of including my source code into the container due to the nature of the environment our code gets deployed into and some other mandated restrictions. By the way here is the link to the video
A couple of questions popped in my head while watching the video;
Is it possible to use docker without including the source code into the image? Maybe just copy the bin file into the image and do dotnet run within and still maintain a small docker image file?
Our clients are not in a cloud platform and is currently in a closed network for security purposes. Can I still deploy docker containers to them without having to connect to a repository? Like from an installer in a media (CD/USB)?
Our application is a microservice app that is written in .NET Core 2.1. Do we need to have to put each services into a container of their own?
Upvotes: 0
Views: 80
Reputation: 17485
It is completely possible to create image without including source code into it. Here there are two type of things you can do.
For registry there are following type.
On-Premise or Local.
That is up to you but it is great to have separate image and container for each web api. Lets assume in your case that you have two api that almost run together then you can deploy both. ( Even docker allow to expose multiple port so you don't have to worry)
Upvotes: 1
Reputation: 1158
Depends on your app, but should be possible.
You can create a local registry to store your images.
Each service should run in it's own container.
Upvotes: 0