squeezed pEp Engine into a container
parent
2de3422b9d
commit
3c8e878f99
Binary file not shown.
|
@ -6,7 +6,7 @@ RUN mkdir $HOME/src
|
|||
|
||||
#install rust
|
||||
RUN mkdir $HOME/downloads
|
||||
WORKDIR $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
|
||||
|
@ -14,7 +14,7 @@ ENV PATH=$PATH:/root/.cargo/bin
|
|||
|
||||
#build sequoia
|
||||
RUN mkdir $HOME/src/sequoia
|
||||
WORKDIR $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
|
||||
|
@ -23,20 +23,45 @@ RUN make -C openpgp-ffi install PREFIX=$HOME/local
|
|||
|
||||
#build YML2
|
||||
RUN mkdir $HOME/src/yml2
|
||||
WORKDIR $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 $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 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
|
||||
|
||||
ENTRYPOINT /bin/bash
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
PREFIX=$(HOME)/local
|
||||
YML2_PATH=$(HOME)/src/yml2
|
||||
YML2_PROC=$(YML2_PATH)/yml2proc $(YML2_OPTS)
|
||||
YML2_OPTS=--encoding=utf8
|
|
@ -0,0 +1,14 @@
|
|||
PREFIX=$(HOME)/local
|
||||
PER_MACHINE_DIRECTORY=$(PREFIX)/share/pEp
|
||||
|
||||
YML2_PATH=$(HOME)/src/yml2
|
||||
|
||||
ETPAN_LIB=-L$(PREFIX)/lib
|
||||
ETPAN_INC=-I$(PREFIX)/include
|
||||
|
||||
ASN1C=$(PREFIX)/bin/asn1c
|
||||
ASN1C_INC=-I$(PREFIX)/share/asn1c
|
||||
|
||||
OPENPGP=SEQUOIA
|
||||
|
||||
export PKG_CONFIG_PATH=$(PREFIX)/share/pkgconfig/
|
Loading…
Reference in New Issue