Closed miguelmota closed 5 years ago
Hi @miguelmota , I guess the root cause is that Wheezy and Jessie were recently removed from the mirror network. We may discuss about how to solve this problem.
I just made a simple workaround for your .You could try to modify the file migration/Dockerfile
in your cloned repo as following
FROM ruby:2.3.0
ENV LANG C.UTF-8
ENV HOST localhost
ENV PORT 3306
ENV USERNAME root
ENV PASSWORD my-secret-pw
ENV DATABASE ethdb
# Ref: https://unix.stackexchange.com/questions/508724/failed-to-fetch-jessie-backports-repository
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
echo "deb http://cdn-fastly.deb.debian.org/debian/ jessie main" >/etc/apt/sources.list && \
echo "deb-src http://cdn-fastly.deb.debian.org/debian/ jessie main" >>/etc/apt/sources.list && \
echo "deb http://security.debian.org/ jessie/updates main" >>/etc/apt/sources.list && \
echo "deb-src http://security.debian.org/ jessie/updates main" >>/etc/apt/sources.list
RUN apt-get update && \
apt-get install -y unixodbc-dev \
mysql-client \
freetds-dev \
build-essential \
patch \
ruby-dev \
zlib1g-dev \
liblzma-dev \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# Cache bundle install
WORKDIR /tmp
ADD ./Gemfile Gemfile
ADD ./Gemfile.lock Gemfile.lock
RUN bundle install
ADD ./Rakefile Rakefile
ADD ./db db
RUN chmod -R 777 Rakefile && chmod -R 777 db
RUN addgroup --system --gid 699 app
RUN adduser --system --uid 699 --gid 699 --no-create-home --disabled-login app
USER app
@owensengoku thanks! no more errors
Hello, I cloned the repo and ran docker-compose up but getting errors:
Any help is much appreciated