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
At this moment, the image definitions are rendered in starting stages of Stevedore, then it is not possible to use the variables that are passed through the CLI when you render the image definition. Those variables are only available in the Dockerfile.
Imagine your applications are managed in a standardized way, and you can build all of the using only one Dockerfile and one image definition.
The apps folder contains your application's code. Since the images for those applications can be built in the same way, you get the most out of the feature that allows you to merge build context, therefore, you define a Dockerfile in the build folder which can be used to build the image for any of those applications.
Owing that your applications are being managed in a standardized way, you should be able to have only one image definition, a definition like the following one:
As you can see in the build context you would need to use something like - path: "apps/{{ .Vars.app_name }}" which will allow you to choose the source of your application's code at build time, and choose the app_name when you build the image.
At this moment, the image definitions are rendered in starting stages of Stevedore, then it is not possible to use the variables that are passed through the CLI when you render the image definition. Those variables are only available in the Dockerfile.
Imagine your applications are managed in a standardized way, and you can build all of the using only one Dockerfile and one image definition.
You have the following structure:
The
apps
folder contains your application's code. Since the images for those applications can be built in the same way, you get the most out of the feature that allows you to merge build context, therefore, you define a Dockerfile in thebuild
folder which can be used to build the image for any of those applications.Owing that your applications are being managed in a standardized way, you should be able to have only one image definition, a definition like the following one:
As you can see in the build context you would need to use something like
- path: "apps/{{ .Vars.app_name }}"
which will allow you to choose the source of your application's code at build time, and choose theapp_name
when you build the image.The text was updated successfully, but these errors were encountered: