Skip to content

Commit

Permalink
Change the dockerfile to write out the new config values for the voca…
Browse files Browse the repository at this point in the history
…bulary handlers
  • Loading branch information
dannymandel committed Feb 13, 2024
1 parent 03defe0 commit d378c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ COPY ./isamples_webui/index.html /app/isb_web/ui/
COPY ./isamples_webui/manifest.json /app/isb_web/ui/
COPY ./isamples_webui/robots.txt /app/isb_web/ui/
COPY ./isamples_webui/static /app/isb_web/ui/static
RUN echo "const _server_base = \"$ISB_SITEMAP_PREFIX/\";\n\nconst DATACITE_PUBLISHER = [\"Sesar\", \"Geome\", \"OpenContext\", \"Smithsonian\"];\n\nconst config = {\n \"original_source\": \"https://n2t.net\",\n \"solr_url\": _server_base + \"thing/select\",\n \"solr_stream\": _server_base + \"thing/stream\",\n \"thingpage\": _server_base + \"thingpage\",\n \"dois_draft\": _server_base + \"manage/mint_draft_identifiers\",\n \"login\": _server_base + \"manage/login\",\n \"logout\": _server_base + \"manage/logout\",\n \"userinfo\": _server_base + \"manage/userinfo\",\n \"h3_count\": _server_base + \"h3_counts\", \n \"enable_login\": false, \n \"analytics_src\": \"$ANALYTICS_SRC\",\n \"analytics_domain\": \"$ANALYTICS_DOMAIN\",\n \"datacite_prefix\": \"$DATACITE_PREFIX\",\n \"datacite_publisher\": DATACITE_PUBLISHER\n};\n\nwindow.config = config;" | tee /app/isb_web/ui/config.js
RUN echo "const _server_base = \"$ISB_SITEMAP_PREFIX/\";\n\nconst DATACITE_PUBLISHER = [\"Sesar\", \"Geome\", \"OpenContext\", \"Smithsonian\"];\n\nconst config = {\n \"original_source\": \"https://n2t.net\",\n \"solr_url\": _server_base + \"thing/select\",\n \"solr_stream\": _server_base + \"thing/stream\",\n \"thingpage\": _server_base + \"thingpage\",\n \"dois_draft\": _server_base + \"manage/mint_draft_identifiers\",\n \"login\": _server_base + \"manage/login\",\n \"logout\": _server_base + \"manage/logout\",\n \"userinfo\": _server_base + \"manage/userinfo\",\n \"h3_count\": _server_base + \"h3_counts\", \n \"vocabulary_url\": _server_base + \"vocabulary\", \n \"enable_login\": false, \n \"analytics_src\": \"$ANALYTICS_SRC\",\n \"analytics_domain\": \"$ANALYTICS_DOMAIN\",\n \"datacite_prefix\": \"$DATACITE_PREFIX\",\n \"datacite_publisher\": DATACITE_PUBLISHER\n};\n\nwindow.config = config;" | tee /app/isb_web/ui/config.js

# Install nodejs in the container
USER root
Expand Down

0 comments on commit d378c02

Please sign in to comment.