[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: NodeJS startup

Hi Gary,

Either you have that baked into your Docker image (entrypoint and/or cmd), or you can overwrite that in your deployment config:

$ oc edit dc <NAME_OF_DC>

And change the .spec.template.spec.containers, below `image` add `command` with the command you'd like to run.

The YAML will look like this: http://kubernetes.io/v1.1/docs/user-guide/configuring-containers.html#launching-a-container-using-a-configuration-file.

What I would recommend though is to use Source-To-Image to build your NodeJS container, as that will take care of creating Docker images for you that should just work without changes.

On Fri, Nov 20, 2015 at 5:15 PM, Gary Franczyk <Gary Franczyk availity com> wrote:
I have our first nodejs deployment that starts a pod, but the app does not start within it.  How do I define what to start up when the pod starts?


Gary Franczyk
Senior Unix Administrator, Infrastructure

Availity | 10752 Deerwood Park Blvd S. Ste 110, Jacksonville FL 32256
W 904.470.4953 | M 561.313.2866

Gary Franczyk availity com

The information contained in this e-mail may be privileged and confidential under applicable law. It is intended solely for the use of the person or firm named above. If the reader of this e-mail is not the intended recipient, please notify us immediately by returning the e-mail to the originating e-mail address. Availity, LLC is not responsible for errors or omissions in this e-mail message. Any personal comments made in this e-mail do not reflect the views of Availity, LLC.

users mailing list
users lists openshift redhat com

Rodolfo Carvalho

OpenShift Developer Experience

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]