From 8ca49c15500fef43c3fd2ae69a43938274d24a29 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Fri, 19 Oct 2018 16:34:01 +0200 Subject: [PATCH] docker: Rebuild thing-url-adapter Adapter is rebuild from source in container, this was needed for node10 supprt. It was tested on ARTIK710 on Fedora. Change-Id: I473236d34bf92abec6d216cfce6f09d5d38efe30 Forwarded: https://github.com/mozilla-iot/gateway/pull/1441 Signed-off-by: Philippe Coval --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1fd9904d2..9574d4442 100755 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,23 @@ RUN echo "#log: ${project}: Preparing sources" \ && ./gateway/install.sh \ && sync +ADD https://github.com/mozilla-iot/thing-url-adapter/archive/master.tar.gz /usr/local/src/thing-url-adapter.tar.gz +WORKDIR /usr/local/src/ +RUN echo "#log: ${project}: Add addons sources" \ + && set -x \ + && mkdir -p /root/.mozilla-iot/addons/thing-url-adapter/.git \ + && tar xvfz /usr/local/src/thing-url-adapter.tar.gz \ + -C ${HOME}/.mozilla-iot/addons/thing-url-adapter \ + --strip-components=1 \ + && sync + +WORKDIR /usr/local/src/ +RUN echo "#log: ${project}: Add addons sources" \ + && cd ${HOME}/.mozilla-iot/addons/thing-url-adapter \ + && npm install -g yarn \ + && yarn install \ + && sync + EXPOSE 8080 WORKDIR /root/mozilla-iot/gateway CMD [ "./run-app.sh" ]