Skip to content

Commit 303ae3f

Browse files
committed
Init project
1 parent 81ac004 commit 303ae3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2032
-2
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.yml]
12+
indent_size = 2
13+
14+
[*.yaml]
15+
indent_size = 2

.env.sample

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
APP_ENV=production
2+
3+
# Debug mode set to TRUE disables view caching and enables higher verbosity.
4+
DEBUG=true
5+
VERBOSITY_LEVEL=verbose
6+
7+
# Available levels: DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY
8+
MONOLOG_DEFAULT_LEVEL=DEBUG
9+
10+
QUEUE_DRIVER=roadrunner
11+
QUEUE_PIPELINE=memory
12+
13+
CACHE_STORAGE=local
14+
15+
# Docker repository names to follow (comma separated)
16+
DOCKER_REPOSITORIES=
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Docker Dev Image CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Login to Docker Hub
16+
uses: docker/login-action@v2
17+
with:
18+
registry: ghcr.io
19+
username: ${{ secrets.GHCR_LOGIN }}
20+
password: ${{ secrets.GHCR_PASSWORD }}
21+
22+
- name: Set up Docker Buildx
23+
id: buildx
24+
uses: docker/setup-buildx-action@v2
25+
26+
- name: Build and push
27+
id: docker_build
28+
uses: docker/build-push-action@v3
29+
with:
30+
context: ./
31+
file: ./docker/Dockerfile
32+
push: true
33+
build-args:
34+
APP_VERSION=dev
35+
tags:
36+
ghcr.io/metrixio/docker:dev

.github/workflows/docker-image.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Docker Image CI
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
build-release:
10+
if: "!github.event.release.prerelease"
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: 'Get Previous tag'
17+
id: previoustag
18+
uses: "WyriHaximus/github-action-get-previous-tag@v1"
19+
with:
20+
fallback: v0.1
21+
22+
- name: Login to Docker Hub
23+
uses: docker/login-action@v2
24+
with:
25+
registry: ghcr.io
26+
username: ${{ secrets.GHCR_LOGIN }}
27+
password: ${{ secrets.GHCR_PASSWORD }}
28+
29+
- name: Set up Docker Buildx
30+
id: buildx
31+
uses: docker/setup-buildx-action@v2
32+
33+
- name: Build and push
34+
id: docker_build
35+
uses: docker/build-push-action@v3
36+
with:
37+
context: ./
38+
file: ./docker/Dockerfile
39+
push: true
40+
build-args:
41+
APP_VERSION=${{ steps.previoustag.outputs.tag }}
42+
tags:
43+
tags:
44+
ghcr.io/metrixio/docker:latest, ghcr.io/metrixio/docker:${{ steps.previoustag.outputs.tag }}

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.idea
2+
vendor
3+
runtime
4+
rr*
5+
spiral*
6+
.env
7+
.phpunit.result.cache
8+
.deptrac.cache
9+
composer.lock

.rr.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: '2.7'
2+
3+
rpc:
4+
listen: tcp://127.0.0.1:6001
5+
6+
logs:
7+
level: info
8+
9+
server:
10+
command: "php app.php"
11+
relay: pipes
12+
13+
kv:
14+
local:
15+
driver: memory
16+
config: {}
17+
18+
jobs:
19+
pool:
20+
num_workers: 2
21+
22+
service:
23+
twitter:
24+
command: "php app.php collect:start"
25+
remain_after_exit: true
26+
restart_sec: 1
27+
28+
grpc:
29+
listen: tcp://0.0.0.0:9001
30+
proto:
31+
- "proto/service.proto"
32+
33+
metrics:
34+
address: 0.0.0.0:2112

.styleci.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
risky: false
2+
preset: psr12
3+
enabled:
4+
# Risky Fixers
5+
# - declare_strict_types
6+
# - void_return
7+
- ordered_class_elements
8+
- linebreak_after_opening_tag
9+
- single_quote
10+
- no_blank_lines_after_phpdoc
11+
- unary_operator_spaces
12+
- no_useless_else
13+
- no_useless_return
14+
- trailing_comma_in_multiline_array
15+
finder:
16+
exclude:
17+
- "tests"
18+
- "public"

GRPC/Docker/AddRequest.php

+58
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GRPC/Docker/AddResponse.php

+58
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GRPC/Docker/AllRequest.php

+31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GRPC/Docker/AllResponse.php

+58
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)