Create a new factory from this factory.json file as a working example. Change "mydockerorg/che-theia:nightly" image to your own from steps 3 and 4.
{
"v":"4.0",
"name":"theiadev_factory",
"workspace":{
"environments":{
"default":{
"machines":{
"theia":{
"attributes":{},
"servers":{
"theia":{
"attributes":{
"type":"ide"
},
"port":"3000",
"protocol":"http"
},
"theia-dev":{
"attributes":{
"type":"ide-dev"
},
"port":"3030",
"protocol":"http"
}
},
"volumes":{
"projects":{
"path":"/projects"
},
"theia":{
"path":"/home/theia"
}
},
"installers":[],
"env":{}
},
"machine-exec":{
"attributes":{
"memoryLimitBytes":"2684354560"
},
"servers":{
"terminal-exec":{
"attributes":{
"type":"terminal"
},
"port":"4444",
"protocol":"ws"
}
},
"volumes":{},
"installers":[],
"env":{}
},
"dev-machine":{
"attributes":{},
"servers":{
"theia-dev":{
"attributes":{},
"port":"3030",
"protocol":"http"
}
},
"volumes":{
"projects":{
"path":"/projects"
}
},
"installers":[],
"env":{}
}
},
"recipe":{
"type":"compose",
"content":"services:\n machine-exec:\n image: eclipse/che-machine-exec:latest\n theia:\n image: mydockerorg/che-theia:nightly\n mem_limit: 1073741824\n dev-machine:\n image: eclipse/che-dev:nightly\n mem_limit: 2147483648\n depends_on:\n - theia",
"contentType":"application/x-yaml"
}
}
},
"defaultEnv":"default",
"projects":[
{
"links":[],
"name":"che-theia-factory",
"attributes":{},
"type":"typescript",
"source":{
"location":"https://github.com/eclipse/che-theia-factory-extension.git",
"type":"git",
"parameters":{
"branch":"master"
}
},
"path":"/che-theia-factory",
"problems":[],
"mixins":[]
}
],
"name":"theiadev_factory",
"attributes":{},
"commands":[
{
"commandLine":"cd /projects/che-theia-factory/\nyarn\nyarn rebuild:browser\ncd /projects/che-theia-factory/browser-app\nmkdir -p /projects/theiadev_projects\nexport CHE_PROJECTS_ROOT=/projects/theiadev_projects\nyarn start /projects/theiadev_projects --hostname=0.0.0.0 --port=3030",
"name":"yarn start",
"attributes":{
"machineName":"theia",
"previewUrl":"${server.theia-dev}",
"goal":"Build"
},
"type":"custom"
},
{
"commandLine":"cd /projects/che-theia-factory/che-theia-factory\nyarn watch",
"name":"yarn watch",
"attributes":{
"goal":"Build",
"machineName":"theia"
},
"type":"custom"
},
{
"commandLine":"cd /projects/che-theia-factory/browser-app;\nyarn watch",
"name":"yarn watch browserapp",
"attributes":{
"goal":"Build",
"machineName":"theia"
},
"type":"custom"
}
],
"links":[]
},
"ide":{
"onProjectsLoaded":{
"actions":[
{
"properties":{
"file":"/che-theia-factory/README.md"
},
"id":"openFile"
},
{
"properties":{
"name":"yarn start"
},
"id":"runCommand"
}
]
}
}
}