Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 996 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 996 Bytes

solargraph-docker

docker container of solargraph server for Visual Studio Code

Requirement

Install the docker engine in a way that suits your execution environment. Docker Engine

Setup

  1. Build docker image
$ cp YOUR_PROJECT_FOLDER/Gemfile YOUR_PROJECT_FOLDER/Gemfile.lock .
$ docker build -t vscode-solargraph:latest .

If you want to specify the ruby version, let's specify it with arg as follows

$ docker build -t vscode-solargraph:latest --build-arg RUBY_VERSION="x.x.x" .
  1. Start docker container
$ docker run -d --rm -p 8091:7658 --name solargraph vscode-solargraph
  1. Setup Visual Studio Code
"solargraph.transport": "external",
"solargraph.externalServer": {
    "host": "localhost",
    "port": 8091
}