Commit 1a9ee661 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Update templates

Add script to deploy configurations
parent 46738367
#!/usr/bin/env bash
for d in **;
do
scp $d/mappings/localTransforms.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/$d/config/localTransforms.yml;
scp $d/mappings/mapping.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/$d/config/mapping.yml;
scp $d/mappings/transform.xslt root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/$d/config/transform.xslt;
echo "Copied $d/mappings to $d/config"
sleep 10;
done
ssh root@mb-wf2.memobase.unibas.ch "chown -R mb_sftp:mb_sftp /swissbib_index/mb_sftp/"
\ No newline at end of file
......@@ -61,7 +61,8 @@
"type": "text",
"fields": {
"filter": {
"type": "keyword"
"type": "keyword",
"ignore_above": 256
}
}
}
......@@ -74,7 +75,8 @@
"type": "text",
"fields": {
"filter": {
"type": "keyword"
"type": "keyword",
"ignore_above": 256
}
}
}
......@@ -87,7 +89,8 @@
"type": "text",
"fields": {
"filter": {
"type": "keyword"
"type": "keyword",
"ignore_above": 256
}
}
}
......@@ -100,7 +103,8 @@
"type": "text",
"fields": {
"filter": {
"type": "keyword"
"type": "keyword",
"ignore_above": 256
}
}
}
......
......@@ -8,110 +8,89 @@
},
"mappings": {
"date_detection": false,
"properties": {
"canton": {
"properties": {
"de": {
"type": "keyword"
},
"fr": {
"type": "keyword"
},
"it": {
"type": "keyword"
},
"un": {
"dynamic_templates": [
{
"filter_as_keyword": {
"path_match": "*.filter",
"mapping": {
"type": "keyword"
}
}
},
"city": {
"properties": {
"de": {
"type": "text"
},
"fr": {
"type": "text"
},
"it": {
"type": "text"
},
"un": {
"type": "text"
}
}
},
"description": {
"properties": {
"de": {
"type": "text"
},
"fr": {
"type": "text"
},
"it": {
"type": "text"
},
"un": {
"type": "text"
{
"facet_as_keyword": {
"path_match": "*.facet",
"mapping": {
"type": "keyword"
}
}
},
"documentType": {
"properties": {
"de": {
"type": "keyword"
},
"fr": {
"type": "keyword"
},
"it": {
"type": "keyword"
},
"un": {
"type": "keyword"
{
"german_fields": {
"path_match": "*.de",
"mapping": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"id": {
"type": "keyword"
},
"keyVisualLink": {
"type": "keyword"
},
"address": {
"type": "text"
},
"name": {
"properties": {
"de": {
{
"french_fields": {
"path_match": "*.fr",
"mapping": {
"type": "text",
"fields": {
"keyword": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fr": {
}
}
},
{
"italian_fields": {
"path_match": "*.it",
"mapping": {
"type": "text",
"fields": {
"keyword": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
}
},
"it": {
}
}
},
{
"unknown_language_fields": {
"path_match": "*.un",
"mapping": {
"type": "text",
"fields": {
"keyword": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
],
"properties": {
"id": {
"type": "keyword"
},
"keyVisualLink": {
"type": "keyword"
},
"address": {
"type": "text"
},
"postalCodes": {
"type": "text"
......@@ -125,21 +104,11 @@
"published": {
"type": "boolean"
},
"type": {
"properties": {
"de": {
"type": "keyword"
},
"fr": {
"type": "keyword"
},
"it": {
"type": "keyword"
},
"un": {
"type": "keyword"
}
}
"teaserColor": {
"type": "keyword"
},
"teaserColorComputed": {
"type": "keyword"
}
}
}
......
{
"status": "success",
"body": {
"object_kind": "pipeline",
"object_attributes": {
"id": 17053,
"ref": "0.1.11",
"tag": true,
"sha": "726495a80c01f37b7f0920d9a930ead5543e94b7",
"before_sha": "0000000000000000000000000000000000000000",
"source": "push",
"status": "success",
"detailed_status": "passed",
"stages": [
"test",
"publish"
],
"created_at": "2020-11-13 14:15:24 +0100",
"finished_at": "2020-11-13 14:22:45 +0100",
"duration": 320,
"variables": []
},
"merge_request": null,
"user": {
"name": "Jonas Waeber",
"username": "jonas.waeber",
"avatar_url": "https://secure.gravatar.com/avatar/5ba35b083e70a8c430b3da3448a1216f?s=80&d=identicon",
"email": "jonas.waeber@unibas.ch"
},
"project": {
"id": 951,
"name": "elastic-bulk-action-service",
"description": "",
"web_url": "https://gitlab.switch.ch/memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service",
"avatar_url": null,
"git_ssh_url": "git@gitlab.switch.ch:memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service.git",
"git_http_url": "https://gitlab.switch.ch/memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service.git",
"namespace": "elastic-services",
"visibility_level": 20,
"path_with_namespace": "memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service",
"default_branch": "master",
"ci_config_path": null
},
"commit": {
"id": "726495a80c01f37b7f0920d9a930ead5543e94b7",
"message": "Fix deployment options\n",
"title": "Fix deployment options",
"timestamp": "2020-11-13T14:15:12+01:00",
"url": "https://gitlab.switch.ch/memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service/-/commit/726495a80c01f37b7f0920d9a930ead5543e94b7",
"author": {
"name": "Jonas Waeber",
"email": "jonaswaeber@gmail.com"
}
},
"builds": [
{
"id": 54607,
"stage": "test",
"name": "test",
"status": "success",
"created_at": "2020-11-13 14:15:24 +0100",
"started_at": "2020-11-13 14:15:26 +0100",
"finished_at": "2020-11-13 14:17:34 +0100",
"when": "on_success",
"manual": false,
"allow_failure": false,
"user": {
"name": "Jonas Waeber",
"username": "jonas.waeber",
"avatar_url": "https://secure.gravatar.com/avatar/5ba35b083e70a8c430b3da3448a1216f?s=80&d=identicon",
"email": "jonas.waeber@unibas.ch"
},
"runner": {
"id": 60,
"description": "runner-mb-r2",
"active": true,
"is_shared": false
},
"artifacts_file": {
"filename": null,
"size": null
}
},
{
"id": 54608,
"stage": "test",
"name": "test-chart",
"status": "success",
"created_at": "2020-11-13 14:15:24 +0100",
"started_at": "2020-11-13 14:15:27 +0100",
"finished_at": "2020-11-13 14:15:42 +0100",
"when": "on_success",
"manual": false,
"allow_failure": false,
"user": {
"name": "Jonas Waeber",
"username": "jonas.waeber",
"avatar_url": "https://secure.gravatar.com/avatar/5ba35b083e70a8c430b3da3448a1216f?s=80&d=identicon",
"email": "jonas.waeber@unibas.ch"
},
"runner": {
"id": 59,
"description": "runner-mb-r1",
"active": true,
"is_shared": false
},
"artifacts_file": {
"filename": null,
"size": null
}
},
{
"id": 54609,
"stage": "publish",
"name": "build-tagged-image",
"status": "success",
"created_at": "2020-11-13 14:15:24 +0100",
"started_at": "2020-11-13 14:19:46 +0100",
"finished_at": "2020-11-13 14:22:44 +0100",
"when": "on_success",
"manual": false,
"allow_failure": false,
"user": {
"name": "Jonas Waeber",
"username": "jonas.waeber",
"avatar_url": "https://secure.gravatar.com/avatar/5ba35b083e70a8c430b3da3448a1216f?s=80&d=identicon",
"email": "jonas.waeber@unibas.ch"
},
"runner": {
"id": 53,
"description": "gitlab-ext-shared-runner-03",
"active": true,
"is_shared": true
},
"artifacts_file": {
"filename": null,
"size": null
}
},
{
"id": 54610,
"stage": "publish",
"name": "publish-chart",
"status": "success",
"created_at": "2020-11-13 14:15:24 +0100",
"started_at": "2020-11-13 14:17:34 +0100",
"finished_at": "2020-11-13 14:17:48 +0100",
"when": "on_success",
"manual": false,
"allow_failure": false,
"user": {
"name": "Jonas Waeber",
"username": "jonas.waeber",
"avatar_url": "https://secure.gravatar.com/avatar/5ba35b083e70a8c430b3da3448a1216f?s=80&d=identicon",
"email": "jonas.waeber@unibas.ch"
},
"runner": {
"id": 60,
"description": "runner-mb-r2",
"active": true,
"is_shared": false
},
"artifacts_file": {
"filename": null,
"size": null
}
}
]
},
"log": "removing autodeploy-workdir\n\ngit clone https://gitlab.switch.ch/memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service.git\n\nCloning into '//autodeploy-workdir'...\npulling charts from cr.gitlab.switch.ch/memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service:0.1.11-chart \n0.1.11-chart: Pulling from cr.gitlab.switch.ch/memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service\nref: cr.gitlab.switch.ch/memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service:0.1.11-chart\ndigest: 3fbd6e2b08f5d76d91c3ad2b21ef622723aa868fd4bd295daa4b08cea181e904\nsize: 1.1 KiB\nname: elastic-bulk-indexer-service\nversion: 0.1.11\nStatus: Chart is up to date for cr.gitlab.switch.ch/memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service:0.1.11-chart\n\nexporting charts to local directory \nref: cr.gitlab.switch.ch/memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service:0.1.11-chart\ndigest: 3fbd6e2b08f5d76d91c3ad2b21ef622723aa868fd4bd295daa4b08cea181e904\nsize: 1.1 KiB\nname: elastic-bulk-indexer-service\nversion: 0.1.11\nExported chart to /autodeploy-workdir/pulled-helm-charts/elastic-bulk-indexer-service/\n\ndeleting elastic-bulk-action-service-deployment \n\nError: uninstall: Release not loaded: elastic-bulk-action-service-deployment: release: not found\ninstalling elastic-bulk-action-service-deployment \n\nError: path \"//autodeploy-workdir/pulled-helm-charts/elastic-bulk-action-service\" not found\n"
}
\ No newline at end of file
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment