Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
e315864f
Verified
Commit
e315864f
authored
1 year ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Updated the prod script
parent
1386abf6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.prod.yml
+11
-11
11 additions, 11 deletions
docker-compose.prod.yml
install.sh
+16
-13
16 additions, 13 deletions
install.sh
with
27 additions
and
24 deletions
docker-compose.prod.yml
+
11
−
11
View file @
e315864f
...
@@ -14,7 +14,7 @@ services:
...
@@ -14,7 +14,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-metadata-db
container_name
:
dbrepo-metadata-db
hostname
:
metadata-db
hostname
:
metadata-db
image
:
docker.io/dbrepo/metadata-db:
latest
image
:
docker.io/dbrepo/metadata-db:
1.4.1
volumes
:
volumes
:
-
metadata-db-data:/bitnami/mariadb
-
metadata-db-data:/bitnami/mariadb
-
./dist/setup-schema_local.sql:/docker-entrypoint-initdb.d/setup-schema_local.sql
-
./dist/setup-schema_local.sql:/docker-entrypoint-initdb.d/setup-schema_local.sql
...
@@ -76,7 +76,7 @@ services:
...
@@ -76,7 +76,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-authentication-service
container_name
:
dbrepo-authentication-service
hostname
:
authentication-service
hostname
:
authentication-service
image
:
docker.io/dbrepo/authentication-service:
latest
image
:
docker.io/dbrepo/authentication-service:
1.4.1
ports
:
ports
:
-
"
8443:8443"
-
"
8443:8443"
-
"
8080:8080"
-
"
8080:8080"
...
@@ -101,7 +101,7 @@ services:
...
@@ -101,7 +101,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-metadata-service
container_name
:
dbrepo-metadata-service
hostname
:
metadata-service
hostname
:
metadata-service
image
:
docker.io/dbrepo/metadata-service:
latest
image
:
docker.io/dbrepo/metadata-service:
1.4.1
volumes
:
volumes
:
-
"
${SHARED_FILESYSTEM:-/tmp}:/tmp"
-
"
${SHARED_FILESYSTEM:-/tmp}:/tmp"
ports
:
ports
:
...
@@ -176,7 +176,7 @@ services:
...
@@ -176,7 +176,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-analyse-service
container_name
:
dbrepo-analyse-service
hostname
:
analyse-service
hostname
:
analyse-service
image
:
docker.io/dbrepo/analyse-service:
latest
image
:
docker.io/dbrepo/analyse-service:
1.4.1
ports
:
ports
:
-
"
5000:5000"
-
"
5000:5000"
environment
:
environment
:
...
@@ -220,7 +220,7 @@ services:
...
@@ -220,7 +220,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-search-db
container_name
:
dbrepo-search-db
hostname
:
search-db
hostname
:
search-db
image
:
docker.io/dbrepo/search-db:
latest
image
:
docker.io/dbrepo/search-db:
1.4.1
ports
:
ports
:
-
"
9200:9200"
-
"
9200:9200"
healthcheck
:
healthcheck
:
...
@@ -244,7 +244,7 @@ services:
...
@@ -244,7 +244,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-search-service
container_name
:
dbrepo-search-service
hostname
:
search-service
hostname
:
search-service
image
:
docker.io/dbrepo/search-service:
latest
image
:
docker.io/dbrepo/search-service:
1.4.1
ports
:
ports
:
-
"
4000:4000"
-
"
4000:4000"
environment
:
environment
:
...
@@ -256,7 +256,7 @@ services:
...
@@ -256,7 +256,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-data-db-sidecar
container_name
:
dbrepo-data-db-sidecar
hostname
:
data-db-sidecar
hostname
:
data-db-sidecar
image
:
docker.io/dbrepo/data-db-sidecar:
latest
image
:
docker.io/dbrepo/data-db-sidecar:
1.4.1
ports
:
ports
:
-
"
3305:3305"
-
"
3305:3305"
environment
:
environment
:
...
@@ -276,7 +276,7 @@ services:
...
@@ -276,7 +276,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-ui
container_name
:
dbrepo-ui
hostname
:
ui
hostname
:
ui
image
:
docker.io/dbrepo/ui:
latest
image
:
docker.io/dbrepo/ui:
1.4.1
volumes
:
volumes
:
-
./dist/dbrepo.config.json:/app/dbrepo.config.json
-
./dist/dbrepo.config.json:/app/dbrepo.config.json
depends_on
:
depends_on
:
...
@@ -332,7 +332,7 @@ services:
...
@@ -332,7 +332,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-search-db-init
container_name
:
dbrepo-search-db-init
hostname
:
search-db-init
hostname
:
search-db-init
image
:
docker.io/dbrepo/search-db-init:
latest
image
:
docker.io/dbrepo/search-db-init:
1.4.1
environment
:
environment
:
OPENSEARCH_HOST
:
${SEARCH_DB_HOST:-http://search-db:9200}
OPENSEARCH_HOST
:
${SEARCH_DB_HOST:-http://search-db:9200}
CURL_EXTRA_ARGS
:
${SEARCH_DB_EXTRA_ARGS:-}
CURL_EXTRA_ARGS
:
${SEARCH_DB_EXTRA_ARGS:-}
...
@@ -365,7 +365,7 @@ services:
...
@@ -365,7 +365,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-storage-service-init
container_name
:
dbrepo-storage-service-init
hostname
:
storage-service-init
hostname
:
storage-service-init
image
:
docker.io/dbrepo/storage-service-init:
latest
image
:
docker.io/dbrepo/storage-service-init:
1.4.1
environment
:
environment
:
SEAWEEDFS_ENDPOINT
:
"
${STORAGE_SEAWEEDFS_ENDPOINT:-storage-service:9333}"
SEAWEEDFS_ENDPOINT
:
"
${STORAGE_SEAWEEDFS_ENDPOINT:-storage-service:9333}"
depends_on
:
depends_on
:
...
@@ -404,7 +404,7 @@ services:
...
@@ -404,7 +404,7 @@ services:
restart
:
"
no"
restart
:
"
no"
container_name
:
dbrepo-data-service
container_name
:
dbrepo-data-service
hostname
:
data-service
hostname
:
data-service
image
:
docker.io/dbrepo/data-service:
latest
image
:
docker.io/dbrepo/data-service:
1.4.1
ports
:
ports
:
-
"
9093:9093"
-
"
9093:9093"
environment
:
environment
:
...
...
This diff is collapsed.
Click to expand it.
install.sh
+
16
−
13
View file @
e315864f
#!/bin/bash
#!/bin/bash
# preset
VERSION
=
"1.4.1"
MIN_CPU
=
8
MIN_CPU
=
8
MIN_RAM
=
8
MIN_RAM
=
8
SKIP_CHECKS
=
${
SKIP_CHECKS
:-
0
}
SKIP_CHECKS
=
${
SKIP_CHECKS
:-
0
}
...
@@ -43,19 +46,19 @@ fi
...
@@ -43,19 +46,19 @@ fi
# environment
# environment
echo
"[🚀] Gathering environment ..."
echo
"[🚀] Gathering environment ..."
mkdir
-p
./dist
mkdir
-p
./dist
curl
-sSL
-o
./docker-compose.yml https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/docker-compose.prod.yml
curl
-sSL
-o
./docker-compose.yml
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/docker-compose.prod.yml
"
curl
-sSL
-o
./dist/setup-schema_local.sql https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/dbrepo-metadata-db/setup-schema_local.sql
curl
-sSL
-o
./dist/setup-schema_local.sql
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/dbrepo-metadata-db/setup-schema_local.sql
"
curl
-sSL
-o
./dist/rabbitmq.conf https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/dbrepo-broker-service/rabbitmq.conf
curl
-sSL
-o
./dist/rabbitmq.conf
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/dbrepo-broker-service/rabbitmq.conf
"
curl
-sSL
-o
./dist/enabled_plugins https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/dbrepo-broker-service/enabled_plugins
curl
-sSL
-o
./dist/enabled_plugins
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/dbrepo-broker-service/enabled_plugins
"
curl
-sSL
-o
./dist/cert.pem https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/dbrepo-broker-service/cert.pem
curl
-sSL
-o
./dist/cert.pem
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/dbrepo-broker-service/cert.pem
"
curl
-sSL
-o
./dist/pubkey.pem https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/dbrepo-broker-service/pubkey.pem
curl
-sSL
-o
./dist/pubkey.pem
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/dbrepo-broker-service/pubkey.pem
"
curl
-sSL
-o
./dist/definitions.json https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/dbrepo-broker-service/definitions.json
curl
-sSL
-o
./dist/definitions.json
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/dbrepo-broker-service/definitions.json
"
curl
-sSL
-o
./dist/dbrepo.conf https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/dbrepo-gateway-service/dbrepo.conf
curl
-sSL
-o
./dist/dbrepo.conf
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/dbrepo-gateway-service/dbrepo.conf
"
curl
-sSL
-o
./dist/opensearch_dashboards.yml https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/dbrepo-search-db/opensearch_dashboards.yml
curl
-sSL
-o
./dist/opensearch_dashboards.yml
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/dbrepo-search-db/opensearch_dashboards.yml
"
curl
-sSL
-o
./dist/dbrepo.config.json https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/dbrepo-ui/dbrepo.config.json
curl
-sSL
-o
./dist/dbrepo.config.json
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/dbrepo-ui/dbrepo.config.json
"
curl
-sSL
-o
./dist/s3_config.json https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
master
/dbrepo-storage-service/s3_config.json
curl
-sSL
-o
./dist/s3_config.json
"
https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/
release-
${
VERSION
}
/dbrepo-storage-service/s3_config.json
"
echo
"[📦] Pulling images ..."
echo
"[📦] Pulling images
for version
${
VERSION
}
..."
docker compose pull
docker compose pull
MAX_MAP_COUNT
=
$(
cat
/proc/sys/vm/max_map_count
)
MAX_MAP_COUNT
=
$(
cat
/proc/sys/vm/max_map_count
)
...
@@ -75,5 +78,5 @@ if [ $? -eq 0 ]; then
...
@@ -75,5 +78,5 @@ if [ $? -eq 0 ]; then
echo
""
echo
""
echo
" docker compose logs -f"
echo
" docker compose logs -f"
echo
""
echo
""
echo
"Read about next steps online: https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/
latest
/deployment-docker-compose/#next-steps"
echo
"Read about next steps online: https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/
${
VERSION
}
/deployment-docker-compose/#next-steps"
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment