On Thursday, March 28, 2019 at 6:24:26 AM UTC+2, [email protected] 
wrote:
>
> 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.
>

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"]


 

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/98ed2bb1-f14a-4234-ab0e-991d114a4546%40googlegroups.com.

Reply via email to