Skip to content

Commit

Permalink
merging docker files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Echsecutor committed Jul 16, 2021
1 parent 7b198da commit 56ac8ed
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 55 deletions.
19 changes: 0 additions & 19 deletions build/Dockerfile.base.buster

This file was deleted.

28 changes: 0 additions & 28 deletions build/Dockerfile.base.ubuntu18

This file was deleted.

25 changes: 21 additions & 4 deletions build/Dockerfile.buster
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,27 @@
# author: Guido Wischrop <guido.wischrop@mgm-tp.com>
# version: 1.1+2021-06-02

ARG BUILDER_BASE=indy-node-container/base:buster
ARG BASE=python:3.6-slim-buster

FROM $BUILDER_BASE AS builder
FROM python:3.6-slim-buster as base

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
libsodium-dev \
libsecp256k1-dev \
libssl-dev \
liblzma-dev \
libsnappy-dev \
liblz4-dev \
libbz2-dev \
zlib1g-dev \
librocksdb-dev \
software-properties-common \
gnupg2 \
build-essential \
&& apt-get autoremove -y

FROM base AS builder

# ubuntu 18 libindy package
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 && \
Expand All @@ -29,7 +46,7 @@ RUN \

RUN pip install python3-indy indy-node==1.12.4 indy-plenum==1.12.4

FROM $BASE
FROM base

RUN apt-get update && \
apt-get upgrade -y && \
Expand Down
36 changes: 32 additions & 4 deletions build/Dockerfile.ubuntu18
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,38 @@
# author: Guido Wischrop <guido.wischrop@mgm-tp.com>
# version: 1.1+2021-06-02

ARG BUILDER_BASE=indy-node-container/base:ubuntu
ARG BASE=ubuntu:18.04

FROM $BUILDER_BASE AS builder
# this docker file is assembled from the files in https://github.com/hyperledger/indy-node/tree/master/environment/docker/pool

FROM ubuntu:18.04 AS base

# Install environment
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y \
git \
wget \
python3.6 \
python3-pip \
python3-nacl \
apt-transport-https \
ca-certificates \
software-properties-common \
libsodium-dev \
libsecp256k1-dev \
libssl-dev \
liblzma-dev \
libsnappy-dev \
liblz4-dev \
libbz2-dev \
zlib1g-dev \
librocksdb-dev \
software-properties-common \
&& apt-get autoremove -y
RUN pip3 install -U \
'pip<10.0.0' \
setuptools


FROM base AS builder

# deprecated dependencies based on libssl1.0 / libiny-crypto
RUN \
Expand All @@ -22,7 +50,7 @@ RUN \

RUN pip install python3-indy indy-node==1.12.4 indy-plenum==1.12.4

FROM $BASE
FROM base

RUN apt-get update && \
apt-get upgrade -y && \
Expand Down

0 comments on commit 56ac8ed

Please sign in to comment.