Skip to content

Commit b42b468

Browse files
Rub21geohacker
authored andcommitted
Set gitsha value to set version of web
1 parent dcb44e8 commit b42b468

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

images/web/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ RUN npm install -g svgo
3838

3939
# Install openstreetmap-website
4040
RUN rm -rf $workdir/html
41-
RUN git clone --depth 1 https://github.com/openstreetmap/openstreetmap-website.git $workdir
41+
# GITSHA value at 15-02-2022
42+
ENV OPENSTREETMAP_WEBSITE_GITSHA=c24b5481812aba9e83da1fd855ccb37f92c5d75e
43+
RUN curl -L https://github.com/openstreetmap/openstreetmap-website/archive/$OPENSTREETMAP_WEBSITE_GITSHA.zip --output website.zip && unzip website.zip
44+
RUN mv openstreetmap-website-$OPENSTREETMAP_WEBSITE_GITSHA/* $workdir/
4245
WORKDIR $workdir
43-
RUN echo "gem 'image_optim_pack', :git => 'git://github.com/toy/image_optim_pack.git'" >> Gemfile
46+
RUN echo "gem 'image_optim_pack', :git => 'https://github.com/toy/image_optim_pack.git'" >> Gemfile
4447

4548
# Install Ruby packages
4649
RUN gem install bundler && bundle install

images/web/config/settings.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# The server protocol and host
23
server_protocol: "http"
34
server_url: "openstreetmap.example.com"
@@ -118,10 +119,15 @@ fossgis_osrm_url: "https://routing.openstreetmap.de/"
118119
csp_enforce: false
119120
# URL for reporting Content-Security-Policy violations
120121
#csp_report_url: ""
121-
# Storage service to use in production mode
122-
storage_service: "local"
123-
# Root URL for storage service
124-
# storage_url:
122+
# Storage services to use in production mode
123+
avatar_storage: "local"
124+
trace_file_storage: "local"
125+
trace_image_storage: "local"
126+
trace_icon_storage: "local"
127+
# Root URL for storage services
128+
# avatar_storage_url:
129+
# trace_image_storage_url:
130+
# trace_icon_storage_url:
125131
# URL for tile CDN
126132
#tile_cdn_url: ""
127133
# SMTP settings for outbound mail

0 commit comments

Comments
 (0)