stbraun / ProgrammingInHaskell

Some Haskell examples and exercises

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProgrammingInHaskell

Build Docker image:

docker build -t stefanbraun/pih:shell .

Run a container:

docker run --name pi_shell -it -e USER_NAME="<name for git commit>" -e USER_EMAIL=<email for git commit> stefanbraun/pih:shell

Alternatively use docker-compose to run the application. Be sure docker.compose.yaml is in the root folder of the project.

docker-compose up -d

To attach to the shell in the container run:

docker-compose exec pih_shell bash

Stop and remove containers using:

docker-compose down

Run a command in a new container. Use --rm to remove the container after completion of the command.

docker-compose run --rm <service> <command> [<args> ...]
# E.g.
docker-compose run --rm pih_shell stack repl

About

Some Haskell examples and exercises

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 99.4%Language:Dockerfile 0.4%Language:Shell 0.2%