├── .github └── workflows │ ├── dockerhub-publish-develop.yml │ └── dockerhub-publish-stable.yml ├── .gitignore ├── .idea └── copyright │ ├── Apache_2_0.xml │ └── profiles_settings.xml ├── Dockerfile ├── Dockerfile.dockerignore ├── LICENSE.txt ├── README.md ├── build-container-dev.sh ├── build-container.sh ├── clone-projector-core.sh ├── create-image.sh ├── docs ├── CODE_OF_CONDUCT.md └── CONTRIBUTING.md ├── load-image.sh ├── run-container-mounted.sh ├── run-container.sh └── static ├── ide-projector-launcher.sh ├── projector-user ├── .IdeaIC2019.3 │ └── config │ │ ├── options │ │ ├── colors.scheme.xml │ │ ├── debugger.xml │ │ ├── editor.xml │ │ ├── jdk.table.xml │ │ ├── keymap.xml │ │ ├── laf.xml │ │ ├── other.xml │ │ ├── path.macros.xml │ │ ├── recentProjects.xml │ │ ├── runner.layout.xml │ │ ├── studioFlags.xml │ │ ├── textmate_os.xml │ │ ├── ui.lnf.xml │ │ ├── updates.xml │ │ ├── usage.statistics.xml │ │ └── window.state.xml │ │ ├── tasks │ │ ├── DemoProject.contexts.zip │ │ └── DemoProject.tasks.zip │ │ └── workspace │ │ └── 1YIGAPrg2L8B5jDSfYv4UolAdNP.xml └── DemoProject │ ├── .idea │ ├── codeStyles │ │ ├── Project.xml │ │ └── codeStyleConfig.xml │ ├── kotlinc.xml │ ├── libraries │ │ └── KotlinJavaRuntime.xml │ ├── misc.xml │ ├── modules.xml │ └── workspace.xml │ ├── DemoProject.iml │ ├── README.md │ └── src │ ├── JavaClass.java │ ├── KotlinObject.kt │ └── pj.png └── run.sh /.github/workflows/dockerhub-publish-develop.yml: -------------------------------------------------------------------------------- 1 | name: Docker Publish Develop 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | schedule: 7 | - cron: "0 3 * * *" 8 | workflow_dispatch: 9 | 10 | jobs: 11 | docker: 12 | runs-on: ubuntu-latest 13 | strategy: 14 | matrix: 15 | include: 16 | # Webstorm 17 | - imageName: projector-webstorm 18 | tag: 2020.2 19 | downloadLink: https://download.jetbrains.com/webstorm/WebStorm-2020.2.4.tar.gz 20 | - imageName: projector-webstorm 21 | tag: 2020.3 22 | downloadLink: https://download.jetbrains.com/webstorm/WebStorm-2020.3.3.tar.gz 23 | - imageName: projector-webstorm 24 | tag: 2021.2 25 | downloadLink: https://download.jetbrains.com/webstorm/WebStorm-2021.2.3.tar.gz 26 | - imageName: projector-webstorm 27 | tag: 2021.3 28 | downloadLink: https://download.jetbrains.com/webstorm/WebStorm-2021.3.2.tar.gz 29 | isLatest: true 30 | 31 | # Idea Community 32 | - imageName: projector-idea-c 33 | tag: 2019.3 34 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2019.3.5.tar.gz 35 | - imageName: projector-idea-c 36 | tag: 2020.1 37 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2020.1.4.tar.gz 38 | - imageName: projector-idea-c 39 | tag: 2020.2 40 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2020.2.4.tar.gz 41 | - imageName: projector-idea-c 42 | tag: 2020.3 43 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2020.3.4.tar.gz 44 | - imageName: projector-idea-c 45 | tag: 2021.2 46 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2021.2.3.tar.gz 47 | - imageName: projector-idea-c 48 | tag: 2021.3 49 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2021.3.2.tar.gz 50 | isLatest: true 51 | 52 | # Idea Ultimate 53 | - imageName: projector-idea-u 54 | tag: 2019.3 55 | downloadLink: https://download.jetbrains.com/idea/ideaIU-2019.3.5.tar.gz 56 | - imageName: projector-idea-u 57 | tag: 2020.2 58 | downloadLink: https://download.jetbrains.com/idea/ideaIU-2020.2.4.tar.gz 59 | - imageName: projector-idea-u 60 | tag: 2020.3 61 | downloadLink: https://download.jetbrains.com/idea/ideaIU-2020.3.4.tar.gz 62 | - imageName: projector-idea-u 63 | tag: 2021.2 64 | downloadLink: https://download.jetbrains.com/idea/ideaIU-2021.2.3.tar.gz 65 | - imageName: projector-idea-u 66 | tag: 2021.3 67 | downloadLink: https://download.jetbrains.com/idea/ideaIU-2021.3.2.tar.gz 68 | isLatest: true 69 | 70 | # CLion 71 | - imageName: projector-clion 72 | tag: 2019.3 73 | downloadLink: https://download.jetbrains.com/cpp/CLion-2019.3.6.tar.gz 74 | - imageName: projector-clion 75 | tag: 2020.2 76 | downloadLink: https://download.jetbrains.com/cpp/CLion-2020.2.5.tar.gz 77 | - imageName: projector-clion 78 | tag: 2020.3 79 | downloadLink: https://download.jetbrains.com/cpp/CLion-2020.3.4.tar.gz 80 | - imageName: projector-clion 81 | tag: 2021.2 82 | downloadLink: https://download.jetbrains.com/cpp/CLion-2021.2.3.tar.gz 83 | - imageName: projector-clion 84 | tag: 2021.3 85 | downloadLink: https://download.jetbrains.com/cpp/CLion-2021.3.3.tar.gz 86 | isLatest: true 87 | 88 | # Goland 89 | - imageName: projector-goland 90 | tag: 2019.3 91 | downloadLink: https://download.jetbrains.com/go/goland-2019.3.4.tar.gz 92 | - imageName: projector-goland 93 | tag: 2020.2 94 | downloadLink: https://download.jetbrains.com/go/goland-2020.2.4.tar.gz 95 | - imageName: projector-goland 96 | tag: 2020.3 97 | downloadLink: https://download.jetbrains.com/go/goland-2020.3.5.tar.gz 98 | - imageName: projector-goland 99 | tag: 2021.2 100 | downloadLink: https://download.jetbrains.com/go/goland-2021.2.4.tar.gz 101 | - imageName: projector-goland 102 | tag: 2021.3 103 | downloadLink: https://download.jetbrains.com/go/goland-2021.3.3.tar.gz 104 | isLatest: true 105 | 106 | # Datagrip 107 | - imageName: projector-datagrip 108 | tag: 2019.3 109 | downloadLink: https://download.jetbrains.com/datagrip/datagrip-2019.3.5.tar.gz 110 | - imageName: projector-datagrip 111 | tag: 2020.2 112 | downloadLink: https://download.jetbrains.com/datagrip/datagrip-2020.2.3.tar.gz 113 | - imageName: projector-datagrip 114 | tag: 2020.3 115 | downloadLink: https://download.jetbrains.com/datagrip/datagrip-2020.3.2.tar.gz 116 | - imageName: projector-datagrip 117 | tag: 2021.2 118 | downloadLink: https://download.jetbrains.com/datagrip/datagrip-2021.2.4.tar.gz 119 | - imageName: projector-datagrip 120 | tag: 2021.3 121 | downloadLink: https://download.jetbrains.com/datagrip/datagrip-2021.3.4.tar.gz 122 | isLatest: true 123 | 124 | # PHPStorm 125 | - imageName: projector-phpstorm 126 | tag: 2019.3 127 | downloadLink: https://download.jetbrains.com/webide/PhpStorm-2019.3.4.tar.gz 128 | - imageName: projector-phpstorm 129 | tag: 2020.2 130 | downloadLink: https://download.jetbrains.com/webide/PhpStorm-2020.2.4.tar.gz 131 | - imageName: projector-phpstorm 132 | tag: 2020.3 133 | downloadLink: https://download.jetbrains.com/webide/PhpStorm-2020.3.3.tar.gz 134 | - imageName: projector-phpstorm 135 | tag: 2021.2 136 | downloadLink: https://download.jetbrains.com/webide/PhpStorm-2021.2.3.tar.gz 137 | - imageName: projector-phpstorm 138 | tag: 2021.3 139 | downloadLink: https://download.jetbrains.com/webide/PhpStorm-2021.3.2.tar.gz 140 | isLatest: true 141 | 142 | # Pycharm community 143 | - imageName: projector-pycharm-c 144 | tag: 2019.3 145 | downloadLink: https://download.jetbrains.com/python/pycharm-community-2019.3.5.tar.gz 146 | - imageName: projector-pycharm-c 147 | tag: 2020.2 148 | downloadLink: https://download.jetbrains.com/python/pycharm-community-2020.2.5.tar.gz 149 | - imageName: projector-pycharm-c 150 | tag: 2020.3 151 | downloadLink: https://download.jetbrains.com/python/pycharm-community-2020.3.5.tar.gz 152 | - imageName: projector-pycharm-c 153 | tag: 2021.3 154 | downloadLink: https://download.jetbrains.com/python/pycharm-community-2021.3.2.tar.gz 155 | isLatest: true 156 | 157 | # Pycharm professional 158 | - imageName: projector-pycharm-p 159 | tag: 2019.3 160 | downloadLink: https://download.jetbrains.com/python/pycharm-professional-2019.3.5.tar.gz 161 | - imageName: projector-pycharm-p 162 | tag: 2020.2 163 | downloadLink: https://download.jetbrains.com/python/pycharm-professional-2020.2.5.tar.gz 164 | - imageName: projector-pycharm-p 165 | tag: 2020.3 166 | downloadLink: https://download.jetbrains.com/python/pycharm-professional-2020.3.5.tar.gz 167 | - imageName: projector-pycharm-p 168 | tag: 2021.3 169 | downloadLink: https://download.jetbrains.com/python/pycharm-professional-2021.3.2.tar.gz 170 | isLatest: true 171 | 172 | # Rider 173 | - imageName: projector-rider 174 | tag: 2020.2 175 | downloadLink: https://download.jetbrains.com/rider/JetBrains.Rider-2020.2.5.tar.gz 176 | - imageName: projector-rider 177 | tag: 2020.3 178 | downloadLink: https://download.jetbrains.com/rider/JetBrains.Rider-2020.3.4.tar.gz 179 | - imageName: projector-rider 180 | tag: 2021.2 181 | downloadLink: https://download.jetbrains.com/rider/JetBrains.Rider-2021.2.2.tar.gz 182 | - imageName: projector-rider 183 | tag: 2021.3 184 | downloadLink: https://download.jetbrains.com/rider/JetBrains.Rider-2021.3.3.tar.gz 185 | isLatest: true 186 | 187 | # Rubymine 188 | - imageName: projector-rubymine 189 | tag: 2020.3 190 | downloadLink: https://download.jetbrains.com/ruby/RubyMine-2020.3.3.tar.gz 191 | - imageName: projector-rubymine 192 | tag: 2021.2 193 | downloadLink: https://download.jetbrains.com/ruby/RubyMine-2021.2.3.tar.gz 194 | - imageName: projector-rubymine 195 | tag: 2021.3 196 | downloadLink: https://download.jetbrains.com/ruby/RubyMine-2021.3.2.tar.gz 197 | isLatest: true 198 | 199 | steps: 200 | - name: Checkout 201 | uses: actions/checkout@v2 202 | with: 203 | path: projector-docker 204 | 205 | - name: Checkout server repo 206 | uses: actions/checkout@v2 207 | with: 208 | repository: JetBrains/projector-server 209 | path: projector-server 210 | 211 | - name: Login to DockerHub 212 | uses: docker/login-action@v1 213 | with: 214 | username: ${{ secrets.DOCKER_USERNAME }} 215 | password: ${{ secrets.DOCKER_TOKEN }} 216 | 217 | - name: Push exact version 218 | run: | 219 | cd projector-docker 220 | ./build-container.sh ${{ secrets.DOCKER_IMAGE_OWNER }}/${{ matrix.imageName}}:${{ matrix.tag }}-develop ${{ matrix.downloadLink }} 221 | docker push ${{ secrets.DOCKER_IMAGE_OWNER }}/${{ matrix.ImageName }}:${{ matrix.tag }}-develop 222 | - name: Push latest 223 | if: ${{ matrix. isLatest }} 224 | run: | 225 | docker tag ${{ secrets.DOCKER_IMAGE_OWNER }}/${{ matrix.imageName}}:${{ matrix.tag }}-develop ${{ secrets.DOCKER_IMAGE_OWNER }}/${{ matrix.imageName}}:develop 226 | docker push ${{ secrets.DOCKER_IMAGE_OWNER }}/${{ matrix.ImageName }}:develop 227 | -------------------------------------------------------------------------------- /.github/workflows/dockerhub-publish-stable.yml: -------------------------------------------------------------------------------- 1 | name: Docker Publish Stable 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | workflow_dispatch: 7 | 8 | jobs: 9 | docker: 10 | runs-on: ubuntu-latest 11 | env: 12 | PROJECTOR_STABLE: v1.8.1 13 | strategy: 14 | matrix: 15 | include: 16 | # Webstorm 17 | - imageName: projector-webstorm 18 | tag: 2020.2 19 | downloadLink: https://download.jetbrains.com/webstorm/WebStorm-2020.2.4.tar.gz 20 | - imageName: projector-webstorm 21 | tag: 2020.3 22 | downloadLink: https://download.jetbrains.com/webstorm/WebStorm-2020.3.3.tar.gz 23 | - imageName: projector-webstorm 24 | tag: 2021.2 25 | downloadLink: https://download.jetbrains.com/webstorm/WebStorm-2021.2.3.tar.gz 26 | - imageName: projector-webstorm 27 | tag: 2021.3 28 | downloadLink: https://download.jetbrains.com/webstorm/WebStorm-2021.3.2.tar.gz 29 | isLatest: true 30 | 31 | # Idea Community 32 | - imageName: projector-idea-c 33 | tag: 2019.3 34 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2019.3.5.tar.gz 35 | - imageName: projector-idea-c 36 | tag: 2020.1 37 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2020.1.4.tar.gz 38 | - imageName: projector-idea-c 39 | tag: 2020.2 40 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2020.2.4.tar.gz 41 | - imageName: projector-idea-c 42 | tag: 2020.3 43 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2020.3.4.tar.gz 44 | - imageName: projector-idea-c 45 | tag: 2021.2 46 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2021.2.3.tar.gz 47 | - imageName: projector-idea-c 48 | tag: 2021.3 49 | downloadLink: https://download.jetbrains.com/idea/ideaIC-2021.3.2.tar.gz 50 | isLatest: true 51 | 52 | # Idea Ultimate 53 | - imageName: projector-idea-u 54 | tag: 2019.3 55 | downloadLink: https://download.jetbrains.com/idea/ideaIU-2019.3.5.tar.gz 56 | - imageName: projector-idea-u 57 | tag: 2020.2 58 | downloadLink: https://download.jetbrains.com/idea/ideaIU-2020.2.4.tar.gz 59 | - imageName: projector-idea-u 60 | tag: 2020.3 61 | downloadLink: https://download.jetbrains.com/idea/ideaIU-2020.3.4.tar.gz 62 | - imageName: projector-idea-u 63 | tag: 2021.2 64 | downloadLink: https://download.jetbrains.com/idea/ideaIU-2021.2.3.tar.gz 65 | - imageName: projector-idea-u 66 | tag: 2021.3 67 | downloadLink: https://download.jetbrains.com/idea/ideaIU-2021.3.2.tar.gz 68 | isLatest: true 69 | 70 | # CLion 71 | - imageName: projector-clion 72 | tag: 2019.3 73 | downloadLink: https://download.jetbrains.com/cpp/CLion-2019.3.6.tar.gz 74 | - imageName: projector-clion 75 | tag: 2020.2 76 | downloadLink: https://download.jetbrains.com/cpp/CLion-2020.2.5.tar.gz 77 | - imageName: projector-clion 78 | tag: 2020.3 79 | downloadLink: https://download.jetbrains.com/cpp/CLion-2020.3.4.tar.gz 80 | - imageName: projector-clion 81 | tag: 2021.2 82 | downloadLink: https://download.jetbrains.com/cpp/CLion-2021.2.3.tar.gz 83 | - imageName: projector-clion 84 | tag: 2021.3 85 | downloadLink: https://download.jetbrains.com/cpp/CLion-2021.3.3.tar.gz 86 | isLatest: true 87 | 88 | # Goland 89 | - imageName: projector-goland 90 | tag: 2019.3 91 | downloadLink: https://download.jetbrains.com/go/goland-2019.3.4.tar.gz 92 | - imageName: projector-goland 93 | tag: 2020.2 94 | downloadLink: https://download.jetbrains.com/go/goland-2020.2.4.tar.gz 95 | - imageName: projector-goland 96 | tag: 2020.3 97 | downloadLink: https://download.jetbrains.com/go/goland-2020.3.5.tar.gz 98 | - imageName: projector-goland 99 | tag: 2021.2 100 | downloadLink: https://download.jetbrains.com/go/goland-2021.2.4.tar.gz 101 | - imageName: projector-goland 102 | tag: 2021.3 103 | downloadLink: https://download.jetbrains.com/go/goland-2021.3.3.tar.gz 104 | isLatest: true 105 | 106 | # Datagrip 107 | - imageName: projector-datagrip 108 | tag: 2019.3 109 | downloadLink: https://download.jetbrains.com/datagrip/datagrip-2019.3.5.tar.gz 110 | - imageName: projector-datagrip 111 | tag: 2020.2 112 | downloadLink: https://download.jetbrains.com/datagrip/datagrip-2020.2.3.tar.gz 113 | - imageName: projector-datagrip 114 | tag: 2020.3 115 | downloadLink: https://download.jetbrains.com/datagrip/datagrip-2020.3.2.tar.gz 116 | - imageName: projector-datagrip 117 | tag: 2021.2 118 | downloadLink: https://download.jetbrains.com/datagrip/datagrip-2021.2.4.tar.gz 119 | - imageName: projector-datagrip 120 | tag: 2021.3 121 | downloadLink: https://download.jetbrains.com/datagrip/datagrip-2021.3.4.tar.gz 122 | isLatest: true 123 | 124 | # PHPStorm 125 | - imageName: projector-phpstorm 126 | tag: 2019.3 127 | downloadLink: https://download.jetbrains.com/webide/PhpStorm-2019.3.4.tar.gz 128 | - imageName: projector-phpstorm 129 | tag: 2020.2 130 | downloadLink: https://download.jetbrains.com/webide/PhpStorm-2020.2.4.tar.gz 131 | - imageName: projector-phpstorm 132 | tag: 2020.3 133 | downloadLink: https://download.jetbrains.com/webide/PhpStorm-2020.3.3.tar.gz 134 | - imageName: projector-phpstorm 135 | tag: 2021.2 136 | downloadLink: https://download.jetbrains.com/webide/PhpStorm-2021.2.3.tar.gz 137 | - imageName: projector-phpstorm 138 | tag: 2021.3 139 | downloadLink: https://download.jetbrains.com/webide/PhpStorm-2021.3.2.tar.gz 140 | isLatest: true 141 | 142 | # Pycharm community 143 | - imageName: projector-pycharm-c 144 | tag: 2019.3 145 | downloadLink: https://download.jetbrains.com/python/pycharm-community-2019.3.5.tar.gz 146 | - imageName: projector-pycharm-c 147 | tag: 2020.2 148 | downloadLink: https://download.jetbrains.com/python/pycharm-community-2020.2.5.tar.gz 149 | - imageName: projector-pycharm-c 150 | tag: 2020.3 151 | downloadLink: https://download.jetbrains.com/python/pycharm-community-2020.3.5.tar.gz 152 | - imageName: projector-pycharm-c 153 | tag: 2021.3 154 | downloadLink: https://download.jetbrains.com/python/pycharm-community-2021.3.2.tar.gz 155 | isLatest: true 156 | 157 | # Pycharm professional 158 | - imageName: projector-pycharm-p 159 | tag: 2019.3 160 | downloadLink: https://download.jetbrains.com/python/pycharm-professional-2019.3.5.tar.gz 161 | - imageName: projector-pycharm-p 162 | tag: 2020.2 163 | downloadLink: https://download.jetbrains.com/python/pycharm-professional-2020.2.5.tar.gz 164 | - imageName: projector-pycharm-p 165 | tag: 2020.3 166 | downloadLink: https://download.jetbrains.com/python/pycharm-professional-2020.3.5.tar.gz 167 | - imageName: projector-pycharm-p 168 | tag: 2021.3 169 | downloadLink: https://download.jetbrains.com/python/pycharm-professional-2021.3.2.tar.gz 170 | isLatest: true 171 | 172 | # Rider 173 | - imageName: projector-rider 174 | tag: 2020.2 175 | downloadLink: https://download.jetbrains.com/rider/JetBrains.Rider-2020.2.5.tar.gz 176 | - imageName: projector-rider 177 | tag: 2020.3 178 | downloadLink: https://download.jetbrains.com/rider/JetBrains.Rider-2020.3.4.tar.gz 179 | - imageName: projector-rider 180 | tag: 2021.2 181 | downloadLink: https://download.jetbrains.com/rider/JetBrains.Rider-2021.2.2.tar.gz 182 | - imageName: projector-rider 183 | tag: 2021.3 184 | downloadLink: https://download.jetbrains.com/rider/JetBrains.Rider-2021.3.3.tar.gz 185 | isLatest: true 186 | 187 | # Rubymine 188 | - imageName: projector-rubymine 189 | tag: 2020.3 190 | downloadLink: https://download.jetbrains.com/ruby/RubyMine-2020.3.3.tar.gz 191 | - imageName: projector-rubymine 192 | tag: 2021.2 193 | downloadLink: https://download.jetbrains.com/ruby/RubyMine-2021.2.3.tar.gz 194 | - imageName: projector-rubymine 195 | tag: 2021.3 196 | downloadLink: https://download.jetbrains.com/ruby/RubyMine-2021.3.2.tar.gz 197 | isLatest: true 198 | 199 | steps: 200 | - name: Checkout 201 | uses: actions/checkout@v2 202 | with: 203 | path: projector-docker 204 | 205 | - name: Checkout server repo 206 | uses: actions/checkout@v2 207 | with: 208 | repository: JetBrains/projector-server 209 | path: projector-server 210 | ref: refs/tags/${{ env.PROJECTOR_STABLE }} 211 | 212 | - name: Login to DockerHub 213 | uses: docker/login-action@v1 214 | with: 215 | username: ${{ secrets.DOCKER_USERNAME }} 216 | password: ${{ secrets.DOCKER_TOKEN }} 217 | 218 | - name: Push stable version 219 | run: | 220 | cd projector-docker 221 | ./build-container.sh ${{ secrets.DOCKER_IMAGE_OWNER }}/${{ matrix.imageName}}:${{ matrix.tag }}-projector-${{ env.PROJECTOR_STABLE }} ${{ matrix.downloadLink }} 222 | docker push ${{ secrets.DOCKER_IMAGE_OWNER }}/${{ matrix.ImageName }}:${{ matrix.tag }}-projector-${{ env.PROJECTOR_STABLE }} 223 | 224 | - name: Push latest 225 | if: ${{ matrix. isLatest }} 226 | run: | 227 | docker tag ${{ secrets.DOCKER_IMAGE_OWNER }}/${{ matrix.imageName}}:${{ matrix.tag }}-projector-${{ env.PROJECTOR_STABLE }} ${{ secrets.DOCKER_IMAGE_OWNER }}/${{ matrix.imageName}}:latest 228 | docker push ${{ secrets.DOCKER_IMAGE_OWNER }}/${{ matrix.ImageName }}:latest 229 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | !.idea/ 2 | .idea/* 3 | !.idea/copyright 4 | /idea* 5 | -------------------------------------------------------------------------------- /.idea/copyright/Apache_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2019-2020 JetBrains s.r.o. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | FROM debian AS ideDownloader 18 | 19 | # prepare tools: 20 | RUN apt-get update 21 | RUN apt-get install wget -y 22 | # download IDE to the /ide dir: 23 | WORKDIR /download 24 | ARG downloadUrl 25 | RUN wget -q $downloadUrl -O - | tar -xz 26 | RUN find . -maxdepth 1 -type d -name * -execdir mv {} /ide \; 27 | 28 | FROM amazoncorretto:11 as projectorGradleBuilder 29 | 30 | ENV PROJECTOR_DIR /projector 31 | 32 | # projector-server: 33 | ADD projector-server $PROJECTOR_DIR/projector-server 34 | WORKDIR $PROJECTOR_DIR/projector-server 35 | ARG buildGradle 36 | RUN if [ "$buildGradle" = "true" ]; then ./gradlew clean; else echo "Skipping gradle build"; fi 37 | RUN if [ "$buildGradle" = "true" ]; then ./gradlew :projector-server:distZip; else echo "Skipping gradle build"; fi 38 | RUN cd projector-server/build/distributions && find . -maxdepth 1 -type f -name projector-server-*.zip -exec mv {} projector-server.zip \; 39 | 40 | FROM debian AS projectorStaticFiles 41 | 42 | # prepare tools: 43 | RUN apt-get update 44 | RUN apt-get install unzip -y 45 | # create the Projector dir: 46 | ENV PROJECTOR_DIR /projector 47 | RUN mkdir -p $PROJECTOR_DIR 48 | # copy IDE: 49 | COPY --from=ideDownloader /ide $PROJECTOR_DIR/ide 50 | # copy projector files to the container: 51 | ADD projector-docker/static $PROJECTOR_DIR 52 | # copy projector: 53 | COPY --from=projectorGradleBuilder $PROJECTOR_DIR/projector-server/projector-server/build/distributions/projector-server.zip $PROJECTOR_DIR 54 | # prepare IDE - apply projector-server: 55 | RUN unzip $PROJECTOR_DIR/projector-server.zip 56 | RUN rm $PROJECTOR_DIR/projector-server.zip 57 | RUN find . -maxdepth 1 -type d -name projector-server-* -exec mv {} projector-server \; 58 | RUN mv projector-server $PROJECTOR_DIR/ide/projector-server 59 | RUN mv $PROJECTOR_DIR/ide-projector-launcher.sh $PROJECTOR_DIR/ide/bin 60 | RUN chmod 644 $PROJECTOR_DIR/ide/projector-server/lib/* 61 | 62 | FROM debian:10 63 | 64 | RUN true \ 65 | # Any command which returns non-zero exit code will cause this shell script to exit immediately: 66 | && set -e \ 67 | # Activate debugging to show execution details: all commands will be printed before execution 68 | && set -x \ 69 | # install packages: 70 | && apt-get update \ 71 | # packages for awt: 72 | && apt-get install libxext6 libxrender1 libxtst6 libxi6 libfreetype6 -y \ 73 | # packages for user convenience: 74 | && apt-get install git bash-completion sudo -y \ 75 | # packages for IDEA (to disable warnings): 76 | && apt-get install procps -y \ 77 | # clean apt to reduce image size: 78 | && rm -rf /var/lib/apt/lists/* \ 79 | && rm -rf /var/cache/apt 80 | 81 | ARG downloadUrl 82 | 83 | RUN true \ 84 | # Any command which returns non-zero exit code will cause this shell script to exit immediately: 85 | && set -e \ 86 | # Activate debugging to show execution details: all commands will be printed before execution 87 | && set -x \ 88 | # install specific packages for IDEs: 89 | && apt-get update \ 90 | && if [ "${downloadUrl#*CLion}" != "$downloadUrl" ]; then apt-get install build-essential clang -y; else echo "Not CLion"; fi \ 91 | && if [ "${downloadUrl#*pycharm}" != "$downloadUrl" ]; then apt-get install python2 python3 python3-distutils python3-pip python3-setuptools -y; else echo "Not pycharm"; fi \ 92 | && if [ "${downloadUrl#*rider}" != "$downloadUrl" ]; then apt install apt-transport-https dirmngr gnupg ca-certificates -y && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && echo "deb https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list && apt update && apt install mono-devel -y && apt install wget -y && wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb && apt-get update && apt-get install -y apt-transport-https && apt-get update && apt-get install -y dotnet-sdk-3.1 aspnetcore-runtime-3.1; else echo "Not rider"; fi \ 93 | # clean apt to reduce image size: 94 | && rm -rf /var/lib/apt/lists/* \ 95 | && rm -rf /var/cache/apt 96 | 97 | # copy the Projector dir: 98 | ENV PROJECTOR_DIR /projector 99 | COPY --from=projectorStaticFiles $PROJECTOR_DIR $PROJECTOR_DIR 100 | 101 | ENV PROJECTOR_USER_NAME projector-user 102 | 103 | RUN true \ 104 | # Any command which returns non-zero exit code will cause this shell script to exit immediately: 105 | && set -e \ 106 | # Activate debugging to show execution details: all commands will be printed before execution 107 | && set -x \ 108 | # move run scipt: 109 | && mv $PROJECTOR_DIR/run.sh run.sh \ 110 | # change user to non-root (http://pjdietz.com/2016/08/28/nginx-in-docker-without-root.html): 111 | && mv $PROJECTOR_DIR/$PROJECTOR_USER_NAME /home \ 112 | && useradd -d /home/$PROJECTOR_USER_NAME -s /bin/bash -G sudo $PROJECTOR_USER_NAME \ 113 | && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \ 114 | && chown -R $PROJECTOR_USER_NAME.$PROJECTOR_USER_NAME /home/$PROJECTOR_USER_NAME \ 115 | && chown -R $PROJECTOR_USER_NAME.$PROJECTOR_USER_NAME $PROJECTOR_DIR/ide/bin \ 116 | && chown $PROJECTOR_USER_NAME.$PROJECTOR_USER_NAME run.sh 117 | 118 | USER $PROJECTOR_USER_NAME 119 | ENV HOME /home/$PROJECTOR_USER_NAME 120 | 121 | EXPOSE 8887 122 | 123 | CMD ["bash", "-c", "/run.sh"] 124 | -------------------------------------------------------------------------------- /Dockerfile.dockerignore: -------------------------------------------------------------------------------- 1 | # Ignore everything but specific dirs 2 | 3 | ** 4 | 5 | !/projector-client/** 6 | !/projector-server/** 7 | !/projector-docker/static/** 8 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # projector-docker 2 | 3 | [![obsolete JetBrains project](https://jb.gg/badges/obsolete.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) 4 | 5 | Some scripts to create and run a Docker container with Projector and JetBrains IDE. 6 | 7 | ## The state of the Projector 8 | 9 | The development of JetBrains Projector as its own standalone product has been suspended. That said, Projector remains an important part of [JetBrains Gateway](https://www.jetbrains.com/remote-development/gateway/), which is the primary remote development tool for JetBrains IDEs. We will focus our efforts on improving and developing Projector in this limited scenario. 10 | 11 | Our goal is to provide a rich, full-featured remote development experience with a look and feel that is equal to or better than what you get when working with IDEs locally. The only way to get everything you’re used to having when working locally (low latency, low network traffic, user-defined and OS-specific shortcuts, themes, settings migrations, ssh-agent/port forwarding, and other things) is by installing a dedicated client-side application. The standalone version of Projector is not capable of meeting these goals. 12 | 13 | As a result, we no longer recommend using the standalone version of JetBrains Projector or merely making tweaks to incorporate it into your existing IDE servers. We won’t provide user support or quick-fixes for issues that arise when these setups are used. If you have the option to switch from Projector to Gateway, we strongly recommend you do so. 14 | 15 | [Learn more about JetBrains Gateway](https://www.jetbrains.com/remote-development/gateway/) 16 | 17 | [Documentation](https://jetbrains.github.io/projector-client/mkdocs/latest/) 18 | | [Issue tracker](https://youtrack.jetbrains.com/issues/PRJ) 19 | 20 | ## Run JetBrains IDE in Docker 21 | 22 | How to run JetBrains IDE in Docker and access it via a web browser? 23 | 24 | ### Step 1 25 | Firstly, pull an image with needed IDE. You can do it in two ways: 26 | 27 | #### The first one is to pull it from [DockerHub](https://hub.docker.com/orgs/jetbrains/repositories): 28 | 29 | ```shell 30 | docker pull jetbrains/projector-clion 31 | docker pull jetbrains/projector-datagrip 32 | docker pull jetbrains/projector-goland 33 | docker pull jetbrains/projector-idea-c 34 | docker pull jetbrains/projector-idea-u 35 | docker pull jetbrains/projector-phpstorm 36 | docker pull jetbrains/projector-pycharm-c 37 | docker pull jetbrains/projector-pycharm-p 38 | docker pull jetbrains/projector-rider 39 | docker pull jetbrains/projector-rubymine 40 | docker pull jetbrains/projector-webstorm 41 | ``` 42 | Tags are distributed on DockerHub as follows: 43 | - `:latest` – this image contains the **latest up-to-date** version of the tested IDE with the latest **stable** version of the Projector; 44 | - `:develop` – this image contains the **latest up-to-date** version of the tested IDE with the **latest commit** of the Projector repository; 45 | - `:-develop` – this image contains the **selected** version of the IDE with the **latest commit** of the Projector repository; 46 | - `:-projector-` – this image contains the **selected** version of the IDE with the **selected stable** version of Projector. 47 | 48 | #### The second way is to pull it from Space: 49 | _On Space, only the latest tested IDE and the `develop` version of Projector are published._ 50 | 51 | ```shell 52 | docker pull registry.jetbrains.team/p/prj/containers/projector-clion 53 | docker pull registry.jetbrains.team/p/prj/containers/projector-datagrip 54 | docker pull registry.jetbrains.team/p/prj/containers/projector-goland 55 | docker pull registry.jetbrains.team/p/prj/containers/projector-idea-c 56 | docker pull registry.jetbrains.team/p/prj/containers/projector-idea-u 57 | docker pull registry.jetbrains.team/p/prj/containers/projector-phpstorm 58 | docker pull registry.jetbrains.team/p/prj/containers/projector-pycharm-c 59 | docker pull registry.jetbrains.team/p/prj/containers/projector-pycharm-p 60 | docker pull registry.jetbrains.team/p/prj/containers/projector-rider 61 | docker pull registry.jetbrains.team/p/prj/containers/projector-rubymine 62 | docker pull registry.jetbrains.team/p/prj/containers/projector-webstorm 63 | ``` 64 | 65 | ### Step 2 66 | 67 | After that, you can run it via the following command (just replace `IMAGE_NAME` with the needed name, for 68 | example, `jetbrains/projector-clion`): 69 | 70 | ```shell 71 | docker run --rm -p 8887:8887 -it IMAGE_NAME 72 | ``` 73 | 74 | This will run **Projector Server with the selected JetBrains IDE** locally. 75 | 76 | To access Projector Server with IDE, use . 77 | 78 | If you want to **save the state of the container between launches**, go further: take a look 79 | at [`run-container-mounted.sh`](#run-container-mountedsh-containername) script. 80 | 81 | ## Run IntelliJ IDEA in Docker (building image yourself) 82 | 83 | If you don't want to pull an image, you can build it yourself. Scripts in this repo will help you to do it. 84 | 85 | Firstly, please check your **Docker version**: since we 86 | use [Docker BuildKit](https://docs.docker.com/develop/develop-images/build_enhancements/) in our scripts, a current 87 | version of Docker (18.09 or higher) is required. 88 | 89 | Clone this `projector-docker` repo and make the following actions: 90 | 91 | ```shell script 92 | ./clone-projector-core.sh 93 | ./build-container.sh 94 | ./run-container.sh 95 | ``` 96 | 97 | This will run **Projector Server with IntelliJ IDEA Community** locally. 98 | 99 | To access Projector Server with IDE, use . 100 | 101 | There will be a sample Kotlin + Java project opened, just close some dialogs. If you want to try **your project**, you can clone it via Git. 102 | 103 | If you **don't want to clone the project every time** you start the container, go further: use [`run-container-mounted.sh`](#run-container-mountedsh-containername). 104 | 105 | ## Accessing IDE run on another machine 106 | 107 | If you want to access IDE run on another host, you need to change page parameters. Here are the default parameters, so you probably need to change `localhost` in both places to needed IP: . 108 | 109 | ## Script list 110 | ### `clone-projector-core.sh` 111 | Clones projector projects from Git to proper locations: 112 | - `../projector-server`. 113 | 114 | **Note**: if you already have these projects locally existing, you can place them to proper locations and avoid this script. 115 | 116 | ### `build-container.sh [containerName [ideDownloadUrl]]` 117 | Compiles Projector inside Docker and builds a Docker container locally. 118 | 119 | ### `build-container-dev.sh [containerName [ideDownloadUrl]]` 120 | Compiles Projector outside Docker and builds a Docker container locally. The script assumes the JAVA_HOME is set to a JDK 11. 121 | 122 | ### `create-image.sh [containerName [tarGzFileName]]` 123 | Creates a Docker image from a built container and saves it as a `tar.gz` archive. 124 | 125 | ### `load-image.sh [tarGzFileName]` 126 | Loads the Docker image locally. 127 | 128 | ### `run-container.sh [containerName]` 129 | Runs the Docker container. 130 | 131 | Starts the Projector server and hosts web client files on port 8887. 132 | 133 | ### `run-container-mounted.sh [containerName]` 134 | Runs the Docker container. Also, it mounts your `~/projector-docker` dir as the home dir in the container, so settings and projects can be saved between launches. 135 | 136 | Feel free to change `~/projector-docker` dir to your desired one. **Please note that the host dir should be created manually** to eliminate permissions problems. 137 | 138 | **For Mac and Windows hosts**: to speed up work with mounted dirs, you can try adding the `:cached` suffix. It will look like this: `-v ~/projector-docker:/home/projector-user:cached`. 139 | 140 | Starts the Projector server and hosts web client files on port 8887. 141 | 142 | ## Tested IDEs 143 | When you build a container, there is an optional `ideDownloadUrl` parameter, so you can select different IDEs to use. Most JetBrains IDEs of versions 2019.1-2020.2 will work. Tested with: 144 | - https://download.jetbrains.com/idea/ideaIC-2019.3.4.tar.gz 145 | - https://download.jetbrains.com/idea/ideaIC-2020.1.1.tar.gz 146 | - https://download.jetbrains.com/idea/ideaIC-202.5103.13.tar.gz 147 | - https://download.jetbrains.com/idea/ideaIU-2019.3.4.tar.gz 148 | - https://download.jetbrains.com/cpp/CLion-2019.3.5.tar.gz 149 | - https://download.jetbrains.com/go/goland-2019.3.4.tar.gz 150 | - https://download.jetbrains.com/datagrip/datagrip-2019.3.4.tar.gz 151 | - https://download.jetbrains.com/webide/PhpStorm-2019.3.4.tar.gz 152 | - https://download.jetbrains.com/python/pycharm-community-2019.3.4.tar.gz 153 | - https://download.jetbrains.com/python/pycharm-professional-2019.3.4.tar.gz 154 | - https://download.jetbrains.com/webstorm/WebStorm-2020.2.2.tar.gz 155 | - https://download.jetbrains.com/rider/JetBrains.Rider-2020.2.4.tar.gz 156 | 157 | You can find the up-to-date list of tested IDEs 158 | here: [compatible_ide.json](https://github.com/JetBrains/projector-installer/blob/master/projector_installer/compatible_ide.json) 159 | . 160 | 161 | If you want to try other distribution, click "Other versions" on 162 | an [IDE download page](https://www.jetbrains.com/idea/download/) and copy a link to a `tar.gz` file. Please ensure that 163 | you select `tar.gz` **with JBR**, not without. 164 | 165 | ## FAQ 166 | 167 | **Q**: The set of available packages in the container doesn't suit me, what to do? 168 | **A**: You can add the required packages to the [Dockerfile](Dockerfile) (for example, where `packages for user convenience` are installed) and build your own image. If you believe the packages are handy for most users and don't take much space, feel free to create a PR to this repo adding a package. Please note that we consider these buildscripts as samples, there is no goal to cover all the possible needs in them, but there is a goal to show how to create an image with Projector inside. 169 | 170 | **Q**: Can I somehow **secure** my **connection**? 171 | **A**: Yes, it's described in [documentation](https://jetbrains.github.io/projector-client/mkdocs/latest/ij_user_guide/server_customization/#making-the-connection-secure). You can place the file to a mounted dir. 172 | 173 | **Q**: Can I assign a **connection password**? 174 | **A**: Yes, it's described in [documentation](https://jetbrains.github.io/projector-client/mkdocs/latest/ij_user_guide/server_customization/#assigning-connection-password). 175 | 176 | **Q**: I’ve mounted the home dir in **Docker** container and it seems that I **can’t edit files**, there are exceptions about permissions and missing files. What to do? 177 | **A**: It can happen when the owner of the directory on the host is root. So you should recreate the directory on the host yourself with normal user permissions. 178 | 179 | ## License 180 | [Apache 2.0](LICENSE.txt). 181 | -------------------------------------------------------------------------------- /build-container-dev.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright 2019-2020 JetBrains s.r.o. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e # Any command which returns non-zero exit code will cause this shell script to exit immediately 20 | set -x # Activate debugging to show execution details: all commands will be printed before execution 21 | 22 | 23 | cd ../projector-server 24 | ./gradlew :projector-server:distZip 25 | cd - 26 | 27 | containerName=${1:-projector-idea-c} 28 | downloadUrl=${2:-https://download.jetbrains.com/idea/ideaIC-2019.3.5.tar.gz} 29 | 30 | # build container: 31 | DOCKER_BUILDKIT=1 docker build --progress=plain -t "$containerName" --build-arg buildGradle=false --build-arg "downloadUrl=$downloadUrl" -f Dockerfile .. 32 | -------------------------------------------------------------------------------- /build-container.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright 2019-2020 JetBrains s.r.o. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e # Any command which returns non-zero exit code will cause this shell script to exit immediately 20 | set -x # Activate debugging to show execution details: all commands will be printed before execution 21 | 22 | containerName=${1:-projector-idea-c} 23 | downloadUrl=${2:-https://download.jetbrains.com/idea/ideaIC-2019.3.5.tar.gz} 24 | 25 | # build container: 26 | DOCKER_BUILDKIT=1 docker build --progress=plain -t "$containerName" --build-arg buildGradle=true --build-arg "downloadUrl=$downloadUrl" -f Dockerfile .. 27 | -------------------------------------------------------------------------------- /clone-projector-core.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright 2019-2020 JetBrains s.r.o. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e # Any command which returns non-zero exit code will cause this shell script to exit immediately 20 | set -x # Activate debugging to show execution details: all commands will be printed before execution 21 | 22 | git clone https://github.com/JetBrains/projector-server.git ../projector-server 23 | -------------------------------------------------------------------------------- /create-image.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright 2019-2020 JetBrains s.r.o. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e # Any command which returns non-zero exit code will cause this shell script to exit immediately 20 | set -x # Activate debugging to show execution details: all commands will be printed before execution 21 | 22 | containerName=${1:-projector-idea-c} 23 | tarGzFileName=${2:-$containerName.tar.gz} 24 | 25 | docker save "$containerName" | gzip > "$tarGzFileName" 26 | -------------------------------------------------------------------------------- /docs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | This project and the corresponding community is governed by the [JetBrains Open Source and Community Code of Conduct](https://confluence.jetbrains.com/display/ALL/JetBrains+Open+Source+and+Community+Code+of+Conduct). Please make sure you read it. 3 | -------------------------------------------------------------------------------- /docs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Projector 2 | Thank you for reading this: we welcome any contributions. 3 | 4 | All Projector-related projects have the same contributing guidelines. The place where they are described is [projector-server](https://github.com/JetBrains/projector-server/blob/master/docs/CONTRIBUTING.md). 5 | -------------------------------------------------------------------------------- /load-image.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright 2019-2020 JetBrains s.r.o. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e # Any command which returns non-zero exit code will cause this shell script to exit immediately 20 | set -x # Activate debugging to show execution details: all commands will be printed before execution 21 | 22 | tarGzFileName=${1:-projector-idea-c.tar.gz} 23 | 24 | docker load -i "$tarGzFileName" 25 | -------------------------------------------------------------------------------- /run-container-mounted.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright 2019-2020 JetBrains s.r.o. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e # Any command which returns non-zero exit code will cause this shell script to exit immediately 20 | set -x # Activate debugging to show execution details: all commands will be printed before execution 21 | 22 | containerName=${1:-projector-idea-c} 23 | 24 | docker run --rm -p 8887:8887 -v ~/projector-docker:/home/projector-user -it "$containerName" 25 | -------------------------------------------------------------------------------- /run-container.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright 2019-2020 JetBrains s.r.o. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e # Any command which returns non-zero exit code will cause this shell script to exit immediately 20 | set -x # Activate debugging to show execution details: all commands will be printed before execution 21 | 22 | containerName=${1:-projector-idea-c} 23 | 24 | docker run --rm -p 8887:8887 -it "$containerName" 25 | -------------------------------------------------------------------------------- /static/ide-projector-launcher.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 4 | # Copyright 2019-2020 JetBrains s.r.o. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | # search for IDE runner sh file: 20 | 21 | THIS_FILE_NAME=$(basename "$0") 22 | 23 | ideRunnerCandidates=($(grep -lr --include=*.sh "com.intellij.idea.Main\|jetbrains.mps.Launcher" .)) 24 | 25 | # remove this file from candidates: 26 | for i in "${!ideRunnerCandidates[@]}"; do 27 | if [[ ${ideRunnerCandidates[i]} = *$THIS_FILE_NAME* ]]; then 28 | unset 'ideRunnerCandidates[i]' 29 | elif [[ ${ideRunnerCandidates[i]} = *"projector"* ]]; then 30 | unset 'ideRunnerCandidates[i]' 31 | elif [[ ${ideRunnerCandidates[i]} = *"game-tools.sh" ]]; then 32 | unset 'ideRunnerCandidates[i]' 33 | fi 34 | done 35 | 36 | if [[ ${#ideRunnerCandidates[@]} != 1 ]]; then 37 | echo "Can't find a single candidate to be IDE runner script so can't select a single one:" 38 | echo ${ideRunnerCandidates[*]} 39 | exit 1 40 | fi 41 | 42 | ideRunnerCandidate=${ideRunnerCandidates[@]} 43 | ideRunnerWithoutPrefix=${ideRunnerCandidate/"./"/""} 44 | IDE_RUN_FILE_NAME=${ideRunnerWithoutPrefix/".sh"/""} 45 | echo "Found IDE: $IDE_RUN_FILE_NAME" 46 | 47 | cp "$IDE_RUN_FILE_NAME.sh" "$IDE_RUN_FILE_NAME-projector.sh" 48 | 49 | # change 50 | # classpath "$CLASSPATH" 51 | # to 52 | # classpath "$CLASSPATH:$IDE_HOME/projector-server/lib/*" 53 | sed -i 's+classpath "$CLASSPATH"+classpath "$CLASSPATH:$IDE_HOME/projector-server/lib/*"+g' "$IDE_RUN_FILE_NAME-projector.sh" 54 | 55 | # change 56 | # com.intellij.idea.Main 57 | # to 58 | # -Dorg.jetbrains.projector.server.classToLaunch=com.intellij.idea.Main org.jetbrains.projector.server.ProjectorLauncher 59 | sed -i 's+com.intellij.idea.Main+-Dorg.jetbrains.projector.server.classToLaunch=com.intellij.idea.Main org.jetbrains.projector.server.ProjectorLauncher+g' "$IDE_RUN_FILE_NAME-projector.sh" 60 | 61 | # change 62 | # ${MAIN_CLASS} 63 | # to 64 | # -Dorg.jetbrains.projector.server.classToLaunch=${MAIN_CLASS} org.jetbrains.projector.server.ProjectorLauncher 65 | sed -i 's+\${MAIN_CLASS}+-Dorg.jetbrains.projector.server.classToLaunch=\${MAIN_CLASS} org.jetbrains.projector.server.ProjectorLauncher+g' "$IDE_RUN_FILE_NAME-projector.sh" 66 | 67 | bash "$IDE_RUN_FILE_NAME-projector.sh" 68 | 69 | rm "$IDE_RUN_FILE_NAME-projector.sh" 70 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/colors.scheme.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/debugger.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 23 | 24 | 28 | 29 | 33 | 34 | 38 | 39 | 43 | 44 | 48 | 49 | 53 | 54 | 58 | 59 | 63 | 64 | 68 | 69 | 73 | 74 | 78 | 79 | 83 | 84 | 88 | 89 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 102 | 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/editor.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 20 | 21 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/jdk.table.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/keymap.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/laf.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/other.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 28 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/path.macros.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/recentProjects.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 33 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/runner.layout.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/studioFlags.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/textmate_os.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 190 | 191 | 192 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/ui.lnf.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 20 | 21 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/updates.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 26 | 27 | 28 | 29 | 32 | 33 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/usage.statistics.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 73 | 74 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 101 | 102 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/options/window.state.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/tasks/DemoProject.contexts.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JetBrains/projector-docker/ce1e41b69df47cf458a66d31424022edecd89d05/static/projector-user/.IdeaIC2019.3/config/tasks/DemoProject.contexts.zip -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/tasks/DemoProject.tasks.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JetBrains/projector-docker/ce1e41b69df47cf458a66d31424022edecd89d05/static/projector-user/.IdeaIC2019.3/config/tasks/DemoProject.tasks.zip -------------------------------------------------------------------------------- /static/projector-user/.IdeaIC2019.3/config/workspace/1YIGAPrg2L8B5jDSfYv4UolAdNP.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 |