Search in sources :

Example 1 with EnvVar

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;
}
Also used : CheContainer(org.eclipse.che.api.workspace.server.wsplugins.model.CheContainer) Volume(org.eclipse.che.api.workspace.server.wsplugins.model.Volume) EnvVar(org.eclipse.che.api.workspace.server.wsplugins.model.EnvVar)

Example 2 with EnvVar

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;
}
Also used : CheContainer(org.eclipse.che.api.workspace.server.wsplugins.model.CheContainer) Volume(org.eclipse.che.api.workspace.server.wsplugins.model.Volume) EnvVar(org.eclipse.che.api.workspace.server.wsplugins.model.EnvVar)

Aggregations

CheContainer (org.eclipse.che.api.workspace.server.wsplugins.model.CheContainer)2 EnvVar (org.eclipse.che.api.workspace.server.wsplugins.model.EnvVar)2 Volume (org.eclipse.che.api.workspace.server.wsplugins.model.Volume)2