-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (24 loc) · 990 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM debian:latest
MAINTAINER jk@stabledomain.net
RUN apt -y update && apt -y install build-essential wget git
RUN wget https://dl.google.com/go/go1.17.7.linux-amd64.tar.gz
RUN tar -xvf go1.17.7.linux-amd64.tar.gz
RUN mv go /usr/local
ENV GOROOT=/usr/local/go
ENV GOPATH=$HOME/go
ENV PATH="${GOPATH}/bin:$GOROOT/bin:${PATH}"
RUN git clone https://github.com/frumioj/cosmos-sdk.git
RUN git clone https://github.com/frumioj/crypto11.git
RUN git clone https://github.com/frumioj/keystone.git
WORKDIR keystone
RUN go mod tidy -compat=1.17
RUN make build
WORKDIR /keystone/plugin/file
RUN go mod tidy -compat=1.17
RUN go build -buildmode=plugin -o file_keys.so file.go
WORKDIR /keystone/plugin/pkcs11
RUN go mod tidy -compat=1.17
RUN go build -buildmode=plugin -o pkcs11_keys.so pkcs11.go
WORKDIR /keystone
EXPOSE 8080
CMD ./keystoned -chain-id foo -chain-rpc none -key-addr none -keyring-dir none -keyring-type none -key-plugin ./plugin/file/file_keys.so -file-cfg /keystone/plugin/file/keys/