Browse Source

squeezed pEp Engine into a container

master
nkls 1 week ago
parent
commit
3c8e878f99
4 changed files with 47 additions and 4 deletions
  1. BIN
      .Dockerfile.pep.swp
  2. +29
    -4
      Dockerfile.pep
  3. +4
    -0
      local.conf.libpEpTransport
  4. +14
    -0
      local.conf.pEpEngine

BIN
.Dockerfile.pep.swp View File


+ 29
- 4
Dockerfile.pep View File

@ -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

+ 4
- 0
local.conf.libpEpTransport View File

@ -0,0 +1,4 @@
PREFIX=$(HOME)/local
YML2_PATH=$(HOME)/src/yml2
YML2_PROC=$(YML2_PATH)/yml2proc $(YML2_OPTS)
YML2_OPTS=--encoding=utf8

+ 14
- 0
local.conf.pEpEngine View File

@ -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…
Cancel
Save