diff --git a/.docs/changelog.md b/.docs/changelog.md index 0f6f11f524d89b3b7fa9a8a0d037d9565ae7de1c..8bc4ba39db5c769346112eaeb9ce0ad1326e8402 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 0000000000000000000000000000000000000000..5de157bd67e4b64068e5d045b54b24f9e5d535b0 --- /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 0000000000000000000000000000000000000000..9524b0df687374a851ac31fe468bfcba965fc127 --- /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