furiosa-ai / mlperf-postprocess

FuriosaAI postprocess implementation used in MLPerf submission

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/usr/share/furiosa is not under build context directory, causing failures of `make wheel`

hyunsik opened this issue · comments

Basically, all artifacts that Docker file try to access should be under a build context directory. Currently, the build context directory is . (i.e. mlperf-postprocess). It will cause a failure of make wheel command in general environments.

DOCKER_BUILDKIT=1 make wheel
docker build -t mlperf-postprocess-wheel -f docker/wheel.Dockerfile .
[+] Building 12.7s (11/11) FINISHED                                                                                   
 => [internal] load build definition from wheel.Dockerfile                                                       0.1s
 => => transferring dockerfile: 1.02kB                                                                           0.0s
 => [internal] load .dockerignore                                                                                0.1s
 => => transferring context: 2B                                                                                  0.0s
 => [internal] load metadata for quay.io/pypa/manylinux2014_x86_64:latest                                        0.0s
 => [1/7] FROM quay.io/pypa/manylinux2014_x86_64                                                                 1.0s
 => [internal] load build context                                                                               12.1s
 => => transferring context: 2.12GB                                                                             12.0s
 => CANCELED [2/7] RUN yum update -y     && yum install -y https://cbs.centos.org/kojifiles/packages/protobuf/  11.5s
 => CACHED [3/7] RUN pip3 install --upgrade pip && pip3 install --upgrade maturin                                0.0s
 => CACHED [4/7] RUN curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal   0.0s
 => CACHED [5/7] WORKDIR /app                                                                                    0.0s
 => CACHED [6/7] COPY . .                                                                                        0.0s
 => ERROR [7/7] COPY /usr/share/furiosa /usr/share/furiosa                                                       0.0s
------                                                                                                                
 > [7/7] COPY /usr/share/furiosa /usr/share/furiosa:
------
failed to compute cache key: "/usr/share/furiosa" not found: not found
make: *** [Makefile:25: docker-wheel] Error 1