Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cspp-geo-web-viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Hoese
cspp-geo-web-viewer
Commits
3225d12f
Verified
Commit
3225d12f
authored
5 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade mapcache to 1.10 and turn off debug compiler flag
parent
a5541685
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#10406
canceled
5 years ago
Stage: build_image
Stage: registry_cleanup
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mapcache/Dockerfile
+2
-2
2 additions, 2 deletions
mapcache/Dockerfile
mapcache/mapcache_template.xml
+2
-0
2 additions, 0 deletions
mapcache/mapcache_template.xml
mapcache/render.py
+6
-2
6 additions, 2 deletions
mapcache/render.py
with
10 additions
and
4 deletions
mapcache/Dockerfile
+
2
−
2
View file @
3225d12f
...
...
@@ -54,9 +54,9 @@ RUN mkdir -p /build_deps && cd /build_deps \
&&
apt-get
install
-y
zlib1g-dev libpng-dev libjpeg-turbo8 libfreetype6 libfribidi-dev libharfbuzz-dev libcairo2-dev libfcgi-dev libgeos++-dev postgresql postgis libxml2-dev libgif-dev libjpeg-turbo8-dev libprotobuf-dev protobuf-compiler libprotobuf-c-dev libprotobuf-c1 libprotobuf-dev protobuf-c-compiler
\
&&
apt-get
-y
clean
\
&&
git clone https://github.com/mapserver/mapcache.git
&&
cd
mapcache
\
&&
git checkout
fa73ef28ae5d56ae817e0f0ee47aaed04b8d67f3
\
&&
git checkout
c467a3bb444cab69c52bc78b91b9bae3a9415f2f
\
&&
mkdir
-p
build
&&
cd
build
\
&&
cmake ..
-DWITH_MEMCACHE
=
1
-DCMAKE_BUILD_TYPE
=
"Debug"
\
&&
cmake ..
\
#
-DWITH_MEMCACHE=1 -DCMAKE_BUILD_TYPE="Debug"
\
&&
make
-j
$(
nproc
)
\
&&
make
install
...
...
This diff is collapsed.
Click to expand it.
mapcache/mapcache_template.xml
+
2
−
0
View file @
3225d12f
...
...
@@ -294,7 +294,9 @@
</keywords>
</metadata>
<format>
png_basic
</format>
{% if basemap_autoexpire != 0 %}
<auto_expire>
{{ basemap_autoexpire }}
</auto_expire>
{% endif %}
</tileset>
<tileset
name=
"{{ plat }}_abi_graticules"
>
<source>
{{ plat }}_abi_graticules
</source>
...
...
This diff is collapsed.
Click to expand it.
mapcache/render.py
+
6
−
2
View file @
3225d12f
...
...
@@ -18,8 +18,12 @@ products = ["C{:02d}".format(x) for x in range(1, 17)] + ["true_color"]
products
=
os
.
getenv
(
"
MAPCACHE_PRODUCTS
"
,
"
"
.
join
(
products
)).
split
(
"
"
)
platforms
=
"
g16 g17
"
platforms
=
os
.
getenv
(
"
MAPCACHE_PLATFORMS
"
,
platforms
).
split
(
"
"
)
image_autoexpire
=
os
.
getenv
(
"
IMAGE_AUTOEXPIRE
"
,
"
86400
"
)
basemap_autoexpire
=
os
.
getenv
(
"
BASEMAP_AUTOEXPIRE
"
,
"
86400
"
)
# 86400 = 24 hours
# this does not control when tiles are deleted from the cache, but rather
# when they should be re-requested. A value of 0 means never re-request.
# A non-zero value can be a good safety net to just make sure things are updated.
image_autoexpire
=
os
.
getenv
(
"
IMAGE_AUTOEXPIRE
"
,
str
(
86400
*
7
))
basemap_autoexpire
=
os
.
getenv
(
"
BASEMAP_AUTOEXPIRE
"
,
"
0
"
)
wms_host
=
os
.
environ
[
'
WMS_HOST
'
]
wms_port
=
os
.
environ
[
'
WMS_PORT
'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment