Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aminnairi/elm-docker
Docker image for the Elm language
https://github.com/aminnairi/elm-docker
docker docker-compose elm
Last synced: 11 days ago
JSON representation
Docker image for the Elm language
- Host: GitHub
- URL: https://github.com/aminnairi/elm-docker
- Owner: aminnairi
- License: bsd-3-clause
- Created: 2019-09-25T14:10:21.000Z (over 5 years ago)
- Default Branch: latest
- Last Pushed: 2020-05-01T11:40:06.000Z (over 4 years ago)
- Last Synced: 2024-11-15T20:36:33.265Z (2 months ago)
- Topics: docker, docker-compose, elm
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/aminnairi/elm
- Size: 27.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# elm
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/aminnairi/elm)](https://hub.docker.com/r/aminnairi/elm) [![Docker Image Size (tag)](https://img.shields.io/docker/image-size/aminnairi/elm/latest)](https://hub.docker.com/r/aminnairi/elm) [![Docker Pulls](https://img.shields.io/docker/pulls/aminnairi/elm)](https://hub.docker.com/r/aminnairi/elm)
Docker image for Elm.
## Requirements
- [Docker](https://www.docker.com/)
- [Docker Compose](https://docs.docker.com/compose/) (optional)## Usage
### Docker
```console
$ docker run --rm --tty --interactive --user elm --volume "$PWD":/home/elm aminnairi/elm elm init
$ docker run --rm --tty --interactive --user elm --volume "$PWD":/home/elm --publish 8000:8000 aminnairi/elm elm reactor
```### Docker Compose
```console
$ mkdir my-elm-app
$ cd my-elm-app
$ touch docker-compose.yaml
``````yaml
version: "3"services:
elm:
image: aminnairi/elm
user: elm
working_dir: /home/elm
tty: true
stdin_open: true
entrypoint: elm
ports:
- 8000:8000
volumes:
- .:/home/elm
``````console
$ docker-compose run --rm elm init
$ docker-compose run --rm --service-ports elm reactor
```## Shell alias
```console
$ alias elm='docker run --rm --tty --interactive --user elm --volume "$PWD":/home/elm aminnairi/elm elm'
$ alias elmreactor='docker run --rm --tty --interactive --user elm --volume "$PWD":/home/elm --publish 8000:8000 aminnairi/elm elm reactor'
$ mkdir my-elm-app
$ cd my-elm-app
$ elm init
$ elmreactor
```## Installation
```console
$ docker pull aminnairi/elm
```## Uninstallation
```console
$ docker rmi -f aminnairi/elm
```## From sources
### Requirements
- [Git](https://git-scm.com/)
- [Docker](https://www.docker.com/)### Installation
```console
$ git clone https://github.com/aminnairi/elm-docker.git
$ cd elm-docker
$ make install
$ cd ..
$ mkdir my-elm-app
$ cd my-elm-app
$ docker run --rm --tty --interactive --user elm --volume "$PWD":/home/elm aminnairi/elm elm init
```### Uninstallation
```console
$ make uninstall
```