Public Repository

Last pushed: 2 years ago
Short Description
Container with OpenChain peer built during dev env set-up
Full Description

Refer to this part of the repo to understand how it is build (no Docker file) : https://github.com/openblockchain/obc-peer/tree/master/openchain/container

Docker Pull Command
Owner
besn0847

Comments (1)
besn0847
2 years ago

Docker file from ImageLayers.Io :

ADD file:6e3677c176d6d774f006ce8f0dcd1e60753af9613eef0e7f707691290d6f6808 in /
CMD "/bin/bash"
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl wget && rm -rf /var/lib/apt/lists/
RUN apt-get update && apt-get install -y --no-install-recommends bzr git mercurial openssh-client subversion procps && rm -rf /var/lib/apt/lists/

RUN apt-get update && apt-get install -y --no-install-recommends g++ gcc libc6-dev make && rm -rf /var/lib/apt/lists/*
ENV GOLANG_VERSION=1.6
ENV GOLANG_DOWNLOAD_URL=https://golang.org/dl/go1.6.linux-amd64.tar.gz
ENV GOLANG_DOWNLOAD_SHA256=5470eac05d273c74ff8bac7bef5bad0b5abbd1c4052efbdbc8db45332e836b0b
RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz && echo "$GOLANG_DOWNLOAD_SHA256 golang.tar.gz" | sha256sum -c - && tar -C /usr/local -xzf golang.tar.gz && rm golang.tar.gz
ENV GOPATH=/go
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR /go
COPY file:7e87b0ea22c04c4ebf8c516b8a68afbd30938d3a2cba2e4e91715a4b3cf5a73d in /usr/local/bin/
RUN cd /opt && git clone --branch v4.1 --single-branch --depth 1 https://github.com/facebook/rocksdb.git && cd rocksdb
WORKDIR /opt/rocksdb
RUN make shared_lib
ENV LD_LIBRARY_PATH=/opt/rocksdb:
RUN apt-get update && apt-get install -y libsnappy-dev zlib1g-dev libbz2-dev
COPY dir:9a5c98ac48eba3b66732cabeb41285b4804867a5184517175240b1f7063d55f2 in /go/src
RUN mkdir -p /var/openchain/db
WORKDIR /go/src/github.com/openblockchain/obc-peer/
RUN CGO_CFLAGS="-I/opt/rocksdb/include" CGO_LDFLAGS="-L/opt/rocksdb -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy" go install && cp $GOPATH/src/github.com/openblockchain/obc-peer/openchain.yaml $GOPATH/bin