Skip to content

Commit

Permalink
Merge pull request #12 from craig-willis/master
Browse files Browse the repository at this point in the history
Minor build changes, fix #10
  • Loading branch information
bodom0015 committed Apr 1, 2016
2 parents 5c9f74c + b28f45a commit 259f4b5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apiserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:14.04
FROM ubuntu:wily
MAINTAINER [email protected]

RUN apt-get update -y && apt-get install -y curl git
Expand Down
4 changes: 2 additions & 2 deletions apiserver/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ elif [ "$1" = "test" ]; then
elif [ "$1" = "release" ]; then
echo Building release image
docker build -t ndslabs/apiserver:latest .
docker build -t ndslabs/apiserver:$(VERSION) .
docker build -t ndslabs/apiserver:$VERSION .
echo Pushing release image
docker push ndslabs/apiserver:latest
docker push ndslabs/apiserver:$(VERSION)
docker push ndslabs/apiserver:$VERSION
elif [ "$1" = "clean" ]; then
echo Cleaning
rm -rf build
Expand Down
8 changes: 5 additions & 3 deletions apiserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,11 @@ func (s *Server) stackServiceExists(pid string, id string) bool {

exists := false
for _, stack := range *stacks {
if stack.Id == id {
exists = true
break
for _, stackService := range stack.Services {
if stackService.Id == id {
exists = true
break
}
}
}
return exists
Expand Down
2 changes: 1 addition & 1 deletion apiserver/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package main
const (
VERSION = "1.0-alpha"
BUILD_DATE = "2016-03-31 15:55"
BUILD_DATE = "2016-04-01 11:51"
)

0 comments on commit 259f4b5

Please sign in to comment.