Skip to content

Commit 322160f

Browse files
authored
Merge pull request #13 from wavezync/fix/maiden-issues
fix: naming refactored and config logs changed
2 parents 0383e26 + 74cea5d commit 322160f

File tree

7 files changed

+27
-28
lines changed

7 files changed

+27
-28
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ RUN go mod download
88

99
COPY . .
1010

11-
RUN go build -v -o pulsebridge .
11+
RUN go build -v -o pulse-bridge .
1212

1313
FROM alpine:latest AS runner
1414

1515
ENV GO_ENV=production
1616

1717
WORKDIR /app
1818

19-
COPY --from=builder /app/pulsebridge .
19+
COPY --from=builder /app/pulse-bridge .
2020

2121
COPY --from=builder /app/config.yml ./config.yml
2222

23-
RUN mkdir -p /etc/pulsebridge && \
24-
cp ./config.yml /etc/pulsebridge/config.yml && \
25-
chmod +x ./pulsebridge
23+
RUN mkdir -p /etc/pulse-bridge && \
24+
cp ./config.yml /etc/pulse-bridge/config.yml && \
25+
chmod +x ./pulse-bridge
2626

2727
EXPOSE 8080
2828

29-
ENTRYPOINT ["./pulsebridge"]
29+
ENTRYPOINT ["./pulse-bridge"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dev:
1616

1717
docker:
1818
@docker compose down -v
19-
@docker rmi pulsebridge -f || true
19+
@docker rmi pulse-bridge -f || true
2020
@docker compose up -d
2121
@echo "Docker image built and containers started."
2222

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ go run .
3232
### 🐳 Deploy with Docker
3333

3434
```bash
35-
docker pull ghcr.io/wavezync/pulsebridge:latest
36-
docker run -d -p 8080:8080 ghcr.io/wavezync/pulsebridge:latest
35+
docker pull ghcr.io/wavezync/pulse-bridge:latest
36+
docker run -d -p 8080:8080 ghcr.io/wavezync/pulse-bridge:latest
3737
```
3838

3939
Update the [config.yml](https://github.com/wavezync/pulse-bridge/blob/main/config.yml) in the project root to add your services and databases. Then rebuild the binary or Docker image and run it.
@@ -110,7 +110,7 @@ PORT=8080 # Defaults to 8080
110110
2. CLI arguments:
111111

112112
```bash
113-
pb --config=mycustomconfig.yml --port=8080 --host=0.0.0.0
113+
pulse-bridge --config=mycustomconfig.yml --port=8080 --host=0.0.0.0
114114
```
115115

116116
> **Note:** CLI arguments take priority over `.env` file settings.

cmd/root.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ var (
1818
)
1919

2020
var rootCmd = &cobra.Command{
21-
Use: "pulsebridge",
22-
Short: "pulsebridge is a powerful uptime monitoring tool",
23-
Long: `pulsebridge exposes internal service status via HTTP, enabling seamless integration with external monitoring tools like Atlassian Statuspage.`,
21+
Use: "pulse-bridge",
22+
Short: "pulse-bridge is a powerful uptime monitoring tool",
23+
Long: `pulse-bridge exposes internal service status via HTTP, enabling seamless integration with external monitoring tools like Atlassian Statuspage.`,
2424
RunE: func(cmd *cobra.Command, args []string) error {
2525
versionFlag, _ := cmd.Flags().GetBool("version")
2626
if versionFlag {

docker-compose.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
services:
2-
pulsebridge:
2+
pulse-bridge:
33
build:
44
context: .
55
dockerfile: Dockerfile
6-
container_name: pulsebridge
6+
container_name: pulse-bridge
77
restart: unless-stopped
88
ports:
99
- "8080:8080"
@@ -13,16 +13,16 @@ services:
1313
volumes:
1414
- ./config.yml:/app/config.yml:ro
1515
networks:
16-
- pulsebridge-network
16+
- pulse-bridge-network
1717

1818
helloworld-http:
1919
image: testcontainers/helloworld:latest
2020
container_name: helloworld-http
2121
ports:
2222
- "8081:8080"
2323
networks:
24-
- pulsebridge-network
25-
24+
- pulse-bridge-network
25+
2626
postgres-db:
2727
image: postgres:latest
2828
container_name: postgres-db
@@ -36,7 +36,7 @@ services:
3636
volumes:
3737
- postgres-data:/var/lib/postgresql/data
3838
networks:
39-
- pulsebridge-network
39+
- pulse-bridge-network
4040

4141
redis-db:
4242
image: redis:latest
@@ -51,7 +51,7 @@ services:
5151
volumes:
5252
- redis-data:/data
5353
networks:
54-
- pulsebridge-network
54+
- pulse-bridge-network
5555

5656
mysql-db:
5757
image: mysql:latest
@@ -65,8 +65,8 @@ services:
6565
volumes:
6666
- mysql-data:/var/lib/mysql
6767
networks:
68-
- pulsebridge-network
69-
68+
- pulse-bridge-network
69+
7070
mariadb-db:
7171
image: mariadb:latest
7272
container_name: mariadb-db
@@ -79,7 +79,7 @@ services:
7979
volumes:
8080
- mariadb-data:/var/lib/mysql
8181
networks:
82-
- pulsebridge-network
82+
- pulse-bridge-network
8383

8484
mssql-db:
8585
image: mcr.microsoft.com/mssql/server:2019-latest
@@ -93,10 +93,10 @@ services:
9393
volumes:
9494
- mssql-data:/var/opt/mssql
9595
networks:
96-
- pulsebridge-network
96+
- pulse-bridge-network
9797

9898
networks:
99-
pulsebridge-network:
99+
pulse-bridge-network:
100100
driver: bridge
101101

102102
volumes:

internal/config/config_loader.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package config
22

33
import (
44
"encoding/json"
5-
"fmt"
65
"wavezync/pulse-bridge/internal/env"
76

87
"github.com/rs/zerolog/log"
@@ -30,7 +29,7 @@ func Init(configPath string, envConfig *env.Config) (*Config, error) {
3029
if err != nil {
3130
log.Error().Err(err).Msg("Failed to marshal config")
3231
} else {
33-
fmt.Println(string(prettyJSON))
32+
log.Info().RawJSON("config", prettyJSON).Msg("Loaded config")
3433
}
3534

3635
if err := v.Unmarshal(&config); err != nil {

internal/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func getCommit(info *debug.BuildInfo) string {
6161
return ""
6262
}
6363

64-
// GetVersion returns the version of pulsebridge. This should be injected at build time
64+
// GetVersion returns the version of pulse-bridge. This should be injected at build time
6565
// using: -ldflags="-X 'wavezync/pulse-bridge/internal/version.version=vX.X.X'".
6666
// If not provided, it will attempt to derive a version from VCS info.
6767
func GetVersion() string {

0 commit comments

Comments
 (0)