Skip to content

Commit

Permalink
chore: v4l2camera for packages
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelTaranto committed Mar 7, 2022
1 parent 732c01d commit 04bc5f2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions build-scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,33 @@ FROM acp as acp-build

FROM upboard as upboard-gaia-build
COPY --from=acp-build /lamassu/lamassu-machine /lamassu/lamassu-machine
RUN cd lamassu-machine && rm -rf node_modules && npm install && npm install &&\
RUN cd lamassu-machine && rm -rf node_modules && npm install && \
npm install @joepie91/v4l2camera@1.0.5 && \
mv node_modules/@joepie91/v4l2camera node_modules/ && \
rmdir node_modules/@joepie91 && \
cp ./hardware/codebase/upboard/gaia/device_config.json ./ && \
bash ./deploy/codebase/build.sh upboard-gaia --copy-device-config

FROM upboard as upboard-sintra-build
COPY --from=upboard-gaia-build /lamassu/lamassu-machine /lamassu/lamassu-machine
RUN cd lamassu-machine && rm -rf node_modules && npm install && npm install && \
RUN cd lamassu-machine && rm -rf node_modules && npm install && \
npm install @joepie91/v4l2camera@1.0.5 && \
mv node_modules/@joepie91/v4l2camera node_modules/ && \
rmdir node_modules/@joepie91 && \
cp ./hardware/codebase/upboard/sintra/device_config.json ./ && \
bash ./deploy/codebase/build.sh upboard-sintra --copy-device-config

FROM upboard as upboard-tejo-build
COPY --from=upboard-gaia-build /lamassu/lamassu-machine /lamassu/lamassu-machine
RUN cd lamassu-machine && rm -rf node_modules && npm install && npm install && \
COPY --from=upboard-sintra-build /lamassu/lamassu-machine /lamassu/lamassu-machine
RUN cd lamassu-machine && rm -rf node_modules && npm install && \
npm install @joepie91/v4l2camera@1.0.5 && \
mv node_modules/@joepie91/v4l2camera node_modules/ && \
rmdir node_modules/@joepie91 && \
cp ./hardware/codebase/upboard/tejo/device_config.json ./ && \
bash ./deploy/codebase/build.sh upboard-tejo --copy-device-config

FROM ssuboard as ssuboard-build
COPY --from=upboard-sintra-build /lamassu/lamassu-machine /lamassu/lamassu-machine
COPY --from=upboard-tejo-build /lamassu/lamassu-machine /lamassu/lamassu-machine
RUN cd lamassu-machine && rm -rf node_modules && npm install && \
cp ./hardware/codebase/ssuboard/device_config.json ./ && \
bash ./deploy/codebase/build.sh ssuboard --copy-device-config
Expand Down

0 comments on commit 04bc5f2

Please sign in to comment.