OpenShift Container Platform 4.5 Applications Object Description BuildConfig A  BuildConfig  object is created for each source repository that is specified in the command line. The  BuildConfig  object specifies the strategy to use, the source location, and the build output location. ImageStreams For the  BuildConfig  object, two image streams are usually created. One represents the input image. With source builds, this is the builder image. With  Docker  builds, this is the  FROM  image. The second one represents the output image. If a container image was specified as input to  new-app , then an image stream is created for that image as well. DeploymentCon fig A  DeploymentConfig  object is created either to deploy the output of a build, or a specified image. The  new-app  command creates  emptyDir  volumes for all Docker volumes that are specified in containers included in the resulting  DeploymentConfig object . Service The  new-app  command attempts to detect exposed ports in input images. It uses the lowest numeric exposed port to generate a service that exposes that port. In order to expose a different port, after  new-app  has completed, simply use the  oc expose command to generate additional services. Other Other objects can be generated when instantiating templates, according to the template. 2.3.4.1. Specifying environment variables When generating applications from a template, source, or an image, you can use the  -e|--env  argument to pass environment variables to the application container at run time: $ oc new-app openshift/postgresql-92-centos7 \ -e POSTGRESQL_USER=user \ -e POSTGRESQL_DATABASE=db \ -e POSTGRESQL_PASSWORD=password The variables can also be read from file using the  --env-file  argument. The following is an example file called  postgresql.env : POSTGRESQL_USER=user POSTGRESQL_DATABASE=db POSTGRESQL_PASSWORD=password Read the variables from the file: $ oc new-app openshift/postgresql-92-centos7 --env-file=postgresql.env Additionally, environment variables can be given on standard input by using  --env-file=- : $ cat postgresql.env | oc new-app openshift/postgresql-92-centos7 --env-file=- 26