Skip to content

Commit

Permalink
build: change package and image name to kafrest
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioromagnollo committed Oct 14, 2023
1 parent 44e9287 commit 1044017
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
KREST_APP_ENV=development
KREST_APP_NAME=kafkarest
PORT=8888
KREST_APP_NAME=kafrest
PORT=8080

# Kafka Config
KAFKA_HOST=localhost:9092
KAFKA_BROKERCONNECT=kafka:29092
6 changes: 3 additions & 3 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
KREST_APP_ENV=test
KREST_APP_NAME=kafkarest
PORT=8889
KREST_APP_NAME=kafrest
PORT=8081

# Kafka Config
KAFKA_HOST=localhost:9092
KAFKA_BROKERCONNECT=kafka:29092
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Build the Docker image
run: |
docker build -t mauricioromagnollo/kafka-rest:latest .
docker build -t mauricioromagnollo/kafrest:latest .
- name: Login to Docker Hub
run: |
Expand All @@ -32,4 +32,4 @@ jobs:
- name: Publish Docker Image to Docker Hub
if: success()
run: |
docker push mauricioromagnollo/kafka-rest
docker push mauricioromagnollo/kafrest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# kafkarest
# **kafrest**
4 changes: 2 additions & 2 deletions cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net/http"

"github.com/go-chi/chi/v5"
"github.com/mauricioromagnollo/kafkarest/external/config"
"github.com/mauricioromagnollo/kafkarest/external/controllers"
"github.com/mauricioromagnollo/kafrest/external/config"
"github.com/mauricioromagnollo/kafrest/external/controllers"
)

func main() {
Expand Down
34 changes: 21 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
version: '3'

services:
kafka-rest:
container_name: kafka-rest
image: mauricioromagnollo/kafka-rest:latest
kafrest:
container_name: kafrest
build:
context: .
dockerfile: Dockerfile
ports:
- "8081:8080"
environment:
KAFKA_BROKERCONNECT: ${KAFKA_BROKERCONNECT}
networks:
- kafrest

kafrest-latest:
container_name: kafrest-latest
image: mauricioromagnollo/kafrest:latest
ports:
- "8080:8080"
environment:
- KAFKA_HOST=kafka:29092
KAFKA_BROKERCONNECT: ${KAFKA_BROKERCONNECT}
networks:
- kafrest

# kafka-rest-test:
# container_name: kafka-rest-test
# build:
# context: .
# dockerfile: Dockerfile
# ports:
# - "8082:8080"
# volumes:
# - .:/app
networks:
kafrest:
driver: bridge
2 changes: 1 addition & 1 deletion external/controllers/publish_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"net/http"

"github.com/mauricioromagnollo/kafkarest/external/config"
"github.com/mauricioromagnollo/kafrest/external/config"
"github.com/segmentio/kafka-go"
)

Expand Down
2 changes: 1 addition & 1 deletion external/controllers/status_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package controllers
import (
"net/http"

"github.com/mauricioromagnollo/kafkarest/external/config"
"github.com/mauricioromagnollo/kafrest/external/config"
)

type StatusController struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mauricioromagnollo/kafkarest
module github.com/mauricioromagnollo/kafrest

go 1.20

Expand Down

0 comments on commit 1044017

Please sign in to comment.