Skip to content

Instantly share code, notes, and snippets.

@sbose78
Created September 3, 2018 15:45
Show Gist options
  • Save sbose78/e9ab1d5a4ecdb46e6d2f736373fa4b61 to your computer and use it in GitHub Desktop.
Save sbose78/e9ab1d5a4ecdb46e6d2f736373fa4b61 to your computer and use it in GitHub Desktop.
fabric8-auth in Che
{
"projects": [],
"commands": [],
"environments": {
"default": {
"recipe": {
"contentType": "text/x-yaml",
"type": "openshift",
"content": "kind: List\nitems:\n - \n apiVersion: v1\n kind: Pod\n metadata:\n name: any123123\n annotations:\n org.eclipse.che.container.main.machine_name: m1\n org.eclipse.che.container.main1.machine_name: m2\n spec:\n containers:\n - \n image: eclipse/ubuntu_go\n name: main\n ports:\n - \n containerPort: 8080\n protocol: TCP\n resources:\n limits:\n memory: 3072Mi\n - \n image: 'registry.centos.org/postgresql/postgresql:9.6'\n name: main1\n env:\n - \n name: POSTGRESQL_ADMIN_PASSWORD\n value: mysecretpassword\n ports:\n - \n containerPort: 5432\n protocol: TCP\n resources:\n limits:\n memory: 3072Mi\n"
},
"machines": {
"m1": {
"env": {
"AUTH_POSTGRES_PORT": "5432",
"AUTH_DEVELOPER_MODE_ENABLED": "true",
"CHE_MACHINE_NAME": "m1",
"AUTH_HTTP_ADDRESS": "0.0.0.0:8089",
"AUTH_POSTGRES_HOST": "localhost",
"GOPATH": "/projects/auth"
},
"servers": {
"8080/tcp": {
"attributes": {},
"protocol": "http",
"port": "8080"
},
"8089/tcp": {
"attributes": {},
"protocol": "http",
"port": "8089"
}
},
"volumes": {},
"installers": [
"org.eclipse.che.exec",
"org.eclipse.che.terminal",
"org.eclipse.che.ws-agent",
"org.eclipse.che.ls.golang"
],
"attributes": {
"memoryLimitBytes": "3221225472"
}
},
"m2": {
"env": {
"CHE_MACHINE_NAME": "m2"
},
"servers": {
"8080/tcp": {
"attributes": {},
"protocol": "http",
"port": "8080"
},
"mysql": {
"attributes": {},
"protocol": "tcp",
"port": "5432"
}
},
"volumes": {},
"installers": [
"org.eclipse.che.exec",
"org.eclipse.che.terminal"
],
"attributes": {
"memoryLimitBytes": "3221225472"
}
}
}
}
},
"defaultEnv": "default",
"name": "wksp-eki7",
"attributes": {},
"links": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment