-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporarily removed auth. Don't allow multiple accounts for person.
- Loading branch information
Showing
9 changed files
with
65 additions
and
30 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM progrium/busybox | ||
MAINTAINER Matt Aitchison <matt@lanciv.com> | ||
|
||
ADD ./stage/GoGradeMeAPI /bin/GoGradeMeAPI | ||
ADD ./stage/gogradeapi /bin/gogradeapi | ||
|
||
EXPOSE 5005 | ||
|
||
ENTRYPOINT ["/bin/GoGradeMeAPI"] | ||
ENTRYPOINT ["/bin/gogradeapi"] | ||
# CMD ["-staticDir=/opt/www"] |
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,22 +1,31 @@ | ||
NAME=GoGradeMeAPI | ||
NAME=gogradeapi | ||
HARDWARE=$(shell uname -m) | ||
VERSION=0.1.0 | ||
|
||
build: | ||
build/container: stage/$(NAME) Dockerfile | ||
docker build -t $(NAME) . | ||
touch build/container | ||
|
||
build/$(NAME): *.go | ||
GOOS=linux GOARCH=amd64 go build -o build/$(NAME) | ||
|
||
stage/$(NAME): build/$(NAME) | ||
mkdir -p stage | ||
GOOS=linux go build -o stage/$(NAME) | ||
docker build -t gogrademe/api-server . | ||
cp build/$(NAME) stage/$(NAME) | ||
|
||
release: | ||
release: build/container | ||
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 "gogrademe/$(NAME)" > release/repo | ||
gh-release | ||
docker tag $(NAME) lanciv/$(NAME) | ||
docker push lanciv/$(NAME) | ||
#cd release && tar -zcf $(NAME)_$(VERSION)_linux_$(HARDWARE).tgz ../build/$(NAME) | ||
#echo "$(VERSION)" > release/version | ||
#echo "lanciv/$(NAME)" > release/repo | ||
#gh-release | ||
|
||
.PHONY: release | ||
|
||
.PHONY: clean release | ||
clean: | ||
rm -rf build | ||
rm -rf release | ||
rm -rf stage |
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
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
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
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