Skip to content

Commit

Permalink
chore: initializing repository
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Aug 31, 2023
0 parents commit 4eccbd0
Show file tree
Hide file tree
Showing 27 changed files with 1,107 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .ci/config/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
user nginx;
worker_processes auto;

error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
keepalive_timeout 65;

gzip on;

# The full static data directory is mounted into the container but we only
# serve the "nginx" sub directory (with indices in the default
# configuration).
server {
location / {
root /data/nginx;
autoindex on;
}
}
}
1 change: 1 addition & 0 deletions .ci/secrets/db-password
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
password
Empty file.
37 changes: 37 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{py,rst,ini}]
indent_style = space
indent_size = 4

[*.conf]
indent_style = space
indent_size = 2

[*.py]
line_length=120
known_first_party=reev
multi_line_output=3
default_section=THIRDPARTY

[*.{html,css,scss,json,yml}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab

[nginx.conf]
indent_style = space
indent_size = 2
71 changes: 71 additions & 0 deletions .env.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Docker Compose environment file used in CI.

# -- Docker Images -----------------------------------------------------------

# Name of the registry server and org to use for our images.
# image_base=ghcr.io/bihealth

# Name of the mehari image to use.
# image_mehari_name=mehari

# Version of the mehari image to use.
# image_mehari_version=latest

# Name of the viguno image to use.
# image_viguno_name=viguno

# Version of the viguno image to use.
# image_viguno_version=latest

# Name of the annonars image to use.
# image_annonars_name=annonars

# Version of the annonars image to use.
# image_annonars_version=latest

# Name of the traefik image to use.
# image_traefik_name=traefik

# Version of the traefik image to use.
# image_traefik_version=2.10

# Name of the postgres image to use.
# image_postgres_name=postgres

# Version of the postgres image to use.
# image_postgres_version=12

# Name of the redis image to use.
# image_redis_name=redis

# Version of the redis image to use.
# image_redis_version=6

# Name of the Minio image to use.
# image_minio_name=quay.io/minio/minio

# Version of the Minio image to use.
# image_minio_version=latest

# Name of the "mc" (Minio client) image to use.
# image_mc_name=minio/mc

# Version of the "mc" (Minio client) image to use.
# image_mc_version=latest

# -- General Container Configuration -----------------------------------------

# Base directory for configuration.
# config_basedir: ./.dev/config
## In CI: set to directory with appropriate config.
config_basedir=./.ci/config

# Base directory for volumes.
# volumes_basedir: ./volumes
## In CI: set to a directory with minimal data for spinning up the containers.
volumes_basedir=./.ci/volumes

# Base directory for secrets.
# secrets_basedir: ./secrets
## In CI: set to a directory where the `ci.yml` writes data to.
secrets_basedir=./.ci/secrets
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.ci/volumes/** filter=lfs diff=lfs merge=lfs -text
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
Lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Run YAML linting
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: |
*.yml
Up-Down:
runs-on: ubuntu-latest
needs: Lint
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Prepare empty volumes
run: |
mkdir -p .ci/volumes/postgres/data
mkdir -p .ci/volumes/redis/data
mkdir -p .ci/volumes/minio/data
mkdir -p .ci/volumes/varfish-static/data
- name: Bring up and shut down services
uses: isbang/[email protected]
with:
compose-file: docker-compose.yml
compose-flags: |
--env-file .env.ci
env:
DB_PASSWORD: "password"
18 changes: 18 additions & 0 deletions .github/workflows/conventional-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: PR
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize

jobs:
title-format:
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
validateSingleCommit: true
17 changes: 17 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
push:
branches:
- main

name: release-please

jobs:
release-please:
if: github.repository_owner == 'bihealth'
runs-on: ubuntu-latest
steps:
- name: Run release-please
uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
release-type: simple
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Demo
/.dev

## CI
/.ci

## Docker Compose
# Configuration file.
.env
.secrets/

# The Docker Compose "override" YAML file.
docker-compose.override.yml

## Text Editors
/.vscode
*~
.*.sw?
.idea/
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Changelog
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021-2023 Berlin Institute of Health

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 4eccbd0

Please sign in to comment.