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

Commit b14bf50

Browse files
authored
Merge pull request #127 from SubstraFoundation/hlf-2
Hyperledger Fabric 2.x chaincode container
2 parents 37d88e7 + 0fb957f commit b14bf50

File tree

23 files changed

+105
-528
lines changed

23 files changed

+105
-528
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.dll
55
*.so
66
*.dylib
7+
chaincode/chaincode
78

89
# Test binary, build with `go test -c`
910
*.test
@@ -17,7 +18,6 @@
1718
# OSX
1819
.DS_Store
1920

20-
2121
# IDE config files
2222
.idea
2323
.vscode

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM golang:1.13.8-alpine AS build
2+
3+
COPY ./chaincode /go/src/github.com/chaincode
4+
WORKDIR /go/src/github.com/chaincode
5+
6+
# Build application
7+
RUN go build -o chaincode -v .
8+
9+
# Production ready image
10+
# Pass the binary to the prod image
11+
FROM alpine:3.11 as prod
12+
13+
COPY --from=build /go/src/github.com/chaincode/chaincode /app/chaincode
14+
15+
USER 1000
16+
17+
WORKDIR /app
18+
CMD ./chaincode

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ cd chaincode
2121
go test
2222
```
2323

24-
## Devmode
25-
26-
See [chaincode-docker-devmode](./chaincode-docker-devmode/README.rst)
27-
2824
## Documentation
2925

3026
### Implemented smart contracts

chaincode-docker-devmode/README.rst

Lines changed: 0 additions & 137 deletions
This file was deleted.

chaincode-docker-devmode/docker-compose-simple.yaml

Lines changed: 0 additions & 88 deletions
This file was deleted.

chaincode-docker-devmode/msp/admincerts/admincert.pem

Lines changed: 0 additions & 14 deletions
This file was deleted.

chaincode-docker-devmode/msp/cacerts/cacert.pem

Lines changed: 0 additions & 15 deletions
This file was deleted.

chaincode-docker-devmode/msp/keystore/key.pem

Lines changed: 0 additions & 5 deletions
This file was deleted.

chaincode-docker-devmode/msp/signcerts/peer.pem

Lines changed: 0 additions & 14 deletions
This file was deleted.

chaincode-docker-devmode/msp/tlscacerts/tlsroot.pem

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)