Skip to content

Commit

Permalink
rename odo-supervisord-image to odo-init-image
Browse files Browse the repository at this point in the history
  • Loading branch information
kadel committed Aug 21, 2019
1 parent a27225d commit eaffb43
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/development.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ For quick deployment of components, odo uses the link:https://github.com/ochinch
Supervisord is deployed via link:https://docs.openshift.com/container-platform/4.1/nodes/containers/nodes-containers-init.html[Init Container] image.

`ODO_BOOTSTRAPPER_IMAGE` is an environmental variable which specifies the Init Container image used for Supervisord deployment. You can modify the value of the variable to use a custom Init Container image.
The default Init Container image is `quay.io/openshiftdo/supervisord:0.6.0`
The default Init Container image is `quay.io/openshiftdo/init-image:0.6.0`

. To set a custom Init Container image, run:
+
Expand Down
2 changes: 1 addition & 1 deletion pkg/component/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ func PushLocal(client *occlient.Client, componentName string, applicationName st

err = client.ExecCMDInContainer(pod.Name,
// We will use the assemble-and-restart script located within the supervisord container we've created
[]string{"/var/lib/supervisord/bin/assemble-and-restart"},
[]string{"/opt/odo/bin/assemble-and-restart"},
pipeWriter, pipeWriter, nil, false)

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/occlient/occlient.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const (

// Default Image that will be used containing the supervisord binary and assembly scripts
// use getBoostrapperImage() function instead of this variable
defaultBootstrapperImage = "quay.io/openshiftdo/supervisord:0.8.0"
defaultBootstrapperImage = "quay.io/openshiftdo/init-image:0.8.0"
// ENV variable to overwrite image used to bootstrap SupervisorD in S2I builder Image
bootstrapperImageEnvName = "ODO_BOOTSTRAPPER_IMAGE"

Expand Down
14 changes: 7 additions & 7 deletions pkg/occlient/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,20 @@ func generateSupervisordDeploymentConfig(commonObjectMeta metav1.ObjectMeta, com
Ports: commonImageMeta.Ports,
// Run the actual supervisord binary that has been mounted into the container
Command: []string{
"/var/lib/supervisord/bin/dumb-init",
"/opt/odo/bin/dumb-init",
"--",
},
// Using the appropriate configuration file that contains the "run" script for the component.
// either from: /usr/libexec/s2i/assemble or /opt/app-root/src/.s2i/bin/assemble
Args: []string{
"/var/lib/supervisord/bin/supervisord",
"/opt/odo/bin/supervisord",
"-c",
"/var/lib/supervisord/conf/supervisor.conf",
"/opt/odo/conf/supervisor.conf",
},
VolumeMounts: []corev1.VolumeMount{
{
Name: supervisordVolumeName,
MountPath: "/var/lib/supervisord",
MountPath: "/opt/odo/",
},
},
Env: envVar,
Expand Down Expand Up @@ -415,16 +415,16 @@ func addBootstrapSupervisordInitContainer(dc *appsv1.DeploymentConfig, dcName st
VolumeMounts: []corev1.VolumeMount{
{
Name: supervisordVolumeName,
MountPath: "/var/lib/supervisord",
MountPath: "/opt/odo/",
},
},
Command: []string{
"/usr/bin/cp",
},
Args: []string{
"-r",
"/opt/supervisord",
"/var/lib/",
"/opt/odo-init/.",
"/opt/odo/",
},
})
}
Expand Down

0 comments on commit eaffb43

Please sign in to comment.