Repository where nkls researches and experiments with mixnet things
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

76 lines
2.2 KiB

FROM debian:buster-slim
RUN apt update -y && apt upgrade -y
RUN apt install -y sudo curl git build-essential python3 clang pkg-config nettle-dev capnproto libssl-dev python-pip python3-lxml libtool autoconf uuid-dev sqlite3 libsqlite3-dev
RUN mkdir $HOME/src
#install rust
RUN df
RUN mkdir $HOME/downloads
WORKDIR /root/downloads
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
RUN chmod +x rustup.sh
RUN ./rustup.sh -y
ENV PATH=$PATH:/root/.cargo/bin
#build sequoia
RUN mkdir $HOME/src/sequoia
WORKDIR /root/src/sequoia
RUN git clone https://gitlab.com/sequoia-pgp/sequoia.git .
RUN git checkout openpgp/v1.3.1
RUN cargo update -p nettle-sys --precise 2.0.8
RUN cargo build -p sequoia-openpgp-ffi --release
RUN make -C openpgp-ffi install PREFIX=$HOME/local
#build YML2
RUN mkdir $HOME/src/yml2
WORKDIR /root/src/yml2
ENV PATH=$PATH:$HOME/src/yml2
RUN git clone https://gitea.pep.foundation/fdik/yml2 .
RUN git checkout 2.7.1
RUN make install
#build libetpan
RUN mkdir $HOME/src/libetpan
WORKDIR /root/src/libetpan
RUN git clone https://gitea.pep.foundation/pEp.foundation/libetpan .
RUN mkdir build
RUN ./autogen.sh --prefix=$HOME/local
RUN make install
#build ASN1c
RUN mkdir $HOME/src/asn1c
WORKDIR /root/src/asn1c
RUN git clone https://github.com/vlm/asn1c.git .
RUN git checkout tags/v0.9.28 -b pep-engine
RUN autoreconf -iv
RUN ./configure --prefix=$HOME/local
RUN make install
#build libpEpTransport
RUN mkdir $HOME/src/libpEpTransport
WORKDIR /root/src/libpEpTransport
RUN git clone https://gitea.pep.foundation/pEp.foundation/libpEpTransport.git .
COPY local.conf.libpEpTransport /root/src/libpEpTransport/local.conf
RUN make src
RUN make install
#build pEpEngine
RUN ls -l
RUN mkdir $HOME/src/pEpEngine
WORKDIR /root/src/pEpEngine
RUN git clone https://gitea.pep.foundation/pEp.foundation/pEpEngine .
COPY local.conf.pEpEngine /root/src/pEpEngine/local.conf
RUN make install
RUN make dbinstall
#build libpEpAdapter
RUN mkdir $HOME/src/libpEpAdapter
WORKDIR /root/src/libpEpAdapter
RUN git clone https://gitea.pep.foundation/pEp.foundation/libpEpAdapter .
RUN ls -l /root/src/libpEpAdapter
RUN ls -l /root/src/libpEpAdapter/src
#RUN make install PREFIX=$HOME/local
ENTRYPOINT /bin/bash