https://github.com/henrikac/docker-crystal
Docker image for crystal development
https://github.com/henrikac/docker-crystal
crystal crystal-lang docker
Last synced: about 1 year ago
JSON representation
Docker image for crystal development
- Host: GitHub
- URL: https://github.com/henrikac/docker-crystal
- Owner: henrikac
- License: mit
- Created: 2021-04-22T23:43:03.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-28T19:00:51.000Z (almost 5 years ago)
- Last Synced: 2025-01-05T23:12:20.457Z (about 1 year ago)
- Topics: crystal, crystal-lang, docker
- Language: Dockerfile
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Crystal Docker
A great image for you if you want to try out [crystal](https://crystal-lang.org/).
## Contains
* [ubuntu](https://ubuntu.com/)
* [crystal](https://crystal-lang.org/)
* [vim](https://www.vim.org/) (including vim-plugin for crystal)
Do you want to use VS Code instead of vim? Then it is recommended to use the [remote container extension](https://code.visualstudio.com/docs/remote/containers) instead of installing VS Code inside the container.
## Requirements
* [Docker](https://www.docker.com/?utm_source=google&utm_medium=cpc&utm_campaign=dockerhomepage&utm_content=nemea&utm_term=dockerhomepage&utm_budget=growth)
## Usage
#### Get image
```bash
docker pull henrikac/crystal
```
#### Run container
###### If container does not already exist
```bash
docker run -it --name crystal henrikac/crystal
```
*Notes:*
* if `--name container-name` is not specified a new container will be created every time.
* add `--network=host` if you want to access e.g. `http://localhost:8080` (`crystal play`) outside the container.
###### If container already exist
```bash
docker start crystal && docker attach crystal
```