Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from MilesCranmer/master
Created basic dockerfile
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Base image | ||
FROM ubuntu:14.04 | ||
|
||
# No interaction during install | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install essentials | ||
RUN apt-get -qqy update && \ | ||
apt-get -qqy install \ | ||
build-essential \ | ||
libopenmpi-dev \ | ||
openmpi-bin \ | ||
libgsl0-dev \ | ||
git \ | ||
curl | ||
|
||
# Load fastpm into docker | ||
WORKDIR /fastpm | ||
COPY . . | ||
|
||
# Build fastpm | ||
RUN cd /fastpm && \ | ||
echo "CC = mpicc\nOPENMP = -fopenmp\nCPPFLAGS = -DFASTPM_FFT_PRECISION=32\nOPTIMIZE = -O3 -g" > Makefile.local && \ | ||
make | ||
|
||
# Expose an address for jupyter notebooks | ||
EXPOSE 8888 | ||
|
||
# Folder which can be used for connecting data directories | ||
WORKDIR /workspace | ||
|
||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters