From dd86c057c085dc1403ef875b46b9625ba6773a91 Mon Sep 17 00:00:00 2001 From: Martin Weise <martin.weise@tuwien.ac.at> Date: Wed, 4 Dec 2024 11:16:58 +0100 Subject: [PATCH] WIP --- .docs/changelog.md | 2 ++ dbrepo-metadata-db/init/Dockerfile | 10 ++++++++++ dbrepo-metadata-db/init/sync.sh | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 dbrepo-metadata-db/init/Dockerfile create mode 100644 dbrepo-metadata-db/init/sync.sh diff --git a/.docs/changelog.md b/.docs/changelog.md index 0f6f11f524..8bc4ba39db 100644 --- a/.docs/changelog.md +++ b/.docs/changelog.md @@ -18,6 +18,8 @@ author: Martin Weise #### Fixes +* Fixed the situation where the initial `admin` user is not in sync with the Metadata Database + in [#470](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/issues/470). * Fixed the `dist.tar.gz` file not being found in the CI/CD pipeline on `release-` branches in [#465](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/issues/465). diff --git a/dbrepo-metadata-db/init/Dockerfile b/dbrepo-metadata-db/init/Dockerfile new file mode 100644 index 0000000000..5de157bd67 --- /dev/null +++ b/dbrepo-metadata-db/init/Dockerfile @@ -0,0 +1,10 @@ +FROM alpine:3.19 +LABEL org.opencontainers.image.authors="martin.weise@tuwien.ac.at" + +RUN apk add --no-cache curl bash jq mariadb-client + +WORKDIR /home/alpine + +COPY ./sync.sh ./sync.sh + +ENTRYPOINT [ "bash", "./sync.sh" ] \ No newline at end of file diff --git a/dbrepo-metadata-db/init/sync.sh b/dbrepo-metadata-db/init/sync.sh new file mode 100644 index 0000000000..9524b0df68 --- /dev/null +++ b/dbrepo-metadata-db/init/sync.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# fetch admin user id from auth service + +# save admin user in metadata db \ No newline at end of file -- GitLab