-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (47 loc) · 1.33 KB
/
Dockerfile
File metadata and controls
56 lines (47 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# A dockerfile describing a container with all necessary dependencies
# to use the full cbadc feature suit.
FROM jupyter/scipy-notebook:latest
LABEL maintainer="Hampus Malmberg <hampus.malmberg88@gmail.com>"
USER root
# install ngspice dependencies
RUN apt-get update && apt-get install -y \
bison \
flex \
build-essential \
autoconf \
automake \
libtool \
libxaw7-dev \
libreadline-dev \
git
# clone ngspice repo
RUN git clone git://git.code.sf.net/p/ngspice/ngspice
# configure and install ngspice
RUN cd ngspice && \
./autogen.sh && \
./configure --enable-xspice --enable-cider --disable-debug --with-readline=yes --enable-openmp && \
make clean && \
make && \
make install && \
cd .. && \
rm -rf ngspice
# install rust
RUN apt-get update && apt-get install -y \
curl
# switch back to joyvan user
USER ${NB_UID}
# install rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
# put cargo into path
ENV PATH="${HOME}/.cargo/bin:${PATH}"
# clone calib
RUN git clone https://github.com/hammal/calib.git
# install calib
RUN cd calib && \
RUSTFLAGS="-C target-cpu=native" cargo install --path .
# copy cbadc
COPY --chown=${NB_UID} . ${HOME}/cbadc
# install cbadc
RUN cd cbadc && \
python -m pip install -e . && \
python -m pip install black pytest