Skip to content

Commit

Permalink
Update Dockerfiles/docker-compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez committed Sep 12, 2023
1 parent 563cf7a commit ce39a78
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
1 change: 0 additions & 1 deletion ckan-ogc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ RUN pdm install --no-self --group prod
COPY ckan-ogc/conf/config.yaml.template config.yaml
COPY ckan-ogc/docker-entrypoint.d/entrypoint.sh entrypoint.sh
COPY ogc2ckan ogc2ckan
COPY data data

ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]
2 changes: 0 additions & 2 deletions ckan-ogc/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ RUN pdm install --no-self --group prod

COPY ckan-ogc/conf/config.yaml.template config.yaml
COPY ckan-ogc/docker-entrypoint.d/entrypoint_dev.sh entrypoint.sh
COPY ogc2ckan ogc2ckan
COPY data data

EXPOSE 5678/TCP

Expand Down
5 changes: 0 additions & 5 deletions ckan-ogc/Dockerfile.ghcr
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ ENV TIMEOUT=300
ENV SSL_UNVERIFIED_MODE=False

WORKDIR ${APP_DIR}
COPY pyproject.toml pdm.lock .

RUN pdm install --no-self --group prod

COPY ckan-ogc/conf/config.yaml.template config.yaml
COPY ckan-ogc/docker-entrypoint.d/entrypoint.sh entrypoint.sh
COPY ogc2ckan ogc2ckan
COPY data data

ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]
5 changes: 0 additions & 5 deletions ckan-ogc/Dockerfile.ghcr.dev
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ ENV TIMEOUT=300
ENV SSL_UNVERIFIED_MODE=False

WORKDIR ${APP_DIR}
COPY pyproject.toml pdm.lock .

RUN pdm install --no-self --group prod

COPY ckan-ogc/conf/config.yaml.template config.yaml
COPY ckan-ogc/docker-entrypoint.d/entrypoint_dev.sh entrypoint.sh
COPY ogc2ckan ogc2ckan
COPY data data

EXPOSE 5678/TCP

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.ghcr.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ services:
volumes:
- ./log:${APP_DIR}/log
- ./metadata:${APP_DIR}/metadata
- ./data:${APP_DIR}/data
- ./ogc2ckan:${APP_DIR}/ogc2ckan
network_mode: host
1 change: 1 addition & 0 deletions docker-compose.ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ services:
volumes:
- ./log:${APP_DIR}/log
- ./metadata:${APP_DIR}/metadata
- ./data:${APP_DIR}/data
restart: on-failure:3
network_mode: host
6 changes: 3 additions & 3 deletions ogc2ckan/mappings/ckan_fields/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
{
"ckan_object": "Dataset",
"ckan_section": "Basic Info",
"metadata_info": "NTI-RISP Theme (M)",
"new_metadata_field": "theme_es",
"metadata_info": "MDR Themes (M)",
"new_metadata_field": "theme_eu",
"multiplicity": "1.*",
"codelist": "http://datos.gob.es/kos/sector-publico/sector",
"codelist": "http://publications.europa.eu/resource/authority/data-theme/ENVI",
"stored": "List[URI]"
},
{
Expand Down
9 changes: 9 additions & 0 deletions ogc2ckan/mappings/ckan_fields/geodcatap.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@
"codelist": "https://inspire.ec.europa.eu/metadata-codelist/ResourceType,https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-7,https://id.loc.gov/vocabulary/marcgt.html",
"stored": "URI"
},
{
"ckan_object": "Dataset",
"ckan_section": "Basic Info",
"metadata_info": "MDR Themes (M)",
"new_metadata_field": "theme_eu",
"multiplicity": "1.*",
"codelist": "http://publications.europa.eu/resource/authority/data-theme",
"stored": "List[URI]"
},
{
"ckan_object": "Dataset",
"ckan_section": "Basic Info",
Expand Down

0 comments on commit ce39a78

Please sign in to comment.