├── .github └── workflows │ ├── ci.yml │ ├── image-publish-bash-ls.yml │ ├── image-publish-clojure-lsp.yml │ ├── image-publish-css-ls.yml │ └── image-publish-elixir-ls.yml ├── CONTRIBUTING.rst ├── LICENSE ├── README.rst ├── bash ├── Dockerfile └── README.md ├── bin ├── bash-language-server ├── clojure-lsp └── dockered-lsp ├── clojure ├── Dockerfile └── README.md ├── css ├── Dockerfile └── README.md └── elixir ├── Dockerfile └── README.md /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: [ push, pull_request ] 4 | 5 | jobs: 6 | lint: 7 | runs-on: ubuntu-latest 8 | steps: 9 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it 10 | - uses: actions/checkout@v2 11 | 12 | # Run shellcheck 13 | - name: ShellCheck 14 | uses: ludeeus/action-shellcheck@1.1.0 15 | -------------------------------------------------------------------------------- /.github/workflows/image-publish-bash-ls.yml: -------------------------------------------------------------------------------- 1 | name: Publish Bash-LS image 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | branches: [ $default-branch ] 7 | schedule: 8 | - cron: "0 0 * * *" 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Check out the repo 15 | uses: actions/checkout@v2 16 | 17 | - name: Log in to Docker Hub 18 | uses: docker/login-action@v1 19 | with: 20 | username: dockeredlspbot 21 | password: ${{ secrets.DOCKER_HUB_PASSWORD }} 22 | 23 | - name: Build and push to Docker Hub 24 | uses: docker/build-push-action@v2 25 | with: 26 | push: true 27 | file: bash/Dockerfile 28 | tags: dockeredlsp/bash-ls:latest 29 | 30 | - name: Docker Hub Description 31 | uses: peter-evans/dockerhub-description@v2 32 | with: 33 | username: dockeredlspbot 34 | password: ${{ secrets.DOCKER_HUB_PASSWORD }} 35 | repository: dockeredlsp/bash-ls 36 | short-description: "bash-language-server in a container" 37 | readme-filepath: bash/README.md 38 | -------------------------------------------------------------------------------- /.github/workflows/image-publish-clojure-lsp.yml: -------------------------------------------------------------------------------- 1 | name: Publish Clojure-LSP image 2 | 3 | on: 4 | workflow_dispatch: 5 | schedule: 6 | - cron: "0 0 * * *" 7 | push: 8 | branches: [ $default-branch ] 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Check out the repo 15 | uses: actions/checkout@v2 16 | 17 | - name: Log in to Docker Hub 18 | uses: docker/login-action@v1 19 | with: 20 | username: dockeredlspbot 21 | password: ${{ secrets.DOCKER_HUB_PASSWORD }} 22 | 23 | - name: Build and push to Docker Hub 24 | uses: docker/build-push-action@v2 25 | with: 26 | push: true 27 | file: clojure/Dockerfile 28 | tags: dockeredlsp/clojure-lsp:latest 29 | 30 | - name: Docker Hub Description 31 | uses: peter-evans/dockerhub-description@v2 32 | with: 33 | username: dockeredlspbot 34 | password: ${{ secrets.DOCKER_HUB_PASSWORD }} 35 | repository: dockeredlsp/clojure-lsp 36 | short-description: "clojure-lsp in a container" 37 | readme-filepath: clojure/README.md 38 | -------------------------------------------------------------------------------- /.github/workflows/image-publish-css-ls.yml: -------------------------------------------------------------------------------- 1 | name: Publish CSS-LS image 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | branches: [ $default-branch ] 7 | schedule: 8 | - cron: "0 0 * * *" 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Check out the repo 15 | uses: actions/checkout@v2 16 | 17 | - name: Log in to Docker Hub 18 | uses: docker/login-action@v1 19 | with: 20 | username: dockeredlspbot 21 | password: ${{ secrets.DOCKER_HUB_PASSWORD }} 22 | 23 | - name: Build and push to Docker Hub 24 | uses: docker/build-push-action@v2 25 | with: 26 | push: true 27 | file: css/Dockerfile 28 | tags: dockeredlsp/css-ls:latest 29 | 30 | - name: Docker Hub Description 31 | uses: peter-evans/dockerhub-description@v2 32 | with: 33 | username: dockeredlspbot 34 | password: ${{ secrets.DOCKER_HUB_PASSWORD }} 35 | repository: dockeredlsp/css-ls 36 | short-description: "css-languageserver in a container" 37 | readme-filepath: css/README.md 38 | -------------------------------------------------------------------------------- /.github/workflows/image-publish-elixir-ls.yml: -------------------------------------------------------------------------------- 1 | name: Publish ElixirLS images 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | branches: [ $default-branch ] 7 | schedule: 8 | - cron: "0 0 * * *" 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Check out the repo 15 | uses: actions/checkout@v2 16 | 17 | - name: Log in to Docker Hub 18 | uses: docker/login-action@v1 19 | with: 20 | username: dockeredlspbot 21 | password: ${{ secrets.DOCKER_HUB_PASSWORD }} 22 | 23 | - name: Build and push 1.12.2 to Docker Hub 24 | uses: docker/build-push-action@v2 25 | with: 26 | push: true 27 | file: elixir/Dockerfile 28 | tags: dockeredlsp/elixir-ls:1.12.2-23.3.4 29 | build-args: | 30 | ELIXIR_VER=1.12.2 31 | OTP_VER=23.3.4 32 | 33 | - name: Build and push 1.11.2 to Docker Hub 34 | uses: docker/build-push-action@v2 35 | with: 36 | push: true 37 | file: elixir/Dockerfile 38 | tags: dockeredlsp/elixir-ls:1.11.2-23.3.4 39 | build-args: | 40 | ELIXIR_VER=1.11.2 41 | OTP_VER=23.3.4 42 | 43 | - name: Build and push 1.10.4 to Docker Hub 44 | uses: docker/build-push-action@v2 45 | with: 46 | push: true 47 | file: elixir/Dockerfile 48 | tags: dockeredlsp/elixir-ls:1.10.4-23.3.4 49 | build-args: | 50 | ELIXIR_VER=1.10.4 51 | OTP_VER=23.3.4 52 | 53 | - name: Docker Hub Description 54 | uses: peter-evans/dockerhub-description@v2 55 | with: 56 | username: dockeredlspbot 57 | password: ${{ secrets.DOCKER_HUB_PASSWORD }} 58 | repository: dockeredlsp/elixir-ls 59 | short-description: "ElixirLS in a container" 60 | readme-filepath: elixir/README.md 61 | -------------------------------------------------------------------------------- /CONTRIBUTING.rst: -------------------------------------------------------------------------------- 1 | ============ 2 | Contributing 3 | ============ 4 | If you would like to add a language server to this repository, the requirements are that 5 | 6 | - The image entrypoint is the language server executable and in "exec form", 7 | - An entry is added to the wrapper script ``dockered-lsp.sh``, 8 | - Long-form options are used for all commands, where available, 9 | - The image uses the ``-alpine`` variant of its base image, if possible, otherwise the ``-slim`` variant, 10 | - If there is no language-specific image that is appropriate to use as a base, ``debian/stable-slim`` is to be used, 11 | - There is a ``README.md`` for the Docker Hub page, and 12 | - There is a GitHub action to build and publish the image and ``README.md`` to Docker Hub. 13 | 14 | It is not required to provide multiple versions, but it may be useful to have multiple images for different versions of the *language*, such as is the case with Elixir. Your ``Dockerfile`` just needs to install the language server, and end with an ``ENTRYPOINT`` instruction that points to the language server itself, in "exec form" so that signals are passed to the language server. Depending on whether the language server is controlled via stdio or a socket, you will need to specify appropriate options to ``docker run`` in the wrapper script. (This would usually be ``--interactive`` for stdio, and either just ``--publish=`` or ``--publish-all=`` with ``EXPOSE`` instructions in the ``Dockerfile`` for sockets.) 15 | 16 | Long-form options are preferred to make scripts (including ``Dockerfile`` ``RUN`` instructions) clearer, without requiring the reader to look up several single-letter options. 17 | 18 | The Alpine and "slim" base-images are preferred in the interest of saving space. 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Creative Commons Legal Code 2 | 3 | CC0 1.0 Universal 4 | 5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE 6 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN 7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS 8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES 9 | REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS 10 | PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM 11 | THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED 12 | HEREUNDER. 13 | 14 | Statement of Purpose 15 | 16 | The laws of most jurisdictions throughout the world automatically confer 17 | exclusive Copyright and Related Rights (defined below) upon the creator 18 | and subsequent owner(s) (each and all, an "owner") of an original work of 19 | authorship and/or a database (each, a "Work"). 20 | 21 | Certain owners wish to permanently relinquish those rights to a Work for 22 | the purpose of contributing to a commons of creative, cultural and 23 | scientific works ("Commons") that the public can reliably and without fear 24 | of later claims of infringement build upon, modify, incorporate in other 25 | works, reuse and redistribute as freely as possible in any form whatsoever 26 | and for any purposes, including without limitation commercial purposes. 27 | These owners may contribute to the Commons to promote the ideal of a free 28 | culture and the further production of creative, cultural and scientific 29 | works, or to gain reputation or greater distribution for their Work in 30 | part through the use and efforts of others. 31 | 32 | For these and/or other purposes and motivations, and without any 33 | expectation of additional consideration or compensation, the person 34 | associating CC0 with a Work (the "Affirmer"), to the extent that he or she 35 | is an owner of Copyright and Related Rights in the Work, voluntarily 36 | elects to apply CC0 to the Work and publicly distribute the Work under its 37 | terms, with knowledge of his or her Copyright and Related Rights in the 38 | Work and the meaning and intended legal effect of CC0 on those rights. 39 | 40 | 1. Copyright and Related Rights. A Work made available under CC0 may be 41 | protected by copyright and related or neighboring rights ("Copyright and 42 | Related Rights"). Copyright and Related Rights include, but are not 43 | limited to, the following: 44 | 45 | i. the right to reproduce, adapt, distribute, perform, display, 46 | communicate, and translate a Work; 47 | ii. moral rights retained by the original author(s) and/or performer(s); 48 | iii. publicity and privacy rights pertaining to a person's image or 49 | likeness depicted in a Work; 50 | iv. rights protecting against unfair competition in regards to a Work, 51 | subject to the limitations in paragraph 4(a), below; 52 | v. rights protecting the extraction, dissemination, use and reuse of data 53 | in a Work; 54 | vi. database rights (such as those arising under Directive 96/9/EC of the 55 | European Parliament and of the Council of 11 March 1996 on the legal 56 | protection of databases, and under any national implementation 57 | thereof, including any amended or successor version of such 58 | directive); and 59 | vii. other similar, equivalent or corresponding rights throughout the 60 | world based on applicable law or treaty, and any national 61 | implementations thereof. 62 | 63 | 2. Waiver. To the greatest extent permitted by, but not in contravention 64 | of, applicable law, Affirmer hereby overtly, fully, permanently, 65 | irrevocably and unconditionally waives, abandons, and surrenders all of 66 | Affirmer's Copyright and Related Rights and associated claims and causes 67 | of action, whether now known or unknown (including existing as well as 68 | future claims and causes of action), in the Work (i) in all territories 69 | worldwide, (ii) for the maximum duration provided by applicable law or 70 | treaty (including future time extensions), (iii) in any current or future 71 | medium and for any number of copies, and (iv) for any purpose whatsoever, 72 | including without limitation commercial, advertising or promotional 73 | purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each 74 | member of the public at large and to the detriment of Affirmer's heirs and 75 | successors, fully intending that such Waiver shall not be subject to 76 | revocation, rescission, cancellation, termination, or any other legal or 77 | equitable action to disrupt the quiet enjoyment of the Work by the public 78 | as contemplated by Affirmer's express Statement of Purpose. 79 | 80 | 3. Public License Fallback. Should any part of the Waiver for any reason 81 | be judged legally invalid or ineffective under applicable law, then the 82 | Waiver shall be preserved to the maximum extent permitted taking into 83 | account Affirmer's express Statement of Purpose. In addition, to the 84 | extent the Waiver is so judged Affirmer hereby grants to each affected 85 | person a royalty-free, non transferable, non sublicensable, non exclusive, 86 | irrevocable and unconditional license to exercise Affirmer's Copyright and 87 | Related Rights in the Work (i) in all territories worldwide, (ii) for the 88 | maximum duration provided by applicable law or treaty (including future 89 | time extensions), (iii) in any current or future medium and for any number 90 | of copies, and (iv) for any purpose whatsoever, including without 91 | limitation commercial, advertising or promotional purposes (the 92 | "License"). The License shall be deemed effective as of the date CC0 was 93 | applied by Affirmer to the Work. Should any part of the License for any 94 | reason be judged legally invalid or ineffective under applicable law, such 95 | partial invalidity or ineffectiveness shall not invalidate the remainder 96 | of the License, and in such case Affirmer hereby affirms that he or she 97 | will not (i) exercise any of his or her remaining Copyright and Related 98 | Rights in the Work or (ii) assert any associated claims and causes of 99 | action with respect to the Work, in either case contrary to Affirmer's 100 | express Statement of Purpose. 101 | 102 | 4. Limitations and Disclaimers. 103 | 104 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 105 | surrendered, licensed or otherwise affected by this document. 106 | b. Affirmer offers the Work as-is and makes no representations or 107 | warranties of any kind concerning the Work, express, implied, 108 | statutory or otherwise, including without limitation warranties of 109 | title, merchantability, fitness for a particular purpose, non 110 | infringement, or the absence of latent or other defects, accuracy, or 111 | the present or absence of errors, whether or not discoverable, all to 112 | the greatest extent permissible under applicable law. 113 | c. Affirmer disclaims responsibility for clearing rights of other persons 114 | that may apply to the Work or any use thereof, including without 115 | limitation any person's Copyright and Related Rights in the Work. 116 | Further, Affirmer disclaims responsibility for obtaining any necessary 117 | consents, permissions or other rights required for any use of the 118 | Work. 119 | d. Affirmer understands and acknowledges that Creative Commons is not a 120 | party to this document and has no duty or obligation with respect to 121 | this CC0 or use of the Work. 122 | -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | =========================== 2 | Dockerised Language Servers 3 | =========================== 4 | 5 | ARCHIVED 2022-04-25 6 | =================== 7 | As I have moved away from Docker containers in favour of Nix environments, I am archiving this project. If anyone wishes to take over this project, I am happy to hand over ownership of the repository and the DockerHub account under which the images have been published. 8 | 9 | 10 | Overview 11 | ======== 12 | This repository is an attempt at providing `Dockerfiles` for various language servers, along with a wrapper script, that can be run transparently by any LSP_ client, without the client having to know anything about Docker. Simply build the image you need, and point your text editor to the corresponding wrapper script. 13 | 14 | Contributions, questions, and feedback are more than welcome, especially at this early stage. 15 | 16 | 17 | Usage 18 | ===== 19 | Any language server available through this project can be run by invoking the ``dockered-lsp`` script (located under ``bin``) with the name of their language server. For example ``dockered-lsp bash-language-server``. For some language servers, we provide a symlink to this script named after the language server executable, meaning that you can simply add this repository's ``bin`` directory to your ``$PATH`` environment variable, without having to configure your client specially to use the wrapper script. (This is not provided for all language servers, because some use a generic name for their executable, such as elixir-ls, whose executable is named ``language_server.sh``.) 20 | 21 | The images are automatically built and pushed to Docker Hub periodically, and since ``docker run`` will automatically try to pull images that do not exist in the local registry, no further setup is required when using the ``dockered-lsp`` script. 22 | 23 | 24 | Optional Home Directory Isolation 25 | ================================= 26 | By default, ``dockered-lsp`` mounts your home directory inside the container at the same path as your home directory in the host. i.e. ``$HOME`` on the host, is ``$HOME`` in the container. This allows the containers to be run by any client without the client having to do path translation itself. The downside to this is that it exposes your entire home directory to the container, potentially exposing sensitive files to malicious or misbehaving containers. 27 | 28 | If you wish to expose only certain subdirectories of your home directory, you can specify them in ``~/.config/dockered-lsp/home-mounts``, one per line. So, for example, to expose only ``~/src``, create that file with only one line: ``src``. 29 | 30 | 31 | Example Configurations 32 | ====================== 33 | lsp-mode_ 34 | --------- 35 | :: 36 | 37 | (dir-locals-set-class-variables 'elixirls-1-10 38 | '((elixir-mode . 39 | ((lsp-elixir-server-command . ("/path/to/dockered-language-servers/dockered-lsp.sh" "elixir-1.10")) 40 | (eval . (lsp)))))) 41 | 42 | (dir-locals-set-directory-class 43 | "/path/to/elixir-1.10/project" 'elixirls-1-10) 44 | 45 | 46 | 47 | Related Tools 48 | ============= 49 | lsp-docker_ 50 | ----------- 51 | A companion Emacs package to `lsp-mode`_ that eliminates the need for wrapper scripts, but at the cost of making your Emacs init a bit more complicated. This is what the original author was using before starting this project, as they found it simpler to use a transparent wrapper script for each language server and configure `lsp-mode` on a per-project basis with Directory Variables. 52 | 53 | rid_ (Run In Docker) 54 | ---------------------- 55 | A tool for running commands inside Docker containers, with a configuration syntax akin to that of docker-compose_, and that can also generate wrapper scripts. May be used with the `Dockerfiles` in this repository. 56 | 57 | 58 | Contributing 59 | ============ 60 | See `CONTRIBUTING.rst`_. 61 | 62 | .. _LSP: https://microsoft.github.io/language-server-protocol 63 | .. _lsp-docker: https://github.com/emacs-lsp/lsp-docker 64 | .. _lsp-mode: https://github.com/emacs-lsp/lsp-mode 65 | .. _rid: https://github.com/xendk/rid 66 | .. _docker-compose: https://docs.docker.com/compose 67 | .. _CONTRIBUTING.rst: CONTRIBUTING.rst 68 | -------------------------------------------------------------------------------- /bash/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:current-alpine 2 | 3 | RUN npm install --global bash-language-server 4 | 5 | ENTRYPOINT ["/usr/local/bin/bash-language-server"] 6 | -------------------------------------------------------------------------------- /bash/README.md: -------------------------------------------------------------------------------- 1 | Bash Language Server 2 | ==================== 3 | 4 | This provide an image for the [Bash Language Server][1] based on the latest [Node.js image][2]. 5 | 6 | For information on how to use these images, see the [dockered-language-servers][3] project. 7 | 8 | [1]: https://github.com/bash-lsp/bash-language-server 9 | [2]: https://hub.docker.com/_/node 10 | [3]: https://github.com/aidalgol/dockered-language-servers 11 | -------------------------------------------------------------------------------- /bin/bash-language-server: -------------------------------------------------------------------------------- 1 | dockered-lsp -------------------------------------------------------------------------------- /bin/clojure-lsp: -------------------------------------------------------------------------------- 1 | dockered-lsp -------------------------------------------------------------------------------- /bin/dockered-lsp: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -eEu -o pipefail 3 | shopt -s failglob 4 | trap 'echo >&2 "${BASH_SOURCE:-$0}:${LINENO}: unknown error"' ERR 5 | 6 | registry_namespace=dockeredlsp 7 | home_mounts_path="$HOME/.config/dockered-lsp/home-mounts" 8 | 9 | common_opts=( 10 | --rm 11 | --interactive 12 | --user="$(id -u):$(id -g)" 13 | ) 14 | 15 | load_home_mount_file() { 16 | if [ -f "$home_mounts_path" ]; then 17 | while IFS= read -r path; do 18 | common_opts+=(--mount="type=bind,source=$HOME/$path,destination=$HOME/$path") 19 | done < "$home_mounts_path" 20 | else 21 | common_opts+=(--mount="type=bind,source=$HOME,destination=$HOME") 22 | fi 23 | } 24 | 25 | exec_image() { 26 | image_name="$registry_namespace/$1" 27 | shift 28 | exec docker run "${common_opts[@]}" "$image_name" "$@" 29 | } 30 | 31 | exec_elixir_image() { 32 | image_name="$registry_namespace/$1" 33 | shift 34 | exec docker run "${common_opts[@]}" \ 35 | --env="MIX_HOME=$HOME/.mix" \ 36 | --env="HEX_HOME=$HOME/.hex" \ 37 | "$image_name" "$@" 38 | } 39 | 40 | if [ "$(basename "$0")" == "dockered-lsp" ]; then 41 | if [ "$#" -lt 1 ]; then 42 | echo "Usage: $0 LANGUAGE-SERVER" >&2 43 | exit 1 44 | fi 45 | server_name="$1" 46 | shift 47 | else 48 | server_name="$(basename "$0")" 49 | fi 50 | 51 | load_home_mount_file 52 | 53 | case "$server_name" in 54 | elixir-ls-1.10.4) exec_elixir_image elixir-ls:1.10.4-23.3.4 "$@" ;; 55 | elixir-ls-1.11.2) exec_elixir_image elixir-ls:1.11.2-23.3.4 "$@" ;; 56 | elixir-ls-1.12.2) exec_elixir_image elixir-ls:1.12.2-23.3.4 "$@" ;; 57 | bash-language-server) exec_image bash-ls:latest "$@" ;; 58 | css-languageserver) exec_image css-ls:latest "$@" ;; 59 | clojure-lsp) exec_image clojure-ls:latest "$@" ;; 60 | *) echo "No such language server \"$server_name\"" >&2; exit 1 ;; 61 | esac 62 | -------------------------------------------------------------------------------- /clojure/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:stable-slim 2 | WORKDIR /opt/clojure-lsp 3 | RUN apt-get update && apt-get install --yes wget unzip 4 | RUN wget https://github.com/clojure-lsp/clojure-lsp/releases/download/2021.05.27-17.42.34/clojure-lsp-native-linux-amd64.zip && \ 5 | unzip clojure-lsp-native-linux-amd64.zip && \ 6 | rm clojure-lsp-native-linux-amd64.zip && \ 7 | chmod +x clojure-lsp 8 | ENTRYPOINT ["/opt/clojure-lsp/clojure-lsp"] 9 | -------------------------------------------------------------------------------- /clojure/README.md: -------------------------------------------------------------------------------- 1 | clojure-lsp 2 | =========== 3 | 4 | This provide an image for [clojure-lsp][1]. 5 | 6 | For information on how to use these images, see the [dockered-language-servers][2] project. 7 | 8 | [1]: https://clojure-lsp.github.io/clojure-lsp/ 9 | [2]: https://github.com/aidalgol/dockered-language-servers 10 | -------------------------------------------------------------------------------- /css/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:current-alpine 2 | 3 | RUN npm install -g vscode-css-languageserver-bin 4 | 5 | ENTRYPOINT ["/usr/local/bin/css-languageserver"] 6 | -------------------------------------------------------------------------------- /css/README.md: -------------------------------------------------------------------------------- 1 | CSS Language Server 2 | ==================== 3 | 4 | This provide an image for the [VSCode CSS Language Server][1] based on the latest [Node.js image][2]. 5 | 6 | For information on how to use these images, see the [dockered-language-servers][3] project. 7 | 8 | [1]: https://github.com/vscode-langservers/vscode-css-languageserver-bin#readme 9 | [2]: https://hub.docker.com/_/node 10 | [3]: https://github.com/aidalgol/dockered-language-servers 11 | -------------------------------------------------------------------------------- /elixir/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG ELIXIR_VER 2 | ARG OTP_VER 3 | ARG ALPINE_VER=3.13.3 4 | FROM hexpm/elixir:${ELIXIR_VER}-erlang-${OTP_VER}-alpine-${ALPINE_VER} AS build 5 | WORKDIR /opt/ 6 | ARG ELIXIR_LS_VER=0.7.0 7 | RUN wget https://github.com/elixir-lsp/elixir-ls/archive/refs/tags/v$ELIXIR_LS_VER.tar.gz 8 | RUN apk add git 9 | RUN tar -xf v$ELIXIR_LS_VER.tar.gz && \ 10 | cd elixir-ls-$ELIXIR_LS_VER && \ 11 | mix local.hex --force && mix local.rebar --force && \ 12 | mix do deps.get, compile, elixir_ls.release -o /opt/elixir-ls 13 | 14 | FROM hexpm/elixir:${ELIXIR_VER}-erlang-${OTP_VER}-alpine-${ALPINE_VER} 15 | ARG ELIXIR_LS_VER 16 | COPY --from=build /opt/elixir-ls /opt/elixir-ls 17 | RUN chmod a+x /opt/elixir-ls/*.sh 18 | ENTRYPOINT ["/opt/elixir-ls/language_server.sh"] 19 | -------------------------------------------------------------------------------- /elixir/README.md: -------------------------------------------------------------------------------- 1 | Elixir Language Server (ElixirLS) 2 | ================================= 3 | 4 | This provides images for the [Elixir Language Server][1] based on the [`elixir` images][2], for different versions of Elixir. 5 | 6 | For information on how to use these images, see the [dockered-language-servers][3] project. 7 | 8 | [1]: https://github.com/elixir-lsp/elixir-ls 9 | [2]: https://hub.docker.com/_/elixir 10 | [3]: https://github.com/aidalgol/dockered-language-servers 11 | --------------------------------------------------------------------------------