Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Fedora Ingest Service
Commits
5b3ca287
Commit
5b3ca287
authored
Oct 23, 2020
by
Jonas Waeber
Browse files
Update deployment configurations.
parent
c7e4d27c
Pipeline
#15997
passed with stages
in 4 minutes and 54 seconds
Changes
7
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
helm-charts/helm-values/drupal-ingest.yml
View file @
5b3ca287
deploymentName
:
ip-drupal-sync-ingest
jobName
:
ingest
clientId
:
fedora-drupal-sync-ingest-app
processId
:
drupal
institutionId
:
drupal-sync
recordSetId
:
drupal-sync
# there will be no resources to load for now... (maybe logos some day)
appDirectory
:
drupal-sync
kafkaConfigs
:
prod-kafka-bootstrap-servers
kafkaConfigs
:
prod-kafka-bootstrap-servers
sftpConfigs
:
internal-sftp-config
sftpConfigs
:
internal-sftp-config
fedoraConfigs
:
fedora-admin-credentials
fedoraConfigs
:
fedora-admin-credentials
\ No newline at end of file
inputTopicName
:
drupal-sync-output
outputTopicName
:
void_topic
reportingTopicName
:
import-process-reporting
helm-charts/helm-values/import-process-ingest.yaml
0 → 100644
View file @
5b3ca287
deploymentName
:
ip-ingest-service
clientId
:
fedora-ingest-service-app
kafkaConfigs
:
prod-kafka-bootstrap-servers
sftpConfigs
:
internal-sftp-config
fedoraConfigs
:
fedora-admin-credentials
inputTopicName
:
import-process-normalization
outputTopicName
:
void_topic
reportingTopicName
:
import-process-reporting
helm-charts/templates/app-config.yaml
View file @
5b3ca287
...
@@ -4,9 +4,7 @@ metadata:
...
@@ -4,9 +4,7 @@ metadata:
name
:
"
{{
.Values.deploymentName
}}-config"
name
:
"
{{
.Values.deploymentName
}}-config"
namespace
:
memobase
namespace
:
memobase
data
:
data
:
APPLICATION_ID
:
{{
.Values.applicationId
}}
CLIENT_ID
:
{{
.Values.clientId
}}
CLIENT_ID
:
{{
.Values.clientId
}}
TOPIC_IN
:
{{
.Values.inputTopicName
}}
TOPIC_IN
:
{{
.Values.inputTopicName
}}
TOPIC_OUT
:
{{
.Values.outputTopicName
}}
TOPIC_OUT
:
{{
.Values.outputTopicName
}}
TOPIC_REPORTING
:
{{
.Values.reportingTopicName
}}
TOPIC_REPORTING
:
{{
.Values.reportingTopicName
}}
APP_DIRECTORY
:
"
some_value"
# FIXME: Remove eventually?
helm-charts/templates/deployment.yaml
View file @
5b3ca287
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
name
:
{{
.Values.deploymentName
}}
name
:
{{
.Values.deploymentName
}}
-deployment
namespace
:
memobase
namespace
:
memobase
labels
:
labels
:
jobType
:
"
import-process-deployment"
jobType
:
"
import-process-deployment"
...
...
helm-charts/values.yaml
View file @
5b3ca287
...
@@ -4,24 +4,12 @@ image: "memoriav/memobase-2020/services/import-process/fedora-ingest-service"
...
@@ -4,24 +4,12 @@ image: "memoriav/memobase-2020/services/import-process/fedora-ingest-service"
tag
:
"
latest"
tag
:
"
latest"
deploymentName
:
fedora-ingest-service
deploymentName
:
fedora-ingest-service
## TODO: This needs to be solved differently. This way it is not possible to deploy a replica-set.
## somehow the id needs to be dependent on the pod name?
applicationId
:
fedora-ingest-service-app
clientId
:
fedora-ingest-service-app
clientId
:
fedora-ingest-service-app
institutionId
:
placeholder
recordSetId
:
placeholder
kafkaConfigs
:
prod-kafka-bootstrap-servers
kafkaConfigs
:
prod-kafka-bootstrap-servers
sftpConfigs
:
internal-sftp-config
sftpConfigs
:
internal-sftp-config
fedoraConfigs
:
fedora-admin-credentials
fedoraConfigs
:
fedora-admin-credentials
## Needs to be set to the directory on the sftp server.
## this is a relative path built like this:
## "./{RECORD_SET_ID}"
appDirectory
:
placeholderValue
inputTopicName
:
import-process-normalization
inputTopicName
:
import-process-normalization
outputTopicName
:
void_topic
outputTopicName
:
void_topic
reportingTopicName
:
import-process-reporting
reportingTopicName
:
import-process-reporting
src/main/kotlin/Report.kt
View file @
5b3ca287
...
@@ -19,13 +19,38 @@
...
@@ -19,13 +19,38 @@
package
org.memobase
package
org.memobase
import
com.beust.klaxon.Klaxon
import
com.beust.klaxon.Klaxon
import
java.time.LocalDateTime
data class
Report
(
data class
Report
(
val
id
:
String
,
val
id
:
String
,
val
status
:
String
,
val
status
:
String
,
val
message
:
String
val
message
:
String
,
val
step
:
String
=
"fedora-ingest"
,
val
timestamp
:
String
=
LocalDateTime
.
now
().
toString
()
)
{
)
{
fun
toJson
():
String
{
fun
toJson
():
String
{
return
Klaxon
().
toJsonString
(
this
)
return
Klaxon
().
toJsonString
(
this
)
}
}
override
fun
equals
(
other
:
Any
?):
Boolean
{
if
(
this
===
other
)
return
true
if
(
javaClass
!=
other
?.
javaClass
)
return
false
other
as
Report
if
(
id
!=
other
.
id
)
return
false
if
(
status
!=
other
.
status
)
return
false
if
(
message
!=
other
.
message
)
return
false
if
(
step
!=
other
.
step
)
return
false
return
true
}
override
fun
hashCode
():
Int
{
var
result
=
id
.
hashCode
()
result
=
31
*
result
+
status
.
hashCode
()
result
=
31
*
result
+
message
.
hashCode
()
result
=
31
*
result
+
step
.
hashCode
()
return
result
}
}
}
src/main/resources/app.yml
View file @
5b3ca287
...
@@ -4,7 +4,6 @@ sftp:
...
@@ -4,7 +4,6 @@ sftp:
user
:
${SFTP_USER:?env}
user
:
${SFTP_USER:?env}
password
:
${SFTP_PASSWORD:?env}
password
:
${SFTP_PASSWORD:?env}
app
:
app
:
appDirectory
:
${APP_DIRECTORY:?env}
fedora
:
fedora
:
internalBaseUrl
:
${FEDORA_INTERNAL_BASE_URL:?env}
internalBaseUrl
:
${FEDORA_INTERNAL_BASE_URL:?env}
externalBaseUrl
:
${FEDORA_EXTERNAL_BASE_URL:?env}
externalBaseUrl
:
${FEDORA_EXTERNAL_BASE_URL:?env}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment