Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
448 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
ambassadord | ||
release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM ubuntu:trusty | ||
|
||
RUN apt-get update && apt-get install -y iptables socat | ||
|
||
ADD ./stage/ambassadord /bin/ambassadord | ||
ADD ./stage/start /start | ||
|
||
EXPOSE 10000 | ||
|
||
ENTRYPOINT ["/start"] | ||
FROM alpine:3.2 | ||
ENTRYPOINT ["/bin/connectable"] | ||
COPY . /go/src/github.com/progrium/connectable | ||
RUN apk add --update go git mercurial iptables \ | ||
&& cd /go/src/github.com/progrium/connectable \ | ||
&& export GOPATH=/go \ | ||
&& go get \ | ||
&& go build -ldflags "-X main.Version $(cat VERSION)" -o /bin/connectable \ | ||
&& apk del go git mercurial \ | ||
&& rm -rf /go /var/cache/apk/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM gliderlabs/alpine:3.2 | ||
ENV GOPATH /go | ||
RUN apk-install go git mercurial iptables | ||
COPY . /go/src/github.com/progrium/connectable | ||
WORKDIR /go/src/github.com/progrium/connectable | ||
RUN go get | ||
CMD go get \ | ||
&& go build -ldflags "-X main.Version dev" -o /bin/connectable \ | ||
&& exec /bin/connectable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
Copyright (C) 2014 Jeff Lindsay | ||
The MIT License (MIT) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
Copyright (c) 2015 Glider Labs | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
NAME=ambassadord | ||
HARDWARE=$(shell uname -m) | ||
VERSION=0.0.1 | ||
NAME=connectable | ||
REPO=progrium | ||
VERSION=$(shell cat VERSION) | ||
|
||
build: | ||
go build -o stage/ambassadord | ||
docker build -t ambassadord . | ||
|
||
release: | ||
rm -rf release | ||
mkdir release | ||
GOOS=linux go build -o release/$(NAME) | ||
cd release && tar -zcf $(NAME)_$(VERSION)_linux_$(HARDWARE).tgz $(NAME) | ||
GOOS=darwin go build -o release/$(NAME) | ||
cd release && tar -zcf $(NAME)_$(VERSION)_darwin_$(HARDWARE).tgz $(NAME) | ||
rm release/$(NAME) | ||
echo "$(VERSION)" > release/version | ||
echo "progrium/$(NAME)" > release/repo | ||
gh-release | ||
|
||
.PHONY: build | ||
dev: | ||
@docker history $(NAME):dev &> /dev/null \ | ||
|| docker build -f Dockerfile.dev -t $(NAME):dev . | ||
@docker run --rm --name $(NAME)-dev \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v $(PWD):/go/src/github.com/$(REPO)/$(NAME) \ | ||
$(NAME):dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DigitalOcean http://digitalocean.com | ||
DigitalOcean http://digitalocean.com | ||
Weave http://weave.works |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1.0 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.