You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project on github that has 7 microservices. Right now I can create a container by doing this:
mvn mn:dockerfile -Dpackaging=docker
Which, as expected, creates the docker file in ./target -
The problem that I have is that it doesn't expose all the ports that I'd use for incoming or outgoing traffic. The project does expose 8080, but I can't figure out how to configure the build to add more properties to the Dockerfile that's generated.
So for now, I'm going to edit it manually and save it. But is there a way where I wouldn't have to edit the file and can add some config that would be picked up by the above command?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I'm new to making containers via micronaut.
I have a project on github that has 7 microservices. Right now I can create a container by doing this:
mvn mn:dockerfile -Dpackaging=docker
Which, as expected, creates the docker file in ./target -
The problem that I have is that it doesn't expose all the ports that I'd use for incoming or outgoing traffic. The project does expose 8080, but I can't figure out how to configure the build to add more properties to the Dockerfile that's generated.
So for now, I'm going to edit it manually and save it. But is there a way where I wouldn't have to edit the file and can add some config that would be picked up by the above command?
Thanks ahead of time
Kristian
Beta Was this translation helpful? Give feedback.
All reactions