Skip to content

Commit

Permalink
Add grpc gateway annotations (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
lootag authored Feb 17, 2025
1 parent 1e90186 commit 2a7f04e
Show file tree
Hide file tree
Showing 113 changed files with 1,066 additions and 584 deletions.
29 changes: 29 additions & 0 deletions Test.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# FROM 529726762838.dkr.ecr.eu-north-1.amazonaws.com/debian:12.8
FROM debian:12.8

RUN apt update && apt install -y curl git

RUN curl -sSL "https://github.com/coralogix/protofetch/releases/download/v0.1.8/protofetch_$(uname -m)-unknown-linux-musl.tar.gz" -o "protofetch.tar.gz"
RUN tar -xvf "protofetch.tar.gz" -C /

RUN curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-Linux-$(uname -m)" -o "/bin/buf"
RUN chmod +x "/bin/buf"

ADD . /branch

# Fetch the master branch, fetch dependencies and merge them
RUN --mount=type=ssh \
--mount=type=secret,id=known_hosts,target=/root/.ssh/known_hosts \
git clone git@github.com:coralogix/cx-api-alerts.git /master
WORKDIR /master
RUN --mount=type=ssh \
--mount=type=secret,id=known_hosts,target=/root/.ssh/known_hosts \
if [ -f "protofetch.toml" ]; then protofetch fetch -f; fi

WORKDIR /branch
RUN --mount=type=ssh \
--mount=type=secret,id=known_hosts,target=/root/.ssh/known_hosts \
protofetch fetch -f


RUN buf lint
8 changes: 0 additions & 8 deletions buf.lock

This file was deleted.

16 changes: 12 additions & 4 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
version: v1
deps:
- buf.build/googleapis/googleapis
version: v2
modules:
- path: src
- path: deps
lint:
use:
- DEFAULT
ignore:
- deps
except:
- PACKAGE_DIRECTORY_MATCH
- PACKAGE_SAME_DIRECTORY
allow_comment_ignores: true
- RPC_REQUEST_STANDARD_NAME
- RPC_RESPONSE_STANDARD_NAME
- FIELD_LOWER_SNAKE_CASE
- PACKAGE_DEFINED
breaking:
use:
- WIRE
ignore:
- deps
26 changes: 0 additions & 26 deletions com/coralogixapis/alerts/v3/alert_def_scheduling.proto

This file was deleted.

10 changes: 0 additions & 10 deletions com/coralogixapis/alerts/v3/alert_def_severity.proto

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2a7f04e

Please sign in to comment.