File tree Expand file tree Collapse file tree 5 files changed +32
-15
lines changed Expand file tree Collapse file tree 5 files changed +32
-15
lines changed Original file line number Diff line number Diff line change
1
+ # `dependabot.yml` file with updates
2
+
3
+ # Update manually "Insights -> Dependency Graph -> Dependabot"
4
+
5
+ version : 2
6
+ updates :
7
+ # Configuration for Dockerfile
8
+ - package-ecosystem : " docker"
9
+ directory : " /scripts/"
10
+ schedule :
11
+ interval : " daily"
12
+
13
+ - package-ecosystem : " github-actions"
14
+ directory : " /"
15
+ schedule :
16
+ # Check for updates to GitHub Actions every month
17
+ interval : " monthly"
Original file line number Diff line number Diff line change 1
- ARG VERSION
2
- FROM ghcr.io/osgeo/proj:${VERSION:-9.5.0}
1
+ FROM ghcr.io/osgeo/proj:9.6.2
3
2
4
3
ARG PYPROJ_VERSION 3.3.0
5
4
ENV PYPROJ_VERSION=$PYPROJ_VERSION
Original file line number Diff line number Diff line change @@ -124,11 +124,11 @@ def adapt_crs(crs):
124
124
125
125
def make_mapping (home_dir ):
126
126
today = date .today ().isoformat ()
127
+ proj_version = pyproj .database .get_database_metadata ("PROJ.VERSION" )
127
128
mapping = {'home_dir' : home_dir ,
128
129
'lang' : 'en' ,
129
130
'authority' : None ,
130
- 'last_revised' : os .getenv ('LAST_REVISED' , '-missing-' ),
131
- 'proj_version' : os .getenv ('PROJ_VERSION' , '-missing-' ),
131
+ 'proj_version' : proj_version ,
132
132
'built_date' : today ,}
133
133
return mapping
134
134
@@ -448,4 +448,4 @@ def main():
448
448
449
449
450
450
if __name__ == '__main__' :
451
- exit (main ())
451
+ exit (main ())
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -Eeuo pipefail
3
3
4
- # indicate DOCKER PROJ version
5
- PROJ_VERSION=9.6.2
6
- PYPROJ_VERSION=3.7.1
7
- LAST_REVISED=2025
8
- TAG=" crs-explorer:$PROJ_VERSION "
9
- STOP_COUNTER=" ${1:- 0} "
10
-
11
4
# prepare destination
12
5
DIRNAME=` dirname $( readlink -f $0 ) `
13
6
mkdir -p $DIRNAME /dist
14
7
test " $( ls -A $DIRNAME /dist/) " && rm -r $DIRNAME /dist/*
15
8
9
+ # extract PROJ version from Dockerfile
10
+ PROJ_VERSION=` cat $DIRNAME /Dockerfile | sed -n ' s/^FROM .*:\(.*\)$/\1/p' `
11
+ echo " PROJ_VERSION=$PROJ_VERSION "
12
+
13
+ PYPROJ_VERSION=3.7.1
14
+
15
+ DOCKER_TAG=" crs-explorer:$PROJ_VERSION "
16
+ STOP_COUNTER=" ${1:- 0} "
17
+
16
18
# build container
17
- docker build --pull --platform=linux/amd64 --build-arg VERSION= $PROJ_VERSION --build-arg PYPROJ_VERSION=$PYPROJ_VERSION --tag $TAG $DIRNAME
19
+ docker build --pull --platform=linux/amd64 --build-arg PYPROJ_VERSION=$PYPROJ_VERSION --tag $DOCKER_TAG $DIRNAME
18
20
19
21
# execute container
20
- docker run --user $( id -u) :$( id -g) -e STOP_COUNTER=$STOP_COUNTER -e LAST_REVISED= $LAST_REVISED -e PROJ_VERSION= $PROJ_VERSION -- rm -v " $DIRNAME /dist:/home/dist" $TAG
22
+ docker run --user $( id -u) :$( id -g) -e STOP_COUNTER=$STOP_COUNTER -- rm -v " $DIRNAME /dist:/home/dist" $DOCKER_TAG
21
23
22
24
# done
23
25
echo .
Original file line number Diff line number Diff line change 59
59
<p>Click the Map to open the Explorer</p>
60
60
<img src="https://a.tile.openstreetmap.org/0/0/0.png">
61
61
</a>
62
- <p>Last revised in {{ last_revised }}</p>
63
62
</div>
64
63
<div id="footer">
65
64
{% include 'sections/footer.tmpl' %} - Code implementation inspired by <a href="https://crs-explorer.proj.org">crs-explorer.proj.org</a>
You can’t perform that action at this time.
0 commit comments