Skip to content

Commit

Permalink
micro: Rename namespace to gitmate.micro
Browse files Browse the repository at this point in the history
  • Loading branch information
nkprince007 committed May 25, 2018
1 parent 0e0c594 commit 86f3214
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test:
before_script:
- apk --no-cache add git
- export OLDPATH=$(readlink -f ..)
- export SOURCE=/go/src/gitlab.com/nkprince007
- export SOURCE=/go/src/gitlab.com/gitlab-micro/listen
- mkdir -p $SOURCE && cd $SOURCE
- mv $OLDPATH/listen .
- cd $SOURCE/listen
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ FROM golang:alpine as build-env
LABEL MAINTAINER Naveen Kumar Sangi <naveenkumarsangi@protonmail.com>

RUN apk --no-cache add git
RUN mkdir -p /go/src/gitlab.com/nkprince007/listen
ADD . /go/src/gitlab.com/nkprince007/listen
WORKDIR /go/src/gitlab.com/nkprince007/listen
RUN mkdir -p /go/src/gitlab.com/gitmate-micro/listen
ADD . /go/src/gitlab.com/gitmate-micro/listen
WORKDIR /go/src/gitlab.com/gitmate-micro/listen

RUN go get -v ./...
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w -s' -o listen .
Expand All @@ -17,6 +17,6 @@ FROM alpine:latest

RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=build-env /go/src/gitlab.com/nkprince007/listen .
COPY --from=build-env /go/src/gitlab.com/gitmate-micro/listen .

CMD ["./listen"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ test:
go tool cover -html=coverage.out

docker:
docker build . -t registry.gitlab.com/nkprince007/listen:latest
docker build . -t registry.gitlab.com/gitmate-micro/listen:latest
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# listen

[![pipeline status](https://gitlab.com/nkprince007/listen/badges/master/pipeline.svg)](https://gitlab.com/nkprince007/listen/commits/master)
[![pipeline status](https://gitlab.com/gitmate-micro/listen/badges/master/pipeline.svg)](https://gitlab.com/gitmate-micro/listen/commits/master)

A simple go-micro web service that listens to incoming webhooks and sends out
events over specified topics.

Auto-generated with

```sh
micro new gitlab.com/nkprince007/listen --namespace=go.micro --type=web
micro new gitlab.com/gitmate-micro/listen --namespace=gitmate.micro --type=web
```

## Getting Started
Expand All @@ -19,7 +19,7 @@ micro new gitlab.com/nkprince007/listen --namespace=go.micro --type=web

## Configuration

- FQDN: go.micro.web.listen
- FQDN: gitmate.micro.web.listen
- Type: web
- Alias: listen

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
listen:
# listen is the actual listener service
command: /bin/sh -c "sleep 5; ./listen;"
image: registry.gitlab.com/nkprince007/listen
image: registry.gitlab.com/gitmate-micro/listen
build: .
ports:
- 80
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func main() {
`)
// create new web service
service := web.NewService(
web.Name("go.micro.web.listen"),
web.Name("gitmate.micro.web.listen"),
web.Version("latest"),
)

Expand Down

0 comments on commit 86f3214

Please sign in to comment.