use of org.eclipse.che.api.workspace.server.wsplugins.model.EnvVar in project che-server by eclipse-che.
the class KubernetesPluginsToolingApplierTest method createContainer.
private CheContainer createContainer(String name, Command... commands) {
CheContainer cheContainer = new CheContainer();
cheContainer.setImage(TEST_IMAGE);
cheContainer.setName(name);
cheContainer.setEnv(singletonList(new EnvVar().name(ENV_VAR).value(ENV_VAR_VALUE)));
cheContainer.setVolumes(singletonList(new Volume().name(VOLUME_NAME).mountPath(VOLUME_MOUNT_PATH)));
cheContainer.setCommands(Arrays.asList(commands));
return cheContainer;
}
use of org.eclipse.che.api.workspace.server.wsplugins.model.EnvVar in project devspaces-images by redhat-developer.
the class KubernetesPluginsToolingApplierTest method createContainer.
private CheContainer createContainer(String name, Command... commands) {
CheContainer cheContainer = new CheContainer();
cheContainer.setImage(TEST_IMAGE);
cheContainer.setName(name);
cheContainer.setEnv(singletonList(new EnvVar().name(ENV_VAR).value(ENV_VAR_VALUE)));
cheContainer.setVolumes(singletonList(new Volume().name(VOLUME_NAME).mountPath(VOLUME_MOUNT_PATH)));
cheContainer.setCommands(Arrays.asList(commands));
return cheContainer;
}
Aggregations