Browse Source

Merge branch 'release/1.0.0'

liuyuqi-dellpc 1 year ago
parent
commit
33378e48ac
2 changed files with 83 additions and 0 deletions
  1. 39 0
      Dockerfile
  2. 44 0
      README.md

+ 39 - 0
Dockerfile

@@ -0,0 +1,39 @@
+FROM node:14
+
+RUN apt-get update && apt-get install -y wget unzip openssh-server
+
+# install java 11
+RUN wget https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz &&\
+    tar -zxvf openjdk-11.0.2_linux-x64_bin.tar.gz &&\
+    mv jdk-11.0.2 /usr/local/jdk11 &&\
+    rm -rf openjdk-11.0.2_linux-x64_bin.tar.gz
+
+# install python3.8
+RUN wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz &&\
+    tar -zxvf Python-3.8.0.tgz &&\
+    cd Python-3.8.0 &&\
+    ./configure --prefix=/usr/local/python3.8 &&\
+    make && make install &&\
+    rm -rf Python-3.8.0.tgz
+
+# install go
+RUN wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz &&\
+    tar -zxvf go1.14.2.linux-amd64.tar.gz &&\
+    mv go /usr/local/go &&\
+    rm -rf go1.14.2.linux-amd64.tar.gz
+
+# install vscode and extension
+RUN curl -fsSL https://code-server.dev/install.sh | sh &&\
+    code-server --install-extension redhat.vscode-yaml &&\
+    code-server --install-extension orta.vscode-jest &&\
+    code-server --install-extension dbaeumer.vscode-eslint &&\
+    code-server --install-extension ms-python.python &&\
+    code-server --install-extension octref.vetur &&\
+    code-server --install-extension ms-azuretools.vscode-docker &&\
+    code-server --install-extension ardisaurus.gitflow-actions-sidebar &&\
+    code-server --install-extension eamodio.gitlens &&\
+    echo done
+
+# 指定字符集支持命令行输入中文(根据需要选择字符集)
+ENV LANG C.UTF-8
+ENV LANGUAGE C.UTF-8

+ 44 - 0
README.md

@@ -0,0 +1,44 @@
+# coding-dev-container
+
+coding 自定义开发容器
+
+## Develop
+
+构建镜像
+```
+
+DOCKER_OPTS="--registry-mirror=https://mirror.ccs.tencentyun.com"
+docker build . --tag jianboy/coding-dev-container
+
+docker tag jianboy/coding-dev-container sift-docker.pkg.coding.net/flutter-team/dev-container/coding-dev-container:<VERSION>
+docker push sift-docker.pkg.coding.net/flutter-team/dev-container/coding-dev-container:<VERSION>
+```
+
+配置使用
+
+vim .coding-ci.yml
+```
+$:
+  api_trigger_vscode:
+    clouddev:
+        build: .ide/Dockerfile
+        image: codingci/default-env:latest
+      services:
+        - vscode
+        - docker
+      stages:
+        - name: 开启云原生远程开发
+          type: vscode:go
+```
+
+vim .ide/Dockerfile
+
+```
+FROM sift-docker.pkg.coding.net/flutter-team/dev-container/coding-dev-container:latest
+
+```
+
+## Reference
+
+## License
+