Tony Grosinger
a1e0fb3b7e
Smudge provides an implementation of the gossip protocol that will be
used for communicating with other chat client implementations.
Retrieved at: d39c17654b
20 lines
440 B
Bash
Executable File
20 lines
440 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
GO_VERSION=1.7
|
|
|
|
# Builds the binary in a go container, and drops the Linux-compatible binary in $PWD/bin
|
|
docker run --rm \
|
|
-v "$PWD":/go/src/github.com/clockworksoul/smudge \
|
|
-v "$PWD/tmp":/go/bin \
|
|
-w /go/bin \
|
|
-e "CGO_ENABLED=0" \
|
|
-e "GOOS=linux" \
|
|
golang:${GO_VERSION} \
|
|
go build -a -installsuffix cgo -v github.com/clockworksoul/smudge/smudge
|
|
|
|
docker build -t clockworksoul/smudge:latest .
|
|
|
|
sudo rm -R tmp
|