Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
9101efc8
Unverified
Commit
9101efc8
authored
Mar 25, 2018
by
Vaibhav Sagar
Committed by
GitHub
Mar 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #844 from jcberentsen/stackdocker
Support using 'stack --docker'
parents
02fae1df
bc6d9cad
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
README.md
README.md
+23
-0
Dockerfile
docker/Dockerfile
+13
-0
stack.yaml
stack.yaml
+5
-0
No files found.
README.md
View file @
9101efc8
...
@@ -81,6 +81,29 @@ Currently the component that takes the longest time to compile is
...
@@ -81,6 +81,29 @@ Currently the component that takes the longest time to compile is
`ihaskell-widgets`
, so if you're in a hurry you may want to comment that out in
`ihaskell-widgets`
, so if you're in a hurry you may want to comment that out in
`stack.yaml`
.
`stack.yaml`
.
## Stack development with Docker
This is an alternative way to use Docker than above, taking advantage of stack's Docker support.
Makes it easy to install new packages with
`stack --docker install <pkg>`
without having to rebuild a docker image.
Like the other Docker workflow, this doesn't require any host dependecies to be installed.
```
bash
docker build
-t
ihaskell-dev docker
stack
--docker
setup
stack
--docker
install
stack
--docker
exec
ihaskell
--
install
--stack
stack
--docker
exec
jupyter
--
notebook
--ip
=
0.0.0.0 notebooks
```
Everything in the LTS can be made available!
To add a package outside the LTS, simply add it to the
`stack.yaml`
file (See: "Where are my packages?" below).
Then install the package with stack before restarting
`jupyter`
```
bash
# after adding details about mypackage to stack.yaml
stack
--docker
install
mypackage
stack
--docker
exec
jupyter
--
notebook notebooks
```
## Nix
## Nix
If you have the
`nix`
package manager installed, you can create an IHaskell
If you have the
`nix`
package manager installed, you can create an IHaskell
...
...
docker/Dockerfile
0 → 100644
View file @
9101efc8
FROM
fpco/stack-build:lts-11.1
# docker build -t ihaskell-dev docker
# Install all necessary Ubuntu packages
RUN
apt-get update
&&
apt-get
install
-y
python3-pip libgmp-dev libmagic-dev libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libblas-dev liblapack-dev gcc g++
&&
\
rm
-rf
/var/lib/apt/lists/
*
# Install Jupyter notebook
RUN
pip3
install
-U
jupyter
ENV
LANG en_US.UTF-8
EXPOSE
8888
stack.yaml
View file @
9101efc8
...
@@ -31,6 +31,11 @@ extra-deps:
...
@@ -31,6 +31,11 @@ extra-deps:
-
mfsolve-0.3.2.0
-
mfsolve-0.3.2.0
-
fast-math-1.0.2
-
fast-math-1.0.2
docker
:
repo
:
"
ihaskell-dev:latest"
enable
:
false
run-args
:
[
"
--net=bridge"
,
"
-p8888:8888"
]
nix
:
nix
:
enable
:
false
enable
:
false
packages
:
packages
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment