1
0
This repository has been archived on 2023-12-27. You can view files and clone it, but cannot push or open issues or pull requests.
beginning-go/vendor/github.com/clockworksoul/smudge/build.sh
Tony Grosinger a1e0fb3b7e
Add smudge dependency to vendor
Smudge provides an implementation of the gossip protocol that will be
used for communicating with other chat client implementations.

Retrieved at: d39c17654b
2017-10-19 19:44:45 -07:00

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