aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/loki
diff options
context:
space:
mode:
authorGravatar AdamKorcz <44787359+AdamKorcz@users.noreply.github.com>2020-12-09 16:24:02 +0000
committerGravatar GitHub <noreply@github.com>2020-12-09 08:24:02 -0800
commitd483bbd23f5afbfb60578cab901c8b4c5977d2be (patch)
tree5a50a86c30c492957373998c905196950a18484c /projects/loki
parent8254336e4d1ea2143d763cc86f67cb8f0884cd95 (diff)
[Loki] Initial integration (#4777)
* [teleport] Initial integration * Minor update to run tests again * [loki] Initial integration * Minor path update * Added maintaienr email addresses
Diffstat (limited to 'projects/loki')
-rw-r--r--projects/loki/Dockerfile20
-rw-r--r--projects/loki/build.sh18
-rw-r--r--projects/loki/project.yaml10
3 files changed, 48 insertions, 0 deletions
diff --git a/projects/loki/Dockerfile b/projects/loki/Dockerfile
new file mode 100644
index 00000000..d7ed8f85
--- /dev/null
+++ b/projects/loki/Dockerfile
@@ -0,0 +1,20 @@
+# Copyright 2020 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+################################################################################
+
+FROM gcr.io/oss-fuzz-base/base-builder
+RUN go get github.com/grafana/loki/pkg/logql/...
+COPY build.sh $SRC/
+WORKDIR $SRC/
diff --git a/projects/loki/build.sh b/projects/loki/build.sh
new file mode 100644
index 00000000..9f23ec3c
--- /dev/null
+++ b/projects/loki/build.sh
@@ -0,0 +1,18 @@
+#/bin/bash -eu
+# Copyright 2020 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+################################################################################
+
+compile_go_fuzzer github.com/grafana/loki/pkg/logql FuzzParseExpr fuzz_parse_expr
diff --git a/projects/loki/project.yaml b/projects/loki/project.yaml
new file mode 100644
index 00000000..54a660ba
--- /dev/null
+++ b/projects/loki/project.yaml
@@ -0,0 +1,10 @@
+homepage: "https://github.com/grafana/loki"
+primary_contact: "cyril.tovena@grafana.com"
+auto_ccs :
+ - "adam@adalogics.com"
+ - "edward.welch@grafana.com"
+language: go
+fuzzing_engines:
+ - libfuzzer
+sanitizers:
+ - address