e2e setup branch testing failed on docker-compose up --build

11 views
Skip to first unread message

ruslan...@raccoongang.com

unread,
Mar 28, 2019, 12:24:26 AM3/28/19
to General Open edX discussion
Hello I have some problems with setup of e2e testing branch

1. I cloned repo   git clone https://github.com/edx/edx-e2e-tests
2. I run the command docker-compose up --build
and the mistake occurs 

Step 3/7 : RUN apt-get update -qqy     && apt-get -qqy install     libxml2-dev     libxslt1-dev     && rm -rf /var/lib/apt/lists/* /var/cache/apt/*

---> Running in d81d7d81395d

W: GPG error: https://dl.yarnpkg.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E


W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found


E: Some index files failed to download. They have been ignored, or old ones used instead.


ERROR: Service 'e2e-tests' failed to build: The command '/bin/sh -c apt-get update -qqy     && apt-get -qqy install     libxml2-dev     libxslt1-dev     && rm -rf /var/lib/apt/lists/* /var/cache/apt/*' returned a non-zero code: 100



I found that it is failed in Dockerfile 
lines
Enter code here...# Install system libraries needed for lxml
RUN apt-get update -qqy \
&& apt-get -qqy install \
libxml2-dev \
libxslt1-dev \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*


Thank you for your help.

ruslan...@raccoongang.com

unread,
Mar 28, 2019, 7:49:09 AM3/28/19
to General Open edX discussion

Ok so the answer
# To build this Dockerfile:
#
# From the root of the edx-e2e-tests repository:
#
# docker build . -t edxops/e2e:latest

FROM edxops/python:2.7
MAINTAINER edxops

# Install system libraries needed for lxml
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && apt-get update -y \
   
&& apt-get -y install \

    libxml2
-dev \
    libxslt1
-dev \
   
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

ADD . /edx-e2e-tests
WORKDIR /edx-e2e-tests

# Install requirements and pages
# Deletes the edx-platform checkout afterwards, it will be mapped in from the host
RUN pip install -r requirements/base.txt \
   
&& paver install_pages \
   
&& rm -rf /edx-e2e-tests/lib

# Just wait for the user to launch a shell when started via docker-compose
CMD ["sleep", "infinity"]

 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages