Skip to content

Commit

Permalink
Add Dockerfile and example config
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyisaev2 committed Dec 18, 2023
1 parent 268a946 commit 5a3d18c
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: golangci-lint
on:
push:
branches:
- master
- main
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yml → .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
run: |
go get ./...
- name: Build
run: go build -v -o fq-connector-go ./app
run: GOOS=linux go build -v -o fq-connector-go ./app
- name: Test
run: go test -v ./app/...
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .github/workflows/release.yml
name: release

on:
workflow_dispatch:
inputs:
tag:
description: 'New tag name'
required: true

# ...

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create tag
run: git tag ${{ github.event.inputs.tag }}
# other steps bellow as usual
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM alpine

LABEL org.opencontainers.image.source=https://github.com/ydb-platform/fq-connector-go

RUN apk add libc6-compat

COPY example.conf /usr/local/etc/fq-connector-go.conf
COPY fq-connector-go /usr/local/bin/fq-connector-go

CMD ["/usr/local/bin/fq-connector-go", "server", "-c", "/usr/local/etc/fq-connector-go.conf"]
23 changes: 23 additions & 0 deletions example.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
connector_server {
endpoint {
host: "0.0.0.0"
port: 50051
}
}

logger {
log_level: DEBUG
enable_sql_query_logging: true
}

pprof_server {
endpoint {
host: "0.0.0.0"
port: 6060
}
}

paging {
bytes_per_page: 4194304
prefetch_queue_capacity: 2
}

0 comments on commit 5a3d18c

Please sign in to comment.