-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into monitored_routes
- Loading branch information
Showing
75 changed files
with
1,795 additions
and
1,053 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[flake8] | ||
ignore = E203, E266, E501, W503 | ||
max-line-length = 88 | ||
max-complexity = 30 | ||
max-complexity = 40 | ||
select = B,C,E,F,W,T4,B9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ postgres-data-backup/* | |
*.rdb | ||
*_history | ||
local_configs/* | ||
prod-*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: artemis-chart | ||
description: ARTEMIS helm chart for deploying on kubernetes. | ||
version: 0.0.1 | ||
keywords: | ||
- helm | ||
- artemis | ||
- bgp | ||
- hijack | ||
home: https://github.com/FORTH-ICS-INSPIRE/artemis | ||
maintainers: | ||
- name: Dimitrios Mavrommatis | ||
email: jim.mavrommatis@gmail.com | ||
url: https://slowr.github.io | ||
appVersion: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This chart was created by Kompose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../backend/configs/config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../other/rabbitmq/enabled-plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../backend/configs/exabgp.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../other/db/init.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../backend/configs/logging.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../frontend/webapp/configs/nginx.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../other/postgres-entrypoint.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../other/db/data/restore.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../other/db/libs/rabbitmq/schema.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../backend/supervisor.d/services.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../other/db/data/tables.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../backend/wait-for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../frontend/webapp/configs/webapp.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
io.kompose.service: backend | ||
app: {{ .Release.Name }} | ||
name: backend | ||
spec: | ||
replicas: {{ .Values.replicaCount | default 1 }} | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: backend | ||
annotations: | ||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} | ||
spec: | ||
initContainers: | ||
- name: populate-pvc | ||
image: busybox | ||
volumeMounts: | ||
- mountPath: /configmaps | ||
name: backend-configmap | ||
- mountPath: /pvc | ||
name: backend-pvc | ||
subPath: configs | ||
command: ['sh', '-c', 'cp -u /configmaps/config.yaml /configmaps/logging.yaml /configmaps/services.conf /pvc/'] | ||
- name: wait-for-service | ||
image: busybox | ||
command: ['sh', '-c', 'until nc -z {{ .Values.rabbitmqHost }} {{ .Values.rabbitmqPort}}; do echo waiting for services; sleep 10; done;'] | ||
containers: | ||
- env: | ||
- name: DB_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: dbHost | ||
- name: DB_NAME | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: dbName | ||
- name: DB_PASS | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Release.Name }}-secret | ||
key: dbPass | ||
- name: DB_PORT | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: dbPort | ||
- name: DB_USER | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: dbUser | ||
- name: DB_VERSION | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: dbVersion | ||
- name: GUI_ENABLED | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: guiEnabled | ||
- name: HASURA_GRAPHQL_ACCESS_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Release.Name }}-secret | ||
key: hasuraSecret | ||
- name: HASURA_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: hasuraHost | ||
- name: HASURA_PORT | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: hasuraPort | ||
- name: HISTORIC | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: historic | ||
- name: RABBITMQ_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: rabbitmqHost | ||
- name: RABBITMQ_PASS | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Release.Name }}-secret | ||
key: rabbitmqPass | ||
- name: RABBITMQ_PORT | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: rabbitmqPort | ||
- name: RABBITMQ_USER | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: rabbitmqUser | ||
- name: REDIS_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: redisHost | ||
- name: REDIS_PORT | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: redisPort | ||
- name: SUPERVISOR_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: supervisorHost | ||
- name: SUPERVISOR_PORT | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ .Release.Name }}-configmap | ||
key: supervisorPort | ||
image: inspiregroup/artemis-backend:{{ .Values.systemVersion }} | ||
name: backend | ||
resources: {} | ||
volumeMounts: | ||
- mountPath: /etc/artemis/logging.yaml | ||
name: backend-pvc | ||
subPath: configs/logging.yaml | ||
- mountPath: /etc/artemis/config.yaml | ||
name: backend-pvc | ||
subPath: configs/config.yaml | ||
- mountPath: /etc/supervisor/conf.d/services.conf | ||
name: backend-pvc | ||
subPath: configs/services.conf | ||
restartPolicy: Always | ||
volumes: | ||
- configMap: | ||
name: {{ .Release.Name }}-volumes | ||
name: backend-configmap | ||
- persistentVolumeClaim: | ||
claimName: {{ .Release.Name }}-pvc | ||
name: backend-pvc | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-configmap | ||
labels: | ||
app: {{ .Release.Name }} | ||
data: | ||
guiEnabled: {{ .Values.guiEnable | default "true" | quote }} | ||
systemVersion: {{ .Values.systemVersion | default "latest" | quote }} | ||
historic: {{ .Values.historic | default "false" | quote }} | ||
redisHost: {{ .Values.redisHost | default "backend" | quote }} | ||
redisPort: {{ .Values.redisPort | default "6379" | quote }} | ||
supervisorHost: {{ .Values.supervisorHost | default "backend" | quote }} | ||
supervisorPort: {{ .Values.supervisorPort | default "9001" | quote }} | ||
apiHost: {{ .Values.apiHost | default "postgrest" | quote }} | ||
apiPort: {{ .Values.apiPort | default "3000" | quote }} | ||
dbHost: {{ .Values.dbHost | default "postgres" | quote }} | ||
dbPort: {{ .Values.dbPort | default "5432" | quote }} | ||
dbVersion: {{ .Values.dbVersion | default "12" | quote }} | ||
dbName: {{ .Values.dbName | default "artemis_db" | quote }} | ||
dbUser: {{ .Values.dbUser | default "artemis_user" | quote }} | ||
dbSchema: {{ .Values.dbSchema | default "public" | quote }} | ||
dbAutoClean: {{ .Values.dbAutoClean | default "false" | quote }} | ||
dbBackup: {{ .Values.dbBackup | default "true" | quote }} | ||
dbHijackDormant: {{ .Values.dbHijackDormant | default "false" | quote }} | ||
dbUri: postgres://{{ .Values.dbUser | default "artemis_user" }}:{{ .Values.dbPass | default "Art3m1s" }}@{{ .Values.dbHost | default "postgres"}}:{{ .Values.dbPort | default 5432 }}/{{ .Values.dbName | default "artemis_db" }} | ||
bindIp: {{ .Values.bindIp | default "0.0.0.0" | quote }} | ||
webappHost: {{ .Values.webappHost | default "frontend" | quote }} | ||
webappPort: {{ .Values.webappPort | default "8000" | quote }} | ||
adminUser: {{ .Values.adminUser | default "admin" | quote }} | ||
adminEmail: {{ .Values.adminEmail | default "admin@admin.com" | quote }} | ||
jsVersion: {{ .Values.jsVersion | default "0.1.2" | quote }} | ||
rabbitmqHost: {{ .Values.rabbimtqHost | default "rabbitmq" | quote }} | ||
rabbitmqPort: {{ .Values.rabbimtqPort | default "5672" | quote }} | ||
rabbitmqUser: {{ .Values.rabbitmqUser | default "guest" | quote }} | ||
rabbitmqUri: amqp://{{ .Values.rabbitmqUser | default "guest" }}:{{ .Values.rabbitmqPass | default "guest" }}@{{ .Values.rabbitmqHost | default "rabbitmq"}}:{{ .Values.rabbitmqPort | default 5672 }}// | ||
hasuraHost: {{ .Values.hasuraHost | default "graphql" | quote }} | ||
hasuraPort: {{ .Values.hasuraPort | default "8080" | quote }} | ||
hasuraGui: {{ .Values.hasuraGui | default "false" | quote }} |
Oops, something went wrong.