Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k-bx/docker-ghc-7.8
https://github.com/k-bx/docker-ghc-7.8
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/k-bx/docker-ghc-7.8
- Owner: k-bx
- Created: 2014-04-12T21:20:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-24T18:21:18.000Z (over 9 years ago)
- Last Synced: 2024-10-04T15:44:03.665Z (about 1 month ago)
- Language: Shell
- Size: 286 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Dockerfile for GHC 7.8.3 on Ubuntu 12.04
========================================Building:
```
make
```You can see Makefile for additional options or manual command launch.
Running:
First, pull an image:
```
sudo docker pull kobx/ghc-7.8
```Then run it:
```
sudo docker run -d -P --name ghc -v /home/username/workspace/myproj:/root/myproj:rw kobx/ghc-7.8
```Connecting (password is "docker"):
```
➜ docker-ghc-7.8 sudo docker port ghc 22
0.0.0.0:49153
➜ docker-ghc-7.8 ssh [email protected] -p 49153
[email protected]'s password:
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)* Documentation: https://help.ubuntu.com/
Last login: Sat Apr 12 21:15:37 2014 from 172.17.42.1
root@e7bee61ffb12:~# ghci
GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
```Another method is connecting via [nsenter](https://github.com/jpetazzo/nsenter).
Stopping / removing running image:
```
sudo docker stop ghc
sudo docker rm ghc
```