Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Dec 23, 2024
1 parent c433957 commit 8360f85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions geonames/import.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash

curl -I https://download.geonames.org/export/dump/allCountries.zip > results/allCountries.zip
wget https://download.geonames.org/export/dump/allCountries.zip -O results/allCountries.zip
unzip -o results/allCountries.zip -d results
rm results/allCountries.zip
tsv-filter --str-eq 7:A results/allCountries.txt > results/adm.tsv
tsv-select -f 1-3,5-6,8-13 results/adm.tsv > uploads/input.tsv
rm results/allCountries.txt
tsv-select -f 1-3,5-6,8-13 results/adm.tsv > uploads/input.tsv
rm results/adm.tsv
7 changes: 7 additions & 0 deletions kubernetes/loculus/templates/geonames-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ spec:
- name: geonames-import
image: "ghcr.io/loculus-project/geonames:{{ $dockerTag }}"
command: ["sh", "./import.sh"]
resources:
limits:
cpu: 20m
memory: 2Gi
requests:
cpu: 20m
memory: 200Mi
containers:
- name: geonames-api
imagePullPolicy: IfNotPresent
Expand Down

0 comments on commit 8360f85

Please sign in to comment.