Skip to content

Commit

Permalink
fix for issue 658 (#659)
Browse files Browse the repository at this point in the history
* fix for issue 658

* Update Dockerfile

remove old/accidental commit referencing dave's migrations-package
  • Loading branch information
maaikelimper authored Apr 23, 2024
1 parent 2f31d2c commit 9a4e0fc
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 6 deletions.
10 changes: 4 additions & 6 deletions wis2box-management/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@ RUN apt-get update -y && apt-get install -y ${DEBIAN_PACKAGES} \
&& apt autoremove -y \
&& apt-get -q clean \
&& rm -rf /var/lib/apt/lists/* \
# cache WMDR codelists
&& mkdir -p /home/wis2box/wmdr-codelists \
&& curl -s "https://codes.wmo.int/wmdr/FacilityType?_format=csv&status=valid" > /home/wis2box/wmdr-codelists/FacilityType.csv \
&& curl -s "https://codes.wmo.int/wmdr/InstrumentOperatingStatus?_format=csv&status=valid" > /home/wis2box/wmdr-codelists/InstrumentOperatingStatus.csv \
&& curl -s "https://codes.wmo.int/wmdr/TerritoryName?_format=csv&status=valid" > /home/wis2box/wmdr-codelists/TerritoryName.csv \
&& curl -s "https://codes.wmo.int/wmdr/WMORegion?_format=csv&status=valid" > /home/wis2box/wmdr-codelists/WMORegion.csv
# create directory for wmdr codelists
&& mkdir -p /home/wis2box/wmdr-codelists

# copy wdmr codelists
COPY ./wmdr-codelists /home/wis2box/wmdr-codelists

# copy the app
COPY . /app
Expand Down
15 changes: 15 additions & 0 deletions wis2box-management/wmdr-codelists/FacilityType.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@id,dct:description,rdf:type,rdfs:label,skos:notation
<http://codes.wmo.int/wmdr/FacilityType/airFixed>,"'Airborne station/platform, at fixed position'@en",skos:Concept,Air (fixed),airFixed
<http://codes.wmo.int/wmdr/FacilityType/airMobile>,"'Airborne station/platform, moving around'@en",skos:Concept,Air (mobile),airMobile
<http://codes.wmo.int/wmdr/FacilityType/lakeRiverFixed>,"'Station/platform at lake/river surface, at fixed position'@en",skos:Concept,Lake/River (fixed),lakeRiverFixed
<http://codes.wmo.int/wmdr/FacilityType/lakeRiverMobile>,"'station/platform at lake/river surface, moving around'@en",skos:Concept,Lake/River (mobile),lakeRiverMobile
<http://codes.wmo.int/wmdr/FacilityType/landFixed>,"'Station/platform on solid terrain, at fixed position'@en",skos:Concept,Land (fixed),landFixed
<http://codes.wmo.int/wmdr/FacilityType/landMobile>,"'Station/platform on solid terrain, moving around'@en",skos:Concept,Land (mobile),landMobile
<http://codes.wmo.int/wmdr/FacilityType/landOnIce>,"'Station/platform on ice-covered ground, moving with the ice'@en",skos:Concept,Land (on ice),landOnIce
<http://codes.wmo.int/wmdr/FacilityType/seaFixed>,"'Station/platform at sea surface, at fixed position'@en",skos:Concept,Sea (fixed),seaFixed
<http://codes.wmo.int/wmdr/FacilityType/seaMobile>,"'Station/platform at sea surface, moving around'@en",skos:Concept,Sea (mobile),seaMobile
<http://codes.wmo.int/wmdr/FacilityType/seaOnIce>,"'Station/platform on floating ice, moving with the ice'@en",skos:Concept,Sea (on ice),seaOnIce
<http://codes.wmo.int/wmdr/FacilityType/spaceBased>,'Satellite platform in orbit'@en,skos:Concept,Space-based,spaceBased
<http://codes.wmo.int/wmdr/FacilityType/underwaterFixed>,"'Station/platform under water, at fixed horizontal position'@en",skos:Concept,Underwater (fixed),underwaterFixed
<http://codes.wmo.int/wmdr/FacilityType/underwaterMobile>,"'Station/platform under water, moving around also horizontally'@en",skos:Concept,Underwater (mobile),underwaterMobile
<http://codes.wmo.int/wmdr/FacilityType/unknown>,'The station/platform type is unknown.'@en,skos:Concept,unknown,unknown
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@id,dct:description,rdf:type,rdfs:label,skos:notation
<http://codes.wmo.int/wmdr/InstrumentOperatingStatus/inactive>,'The instrument is deployed but presently not in service'@en,skos:Concept,Not in service / inactive,inactive
<http://codes.wmo.int/wmdr/InstrumentOperatingStatus/inapplicable>,'None of the codes in the table are applicable in the context of this particular observation'@en,skos:Concept,inapplicable,inapplicable
<http://codes.wmo.int/wmdr/InstrumentOperatingStatus/operational>,'The instrument is declared operational and subject to routine maintenance'@en,skos:Concept,Operational,operational
<http://codes.wmo.int/wmdr/InstrumentOperatingStatus/testing>,'The instrument is deployed for testing purposes and the information provided may not be reliable'@en,skos:Concept,Testing / commissioning,testing
<http://codes.wmo.int/wmdr/InstrumentOperatingStatus/unknown>,'The instrument operating status is unknown'@en,skos:Concept,unknown,unknown
Loading

0 comments on commit 9a4e0fc

Please sign in to comment.