thie.png

github

https://github.com/eclipse-theia/theia
https://theia-ide.org/

docker

win

docker run -it --init -p 3000:3000 -v "$(pwd):/home/project:cached" theiaide/theia:next

Linux or macOS

docker run -it --init -p 3000:3000 --expose 9229 -p 9229:9229 -v "$(pwd):/home/project:cached" theiaide/theia:next --inspect=0.0.0.0:9229

镜像标签

theiaide/theia:latest
This image is based on the latest stable released version.

theiaide/theia:
This image is based on the given stable released version.

theiaide/theia:next
This image is based on the nightly published version.

theiaide/theia:-next.
This image is based on the given nightly published version.

k8s

pvc theiaide-theia

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: theiaide-theia
  namespace: ecs
spec:
  accessModes:
  - ReadWriteMany
  resources:
    requests:
      storage: "1024Gi"
  volumeName: 
  storageClassName: nfs

svc theiaide-theia

apiVersion: v1
kind: Service
metadata:
 name: theiaide-theia
 namespace: ecs
spec:
 type: NodePort
 ports:
 - port: 3000
   targetPort: 3000
   nodePort: 30008
 selector:
   app: theiaide-theia

Deployment theiaide-theia

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: theiaide-theia
  name: theiaide-theia
  namespace: ecs
spec:
  selector:
    matchLabels:
      app: theiaide-theia
  template:
    metadata:
      labels:
        app: theiaide-theia
    spec:
      containers:
      - image: theiaide/theia:latest
        imagePullPolicy: IfNotPresent
        name: theiaide-theia
        ports:
        - containerPort: 3000
        volumeMounts:
        - name: theiaide-theia
          mountPath: /home/project:cached
      volumes:
      - name: theiaide-theia
        persistentVolumeClaim:
          claimName: theiaide-theia

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code