Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #127 from SubstraFoundation/hlf-2
Browse files Browse the repository at this point in the history
Hyperledger Fabric 2.x chaincode container
  • Loading branch information
Kelvin-M authored Nov 12, 2020
2 parents 37d88e7 + 0fb957f commit b14bf50
Show file tree
Hide file tree
Showing 23 changed files with 105 additions and 528 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.dll
*.so
*.dylib
chaincode/chaincode

# Test binary, build with `go test -c`
*.test
Expand All @@ -17,7 +18,6 @@
# OSX
.DS_Store


# IDE config files
.idea
.vscode
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:1.13.8-alpine AS build

COPY ./chaincode /go/src/github.com/chaincode
WORKDIR /go/src/github.com/chaincode

# Build application
RUN go build -o chaincode -v .

# Production ready image
# Pass the binary to the prod image
FROM alpine:3.11 as prod

COPY --from=build /go/src/github.com/chaincode/chaincode /app/chaincode

USER 1000

WORKDIR /app
CMD ./chaincode
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ cd chaincode
go test
```

## Devmode

See [chaincode-docker-devmode](./chaincode-docker-devmode/README.rst)

## Documentation

### Implemented smart contracts
Expand Down
137 changes: 0 additions & 137 deletions chaincode-docker-devmode/README.rst

This file was deleted.

88 changes: 0 additions & 88 deletions chaincode-docker-devmode/docker-compose-simple.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions chaincode-docker-devmode/msp/admincerts/admincert.pem

This file was deleted.

15 changes: 0 additions & 15 deletions chaincode-docker-devmode/msp/cacerts/cacert.pem

This file was deleted.

5 changes: 0 additions & 5 deletions chaincode-docker-devmode/msp/keystore/key.pem

This file was deleted.

14 changes: 0 additions & 14 deletions chaincode-docker-devmode/msp/signcerts/peer.pem

This file was deleted.

13 changes: 0 additions & 13 deletions chaincode-docker-devmode/msp/tlscacerts/tlsroot.pem

This file was deleted.

This file was deleted.

Binary file removed chaincode-docker-devmode/myc.tx
Binary file not shown.
Binary file removed chaincode-docker-devmode/orderer.block
Binary file not shown.
26 changes: 0 additions & 26 deletions chaincode-docker-devmode/script.sh

This file was deleted.

2 changes: 1 addition & 1 deletion chaincode/generate_examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"strings"
"testing"

"github.com/hyperledger/fabric/protos/peer"
"github.com/hyperledger/fabric-protos-go/peer"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
Loading

0 comments on commit b14bf50

Please sign in to comment.