Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to install with docker method #49

Closed
abdimussa87 opened this issue Mar 5, 2024 · 2 comments
Closed

Failing to install with docker method #49

abdimussa87 opened this issue Mar 5, 2024 · 2 comments

Comments

@abdimussa87
Copy link

I keep getting the below error when I ran docker-compose up -d:

8.427 W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-armhf/Packages  404  Not Found
8.427 
8.427 W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-armhf/Packages  404  Not Found
8.427 
8.427 E: Some index files failed to download. They have been ignored, or old ones used instead.
failed to solve: process "/bin/sh -c apt-get update -qq &&     apt-get install -y       libgd-gd2-perl libgd-text-perl       libdbd-mysql-perl libdbi-perl       libconfig-yaml-perl       make gcc g++       unzip       curl &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
@SofiyanIfren
Copy link

SofiyanIfren commented Apr 6, 2024

I have openned a PR about that : #51

Just use the modified Dockerfile there :

FROM debian:buster

MAINTAINER Hossam Hammady <[email protected]>

RUN apt-get update -qq && \
    apt-get install -y \
      libgd-gd2-perl libgd-text-perl \
      libdbd-mysql-perl libdbi-perl \
      libconfig-yaml-perl \
      make gcc g++ \
      unzip \
      curl && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

RUN cd / && \
    curl -L -o zopfli.zip https://github.com/google/zopfli/archive/master.zip && \
    unzip zopfli.zip && \
    cd zopfli-master && \
    make zopflipng && \
    cp zopflipng /usr/local/bin/

WORKDIR /app

RUN curl -L https://cpanmin.us | perl - -M https://cpan.metacpan.org -n Mojolicious

ADD config /app/config
ADD lib /app/lib
ADD res /app/res
ADD script /app/script
ADD Makefile.PL /app/Makefile.PL

RUN cd /app && \
    perl Makefile.PL && \
    make && \
    make install

RUN find /app -type f -name '*.pl' -exec sed -i 's/\r$//' {} \;

RUN sed -i 's/localhost/mysql/' /app/config/database.yaml

CMD /app/script/generate.pl help

@ahmedre
Copy link
Contributor

ahmedre commented Apr 9, 2024

this should be fixed now in #50 and #51

@ahmedre ahmedre closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants