https://github.com/notfounds/solargraph-docker
A docker image for solargraph
https://github.com/notfounds/solargraph-docker
docker lsp ruby solargraph vscode
Last synced: about 2 months ago
JSON representation
A docker image for solargraph
- Host: GitHub
- URL: https://github.com/notfounds/solargraph-docker
- Owner: NotFounds
- License: mit
- Created: 2021-07-06T03:36:43.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T08:36:21.000Z (about 2 years ago)
- Last Synced: 2024-05-28T21:31:12.387Z (about 2 years ago)
- Topics: docker, lsp, ruby, solargraph, vscode
- Language: Makefile
- Homepage:
- Size: 107 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# solargraph-docker
[](https://github.com/NotFounds/solargraph-docker/actions/workflows/docker-publish.yml)
A docker image for [solargraph](https://github.com/castwide/solargraph/).
## Requirements
- docker
## How to use
Pull and Run.
```sh
$ docker run ghcr.io/notfounds/solargraph-docker:latest
```
## Getting Started with VSCode
### Requirements
- [Visual Studio Code](https://code.visualstudio.com/)
- [vscode-solargraph](https://github.com/castwide/vscode-solargraph)
- [Build image](#build-image)
### Configuration for VSCode
```json
{
"solargraph.useBundler": false,
"solargraph.transport": "external",
"solargraph.externalServer": {
"host": "localhost",
"port": 7658
},
}
```
### Run the solargraph server and Open Ruby project
1. [Start container](#start-container)
2. Open your ruby project
## For development
### Build image
It builds an image named "solargraph" and tag it with version.
```sh
$ make build
```
### Start container
It runs an image with port 7658 and named "solargraph"
```sh
$ 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
```
### Stop container
It stops the container
```sh
$ make stop
```