Browse Source

started making pEp engine container, not finished yet

master
nkls 3 weeks ago
parent
commit
2de3422b9d
3 changed files with 47 additions and 5 deletions
  1. BIN
      .Dockerfile.pep.swp
  2. +5
    -5
      Dockerfile.peer
  3. +42
    -0
      Dockerfile.pep

BIN
.Dockerfile.pep.swp View File


+ 5
- 5
Dockerfile.peer View File

@ -1,7 +1,7 @@
#FROM dockerreg.pep.security/nkls/pepdocker/peppythonadapter:latest
FROM debian:buster-slim
RUN apt update -y && apt upgrade -y
RUN apt install -y git wget build-essential nano bison python3 linux-perf nmap iputils-ping
RUN apt install -y git wget build-essential nano bison python3 linux-perf nmap iputils-ping libssl-dev
RUN mkdir /code
WORKDIR /code
@ -9,13 +9,13 @@ WORKDIR /code
ENV PREFIX=/usr/local
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
RUN tar -xf boost_1_76_0.tar.gz
WORKDIR /code/boost_1_76_0/tools/build
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz
RUN tar -xf boost_1_80_0.tar.gz
WORKDIR /code/boost_1_80_0/tools/build
RUN ./bootstrap.sh
RUN ./b2 install --prefix=$PREFIX
WORKDIR /code/boost_1_76_0
WORKDIR /code/boost_1_80_0
RUN ./bootstrap.sh
RUN ./b2 --prefix=$PREFIX
RUN ./b2 install --prefix=$PREFIX


+ 42
- 0
Dockerfile.pep View File

@ -0,0 +1,42 @@
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 mkdir $HOME/downloads
WORKDIR $HOME/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 $HOME/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 $HOME/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 ASN1c
RUN mkdir $HOME/src/asn1c
WORKDIR $HOME/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
ENTRYPOINT /bin/bash

Loading…
Cancel
Save