File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
osm-seed/templates/taginfo Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
WORKDIR=/usr/src/app
3
3
DATADIR=/usr/src/app/data
4
- DATADOWNLOAD=/usr/src/app/osm
4
+ DATADOWNLOAD=/osm/planet/var
5
5
mkdir -p $DATADIR /
6
6
mkdir -p $DATADOWNLOAD /
7
7
mkdir -p $DATADIR /update/log/
@@ -43,10 +43,11 @@ process_data() {
43
43
# # wiki/update.sh $DATADIR
44
44
# # wikidata/update.sh $DATADIR
45
45
chronology/update.sh $DATADIR
46
- mv $DATADIR /taginfo-* .db $DATADIR /
47
- mv $DATADIR /* /taginfo-* .db $DATADIR /
46
+ ./update_all.sh $DATADIR
47
+ mv $DATADIR /* .db $DATADIR /
48
+ mv $DATADIR /* /* .db $DATADIR /
49
+
48
50
# if BUCKET_NAME is set upload data
49
-
50
51
if ! aws s3 ls " s3://$BUCKET_NAME /$ENVIRONMENT " 2>&1 | grep -q ' An error occurred' ; then
51
52
aws s3 sync $DATADIR / s3://$AWS_S3_BUCKET /$ENVIRONMENT / --exclude " *" --include " *.db"
52
53
fi
@@ -63,15 +64,14 @@ compress_files() {
63
64
download_db_files () {
64
65
if ! aws s3 ls " s3://$AWS_S3_BUCKET /$ENVIRONMENT " 2>&1 | grep -q ' An error occurred' ; then
65
66
aws s3 sync " s3://$AWS_S3_BUCKET /$ENVIRONMENT /" " $DATADIR /"
67
+ compress_files
66
68
fi
67
- compress_files
68
69
}
69
70
70
-
71
71
sync_latest_db_version () {
72
72
while true ; do
73
- download_db_files
74
73
sleep " $INTERVAL_DOWNLOAD_DATA "
74
+ download_db_files
75
75
done
76
76
}
77
77
Original file line number Diff line number Diff line change 29
29
- /bin/sh
30
30
- -c
31
31
- |
32
- /usr/src/app/start.sh web
32
+ sleep 36000 && /usr/src/app/start.sh web
33
33
ports :
34
34
- name : http
35
35
containerPort : 80
38
38
httpGet :
39
39
path : /
40
40
port : 80
41
- initialDelaySeconds : 60
42
- timeoutSeconds : 30
41
+ initialDelaySeconds : 120
42
+ timeoutSeconds : 60
43
43
{{- if .Values.taginfo.resources.enabled }}
44
44
resources :
45
45
requests :
You can’t perform that action at this time.
0 commit comments