A docker image for solargraph.
- docker
Pull and Run.
$ docker run ghcr.io/notfounds/solargraph-docker:latest
{
"solargraph.useBundler": false,
"solargraph.transport": "external",
"solargraph.externalServer": {
"host": "localhost",
"port": 7658
},
}
- Start container
- Open your ruby project
It builds an image named "solargraph" and tag it with version.
$ make build
It runs an image with port 7658 and named "solargraph"
$ make start
72aac5173c7f6aba7e6bca3a8bd6087cb549c3ebdb691db2b4ca0f3c42d7e4df
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
72aac5173c7f solargraph:1.1 "/usr/local/bundle/b…" 3 seconds ago Up 1 second 0.0.0.0:7658->7658/tcp, :::7658->7658/tcp solargraph
It stops the container
$ make stop