File tree Expand file tree Collapse file tree
assembly/assembly-wsmaster-war/src/main/webapp/WEB-INF/classes/codenvy
core/che-core-api-core/src/main/java/org/eclipse/che/api/core/rest
dockerfiles/init/modules/openshift/files/scripts/multi-user Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -233,6 +233,8 @@ che.docker.server_evaluation_strategy=default
233233# chePort : Che listening port number of workspace master
234234# wildcardNipDomain : get external address transformed into a nip.io DNS sub-domain
235235# wildcardXipDomain : get external address transformed into a xip.io DNS sub-domain
236+ # user : name of the current user
237+ # workspacesRoutingSuffix: explicit routing suffix for workspace agents (see property che.workspaces.routing-suffix)
236238che.docker.server_evaluation_strategy.custom.template =<serverName>.<machineName>.<workspaceId>.<wildcardNipDomain>:<chePort>
237239
238240# Protocol to use for http access (for example it can be set to https)
Original file line number Diff line number Diff line change @@ -237,7 +237,9 @@ protected DefaultHttpJsonResponse doRequest(
237237 str = CharStreams .toString (reader );
238238 }
239239 final String contentType = conn .getContentType ();
240- if (contentType != null && contentType .startsWith (MediaType .APPLICATION_JSON )) {
240+ if (contentType != null
241+ && (contentType .startsWith (MediaType .APPLICATION_JSON )
242+ || contentType .startsWith ("application/vnd.api+json" ))) {
241243 final ServiceError serviceError =
242244 DtoFactory .getInstance ().createDtoFromJson (str , ServiceError .class );
243245 if (serviceError .getMessage () != null ) {
@@ -266,7 +268,8 @@ protected DefaultHttpJsonResponse doRequest(
266268 final String contentType = conn .getContentType ();
267269 if (responseCode != HttpURLConnection .HTTP_NO_CONTENT
268270 && contentType != null
269- && !contentType .startsWith (MediaType .APPLICATION_JSON )) {
271+ && !(contentType .startsWith (MediaType .APPLICATION_JSON )
272+ || contentType .startsWith ("application/vnd.api+json" ))) {
270273 throw new IOException (conn .getResponseMessage ());
271274 }
272275
Original file line number Diff line number Diff line change 88
99COMMAND_DIR=$( dirname " $0 " )
1010
11+ export CHE_EPHEMERAL=${CHE_EPHEMERAL:- false}
12+
1113" $COMMAND_DIR " /deploy_postgres_only.sh
1214" $COMMAND_DIR " /wait_until_postgres_is_available.sh
1315
1416oc create -f " $COMMAND_DIR " /keycloak/
1517
18+ if [ " ${CHE_EPHEMERAL} " == " true" ]; then
19+ oc volume dc/keycloak --remove --confirm
20+ oc delete pvc/keycloak-log
21+ oc delete pvc/keycloak-data
22+ fi
23+
1624IMAGE_KEYCLOACK=${IMAGE_KEYCLOACK:- " jboss/keycloak-openshift:3.3.0.CR2-3" }
1725
1826oc create -f - << -EOF
Original file line number Diff line number Diff line change 77#
88
99COMMAND_DIR=$( dirname " $0 " )
10+ export CHE_EPHEMERAL=${CHE_EPHEMERAL:- false}
1011
1112oc create -f " $COMMAND_DIR " /che-init-image-stream.yaml
1213
1314oc create -f " $COMMAND_DIR " /postgres/
1415
16+ if [ " ${CHE_EPHEMERAL} " == " true" ]; then
17+ oc volume dc/postgres --remove --confirm
18+ oc delete pvc/postgres-data
19+ fi
20+
1521IMAGE_INIT=${IMAGE_INIT:- " eclipse/che-init:nightly" }
1622
1723oc create -f - << -EOF
You can’t perform that action at this time.
0 commit comments