Изображение докера Rasa утенка (на основе haskell) на Raspberry Pi - не будет строить - PullRequest
0 голосов
/ 20 октября 2019

Я пытаюсь заставить rasa-duckling работать в докере на Raspberry Pi, но не могу его собрать.

Официальное изображение использует haskell: 8 , я пытаюсь использовать модифицированный образ - rpi-haskell , на котором установлен haskell поверх raspbian.

Сборка идет так далекокак RUN stack setup и затем не может найти соответствующие файлы .cabal.

Я раньше не использовал haskell и не смог разобраться, как это исправить.

Благодарендля любой помощи с исправлением.

Dockerfile

FROM tgolson/rpi-haskell

RUN apt-get update -qq && \
  apt-get install -qq -y libpcre3 libpcre3-dev build-essential --fix-missing --no-install-recommends && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN mkdir /log
RUN mkdir duckling
WORKDIR duckling
RUN apt-get install -y git

RUN git clone https://github.com/RasaHQ/duckling.git
WORKDIR duckling

RUN sudo apt-get install llvm-3.7
RUN ln -s /usr/bin/opt-3.7 /usr/bin/opt
RUN ln -s /usr/bin/llc-3.7 /usr/bin/llc
RUN stack update

ADD stack.yaml .

RUN stack setup

# NOTE:`stack build` will use as many cores as are available to build
# in parallel. However, this can cause OOM issues as the linking step
# in GHC can be expensive. If the build fails, try specifying the
# '-j1' flag to force the build to run sequentially.
RUN stack install

EXPOSE 8000

CMD ["duckling-example-exe", "--no-access-log", "--no-error-log"]

Ошибка:

Step 14/17 : RUN stack setup
 ---> Running in 363cbaca2ea0
Downloading lts-9.10 build plan ...
Downloaded lts-9.10 build plan.
Populating index cache ...
Populated index cache.
Did not find .cabal file for wai-middleware-static-0.8.1 with Git SHA of d497d973cf61dea0cbc72b2b068b7a055e743c9e
Right Nothing
Did not find .cabal file for tasty-stats-0.2.0.3 with Git SHA of 99694ce8d998dd2abf861fc73ad99f8bf8511c31
Right Nothing
Did not find .cabal file for tasty-hspec-1.1.3.2 with Git SHA of 000343cb27030cd1d76d1a2c2a333cfecafbeea3
Right Nothing
Did not find .cabal file for servant-mock-0.8.2 with Git SHA of 5d4fc759d37108116bde446c82ec3345da780712
Right Nothing
Did not find .cabal file for servant-client-0.11 with Git SHA of 6ba7ace9f3f20b1ec441658dadc7cf1a4ac42fd1
Right Nothing
Did not find .cabal file for servant-checked-exceptions-0.4.1.0 with Git SHA of e4e2a22e06f6559260d4068e4e94729430ec3f2e
Right Nothing
Did not find .cabal file for servant-0.11 with Git SHA of 4c038e04b7a9d4ca796d3611bb71ea30d96578ba
Right Nothing
Did not find .cabal file for scotty-0.11.0 with Git SHA of 01e1392882cddb211689184dedd40228fec95ef1
Right Nothing
Did not find .cabal file for scientific-0.3.5.2 with Git SHA of d967212878eff600a3d1ae3db4a6f34816fc4aa2
Right Nothing
Did not find .cabal file for rest-wai-0.2.0.1 with Git SHA of 7c18a5c6972260934b32c382ff84a807716bc59c
Right Nothing
Did not find .cabal file for rest-client-0.5.1.1 with Git SHA of 2d55f756347b9ea9a98e1a0cd005baa5176cbcf6
Right Nothing
Did not find .cabal file for postgresql-typed-0.5.1 with Git SHA of 8920976f3140e6e79b3d32206124742bbce2a659
Right Nothing
Did not find .cabal file for natural-transformation-0.4 with Git SHA of bd0d0d9b4ab85d2bdf5718664ab1692eb775c2c0
Right Nothing
Did not find .cabal file for monad-http-0.1.0.0 with Git SHA of 13638681f24bd6dcfc6b0e2a0a821db084f93e00
Right Nothing
Did not find .cabal file for imagesize-conduit-1.1 with Git SHA of 0dd207d6e4d1d81549b75b89d84be9545464f531
Right Nothing
Did not find .cabal file for hjsonpointer-1.2.0 with Git SHA of 42588498219488475d395388fd77b42a1539098d
Right Nothing
Did not find .cabal file for fixed-vector-hetero-0.3.1.2 with Git SHA of 7707b00ee033bb6735b5f3775fe92ed09d9c3099
Right Nothing
Did not find .cabal file for blank-canvas-0.6.1 with Git SHA of 8485ce38eb9347de08c877151c09e12388fa8357
Right Nothing
I don't know how to install GHC for (Linux,Arm), please install manually
...