Created
January 17, 2019 15:53
-
-
Save javaguirre/41037c3555a82ef7767d9e8a781070f0 to your computer and use it in GitHub Desktop.
Dockerfile to test chaincode in Golang for Hyperledger Fabric
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.10 | |
WORKDIR /go/src/app | |
COPY . . | |
RUN go get -v -u github.com/hyperledger/fabric-sdk-go | |
RUN go get -v -u github.com/stretchr/testify/assert | |
# For BDD | |
RUN go get github.com/DATA-DOG/godog/cmd/godog | |
RUN mkdir -p $GOPATH/src/gitlab.com/TheNeonProject/mychaincode | |
RUN cp -r ./mychaincode/* $GOPATH/src/gitlab.com/TheNeonProject/mychaincode | |
RUN apt-get update && apt-get install -y libltdl-dev | |
RUN mkdir -p $GOPATH/src/github.com/hyperledger | |
RUN git clone -b v1.2.0 https://github.com/hyperledger/fabric.git $GOPATH/src/github.com/hyperledger/fabric | |
WORKDIR $GOPATH/src/gitlab.com/TheNeonProject/mychaincode | |
CMD ["go", "test", "-v", "."] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment