mikeizbicki/cmc-csci143

trouble installing rum

Closed this issue · 0 comments

I am trying to install rum and this is what I put into my Dockerfile:

FROM postgis/postgis
                                                                                                                                    # Install necessary packages for compiling extensions
RUN apt-get update && apt-get install -y \
    git \                                                                                                                               make \                                                                                                                              postgresql-server-dev-all

# Clone the RUM extension repository
RUN git clone https://github.com/postgrespro/rum.git /tmp/rum
                                                                                                                                    # Compile the RUM extension
RUN cd /tmp/rum && make && make install
                                                                                                                                    # Clean up unnecessary packages and files
RUN apt-get purge -y --auto-remove git make && \
    rm -rf /tmp/rum

When I run docker-compose up -d --build, I get the following error:

Sending build context to Docker daemon   21.5kB
Step 1/5 : FROM postgis/postgis
 ---> 2551d650586a
Step 2/5 : RUN apt-get update && apt-get install -y     git     make     postgresql-server-dev-all
 ---> Using cache
 ---> ab990b00fd0a
Step 3/5 : RUN git clone https://github.com/postgrespro/rum.git /tmp/rum
 ---> Using cache
 ---> 9c5d02465d5d
Step 4/5 : RUN cd /tmp/rum && make && make install
 ---> Running in b220bed865a6
Makefile:45: /contrib/contrib-global.mk: No such file or directory
make: *** No rule to make target '/contrib/contrib-global.mk'.  Stop.
The command '/bin/sh -c cd /tmp/rum && make && make install' returned a non-zero code: 2
ERROR: Service 'postgres' failed to build : Build failed

Do I need to fix something in my Dockerfile or somehow check the contents of the Makefile in the Rum repository?