File tree Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,16 @@ build: clean
1515
1616clean :
1717 rm -rf ./bin
18- rm -rf ./tmp
18+ rm -rf ./tmp
19+
20+ # Commands for docker images.
21+ # ----------------------------
22+ build-linux :
23+ GOOS=linux GOARCH=amd64 go build -v -o ./bin/executor ./cmd/executor
24+ GOOS=linux GOARCH=amd64 go build -v -o ./bin/ordermatch ./cmd/ordermatch
25+ GOOS=linux GOARCH=amd64 go build -v -o ./bin/tradeclient ./cmd/tradeclient
26+
27+ build-docker : clean build-linux
28+ docker build -t quickfixgo/executor:latest -f ./cmd/executor/Dockerfile .
29+ docker build -t quickfixgo/ordermatch:latest -f ./cmd/ordermatch/Dockerfile .
30+ docker build -t quickfixgo/tradeclient:latest -f ./cmd/tradeclient/Dockerfile .
Original file line number Diff line number Diff line change 1+ FROM golang:alpine
2+
3+ ADD config config
4+
5+ ADD bin/executor /executor
6+
7+ ENTRYPOINT ["/executor" ]
Original file line number Diff line number Diff line change 1+ FROM golang:alpine
2+
3+ ADD config config
4+
5+ ADD bin/ordermatch /ordermatch
6+
7+ ENTRYPOINT ["/ordermatch" ]
Original file line number Diff line number Diff line change 1+ FROM golang:alpine
2+
3+ ADD config config
4+
5+ ADD bin/tradeclient /tradeclient
6+
7+ ENTRYPOINT ["/tradeclient" ]
You can’t perform that action at this time.
0 commit comments