Skip to content

Commit

Permalink
Merge pull request #52 from FraunhoferISST/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
DaTebe authored Sep 8, 2021
2 parents f306902 + 0b07dd3 commit b1ee3ab
Show file tree
Hide file tree
Showing 110 changed files with 8,701 additions and 691 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: npm
directory: "core/services"
schedule:
interval: weekly
time: "04:00"
open-pull-requests-limit: 5
reviewers:
- "setaman"
target-branch: "dev"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 5
reviewers:
- "setaman"
target-branch: "dev"
11 changes: 11 additions & 0 deletions .github/issue-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
branchName: '${issue.number}-${issue.title}'
gitSafeReplacementChar: '-'
defaultBranch: 'dev'
silent: false
autoCloseIssue: true
openDraftPR: true
copyIssueAssigneeToPR: true
commentMessage: 'Branch ${branchName} created for issue: ${issue.title} and assigned to ${issue.assignee.login}'
branches:
- label: "type: question"
skip: true
16 changes: 16 additions & 0 deletions .github/workflows/branch-from-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
issues:
types: [ assigned ]
issue_comment:
types: [ created ]
pull_request:
types: [ closed ]

jobs:
create_issue_branch_job:
runs-on: ubuntu-latest
steps:
- name: Create Issue Branch
uses: robvanderleek/create-issue-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<br />

[![version](https://img.shields.io/badge/diva-v2.2.0-green)](https://gitlab.cc-asp.fraunhofer.de/diva/drm)
[![version](https://img.shields.io/badge/diva-v3.0.0-green)](https://gitlab.cc-asp.fraunhofer.de/diva/drm)

<br />

Expand Down
51 changes: 38 additions & 13 deletions build-dist.sh
Original file line number Diff line number Diff line change
@@ -1,32 +1,57 @@
#!/bin/sh
DIST_FOLDER="dist"
KONG_CONFIG_FOLDER="core/kong-gateway"
ELASTICSEARCH_CONFIG_FOLDER="core/elasticsearch"
AIRFLOW_BASE_FOLDER="core/airflow"
SCHEMAS_FOLDER="core/schemata"
CORE_FOLDER="core"
KONG_CONFIG_FOLDER="$CORE_FOLDER/kong-gateway"
ELASTICSEARCH_CONFIG_FOLDER="$CORE_FOLDER/elasticsearch"
AIRFLOW_BASE_FOLDER="$CORE_FOLDER/airflow"
SCHEMAS_FOLDER="$CORE_FOLDER/schemata"
KEYCLOAK_FOLDER="$CORE_FOLDER/keycloak"

echo "🏭 Building Distribution..."
rm -r "$DIST_FOLDER" # remove old dist if it exists
mkdir -p -- "$DIST_FOLDER" # create dist folder
mkdir -p -- "$DIST_FOLDER/docker-deployment" # create dist folder
mkdir -p -- "$DIST_FOLDER/docker-deployment/$CORE_FOLDER" # create core folder

echo "🐋 Building Docker Distribution..."

DOCKER_FOLDER="docker"
DOCKER_DIST_FOLDER="dist/docker-deployment"

cp -r "$DOCKER_FOLDER"* "$DOCKER_DIST_FOLDER/docker" # copy docker-compose files
rm -f "$DOCKER_DIST_FOLDER/docker/docker-compose.override.yml" # remover override as it's only for local dev
rm -f "$DOCKER_DIST_FOLDER/docker/docker-compose.airflow.build.yml"
rm -f "$DOCKER_DIST_FOLDER/docker/docker-compose.monitoring.yml"
rm -f "$DOCKER_DIST_FOLDER/docker/build_all.sh"
rm -f "$DOCKER_DIST_FOLDER"/docker/*faas*
rm -f "$DOCKER_DIST_FOLDER/docker/docker-compose.override.yml" # remove override as it's only for local dev
rm -rf "$DOCKER_DIST_FOLDER/docker/base-images"
rm -rf "$DOCKER_DIST_FOLDER"/docker/proxy/certs/* # remove keys if present
rm -f "$DOCKER_DIST_FOLDER/docker/proxy/.env" # remove personal proxy .env if present
rm -f "$DOCKER_DIST_FOLDER/docker/proxy/.gitignore"
rm -f "$DOCKER_DIST_FOLDER/docker/proxy/nginx.conf"
rm -f "$DOCKER_DIST_FOLDER/docker/.env" # remove personal .env if present

mkdir "$DOCKER_DIST_FOLDER/airflow"
cp -r "$AIRFLOW_BASE_FOLDER/dags" "$DOCKER_DIST_FOLDER/airflow"
cp -r "$AIRFLOW_BASE_FOLDER/plugins" "$DOCKER_DIST_FOLDER/airflow"
cp -r "$KONG_CONFIG_FOLDER" "$DOCKER_DIST_FOLDER"
cp -r "$ELASTICSEARCH_CONFIG_FOLDER" "$DOCKER_DIST_FOLDER"
cp -r "$SCHEMAS_FOLDER" "$DOCKER_DIST_FOLDER"

echo "# DIVA Docker distribution\nQuick start:\n\`\`\`\ncd docker\n./up_core.sh\n\`\`\`" >> "$DOCKER_DIST_FOLDER/README.md"
mkdir "$DOCKER_DIST_FOLDER/$CORE_FOLDER/airflow"
mkdir "$DOCKER_DIST_FOLDER/$CORE_FOLDER/kong-gateway"
cp -r "$AIRFLOW_BASE_FOLDER/dags" "$DOCKER_DIST_FOLDER/$CORE_FOLDER/airflow/"
cp -r "$AIRFLOW_BASE_FOLDER/plugins" "$DOCKER_DIST_FOLDER/$CORE_FOLDER/airflow/"
cp -r "$KONG_CONFIG_FOLDER/plugins" "$DOCKER_DIST_FOLDER/$CORE_FOLDER/kong-gateway/"
cp -r "$KONG_CONFIG_FOLDER/kong.conf" "$DOCKER_DIST_FOLDER/$CORE_FOLDER/kong-gateway/"
cp -r "$KONG_CONFIG_FOLDER/kong.production.yml" "$DOCKER_DIST_FOLDER/$CORE_FOLDER/kong-gateway/kong.yml"
cp -r "$ELASTICSEARCH_CONFIG_FOLDER" "$DOCKER_DIST_FOLDER/$CORE_FOLDER"
cp -r "$SCHEMAS_FOLDER" "$DOCKER_DIST_FOLDER/$CORE_FOLDER"
cp -r "$KEYCLOAK_FOLDER" "$DOCKER_DIST_FOLDER/$KEYCLOAK_FOLDER"

echo "
# DIVA Docker distribution
[Repository](https://github.com/FraunhoferISST/diva) | [Documentation](https://fraunhoferisst.github.io/diva-docs/)
Quick start:
\`\`\`
cd docker
./up_core.sh
\`\`\`" >> "$DOCKER_DIST_FOLDER/README.md"

zip -r dist/docker-deployment.zip dist/docker-deployment

Expand Down
Loading

0 comments on commit b1ee3ab

Please sign in to comment.