Skip to content

Commit

Permalink
Update taginfo instalation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Jan 8, 2024
1 parent 0ec6317 commit 555093e
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions images/taginfo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
FROM ruby:3.0
# Use ruby:2.4 as the base image
FROM ruby:2.4

# Set the working directory
ENV workdir /apps
WORKDIR $workdir

# Install Taginfo site
RUN apt-get update && apt-get -y install \
# Install all necessary packages in a single RUN command to reduce layers
RUN apt-get update && apt-get install -y \
curl \
sqlite3 \
sqlite3-pcre \
ruby-passenger \
libapache2-mod-passenger \
git

# Commit ae5a950f7aa4c0de4e706839619a1dc05fc4450a, at 2021-10-18
RUN git clone https://github.com/taginfo/taginfo.git $workdir/taginfo
WORKDIR $workdir/taginfo
RUN git checkout ae5a950f7aa4c0de4e706839619a1dc05fc4450a
RUN echo "gem 'thin' " >>Gemfile
RUN gem install bundler
RUN bundle install

# Install Taginfo tools
RUN apt-get -y install \
git \
cmake \
libbz2-dev \
libexpat1-dev \
Expand All @@ -31,25 +24,34 @@ RUN apt-get -y install \
make \
zlib1g-dev \
jq \
ca-certificates

# Other useful packages
RUN apt-get install -y \
git \
ca-certificates \
osmium-tool \
pyosmium \
rsync \
tmux \
zsh
zsh \
nano \
vim \
&& rm -rf /var/lib/apt/lists/* # Clean up to reduce image size

# Clone and setup taginfo-tools
RUN git clone https://github.com/taginfo/taginfo-tools.git $workdir/taginfo-tools && \
cd $workdir/taginfo-tools && \
git submodule update --init && \
mkdir build && cd build && \
cmake .. && make

RUN git clone https://github.com/taginfo/taginfo-tools.git $workdir/taginfo-tools
WORKDIR $workdir/taginfo-tools
RUN git submodule update --init
RUN mkdir build && cd build && cmake .. && make
# Clone and setup taginfo
RUN git clone https://github.com/taginfo/taginfo.git $workdir/taginfo && \
cd $workdir/taginfo && \
git checkout ae5a950f7aa4c0de4e706839619a1dc05fc4450a && \
echo "gem 'thin' " >> Gemfile && \
gem install bundler -v 2.3.27 && \
bundle install

RUN apt-get install -y nano vim
# Copy necessary files
COPY overwrite_config.py $workdir/
COPY start.sh $workdir/

WORKDIR $workdir/
CMD $workdir/start.sh
# Define command to run the application
CMD $workdir/start.sh

0 comments on commit 555093e

Please sign in to comment.