Skip to content

Commit

Permalink
Update cgimap2.1 (#343)
Browse files Browse the repository at this point in the history
* Update cgimap version

* Update path for cgimap

* Set cgimap before remove basic auth

* Fix path for cgimap
  • Loading branch information
Rub21 authored Oct 13, 2024
1 parent c69686d commit 686c7c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions images/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ RUN apt-get update && apt-get install -y nodejs yarn && \
rm -rf /var/lib/apt/lists/*

# Install openstreetmap-cgimap requirements
RUN apt-get update && apt-get -y install libpqxx-dev libfcgi-dev zlib1g-dev \
libboost-dev libboost-program-options-dev libfmt-dev \
libmemcached-dev libcrypto++-dev libargon2-dev libyajl-dev \
automake autoconf libtool && \
RUN apt-get update && apt-get -y install libxml2-dev libpqxx-dev libfcgi-dev zlib1g-dev libbrotli-dev \
libboost-program-options-dev libfmt-dev libmemcached-dev libcrypto++-dev \
libargon2-dev libyajl-dev cmake libapache2-mod-fcgid && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Install cgimap
ENV cgimap /tmp/openstreetmap-cgimap
ENV CGIMAP_GITSHA=5cd3d21bebe9d205828608be4c65bbda8b464308
RUN git clone -b master https://github.com/zerebubuth/openstreetmap-cgimap.git $cgimap
RUN cd $cgimap && git checkout $CGIMAP_GITSHA
RUN cd $cgimap && \
./autogen.sh && \
./configure && \
make && \
make install
# Install cgimap, before remove basic auth
ENV cgimap /openstreetmap-cgimap
ENV CGIMAP_GITSHA=26cd7fa10affe5dbd13dbe16de34421059f53f18
RUN git clone -b master https://github.com/zerebubuth/openstreetmap-cgimap.git $cgimap \
&& cd $cgimap \
&& git checkout $CGIMAP_GITSHA \
&& rm -rf .git \
&& mkdir build \
&& cd build \
&& cmake .. \
&& cmake --build .

# Install svgo required
RUN npm install -g svgo
Expand Down
2 changes: 1 addition & 1 deletion images/web/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ while "$flag" = true; do
done &
time rails i18n:js:export assets:precompile
bundle exec rails db:migrate
/usr/local/bin/openstreetmap-cgimap \
/openstreetmap-cgimap/build/openstreetmap-cgimap \
--port=8000 \
--daemon \
--instances=3 \
Expand Down

0 comments on commit 686c7c0

Please # to comment.