Skip to content

Commit

Permalink
next
Browse files Browse the repository at this point in the history
  • Loading branch information
Cictrone committed Oct 20, 2019
1 parent 56a398f commit d5ca932
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deployments/agent.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ RUN go build -tags=debug,profile_cpu -o ./build/agent ./cmd/agent
# Developer
FROM build as developer
RUN apk add tmux vim
EXPOSE 80
EXPOSE 8080
CMD ["./build/agent"]
4 changes: 2 additions & 2 deletions deployments/teamserver.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ COPY ./cmd /app/cmd
COPY ./api /app/api
COPY ./teamserver /app/teamserver
COPY ./ent /app/ent
RUN go build -tags=debug,profile_cpu -o ./build/teamserver ./cmd/teamserver
RUN go build -tags=debug,profile_cpu,gcp -o ./build/teamserver ./cmd/teamserver

# Developer
FROM build as developer
RUN apk add tmux vim
EXPOSE 8080
EXPOSE 80
CMD ["./build/teamserver"]
2 changes: 1 addition & 1 deletion teamserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (srv *Server) Run(ctx context.Context) {
go srv.handleTasksClaimed(ctx)
go srv.handleTasksExecuted(ctx)
http.HandleFunc("/queueTask", srv.handleQueueTask)
http.ListenAndServe(":80", nil)
http.ListenAndServe("0.0.0.0:80", nil)
}

// QueueTask sends a given task (and some associated target data) to the `tasks.queued` topic
Expand Down

0 comments on commit d5ca932

Please sign in to comment.