Skip to content

Commit

Permalink
Merge branch 'cluster-monitor' of github.com:bytebeamio/uplink into c…
Browse files Browse the repository at this point in the history
…luster-monitor
  • Loading branch information
de-sh committed Jul 21, 2023
2 parents a7531b5 + 8e3e8b8 commit 6bfb3cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ENV LANG=C.UTF-8
CMD ["/usr/bin/runsvdir", "/etc/runit"]
COPY runit/ /etc/runit
RUN rm -rf /etc/runit/runsvdir
RUN chmod +x /etc/runit/uplink/run

WORKDIR "/usr/share/bytebeam/uplink"

Expand Down Expand Up @@ -42,8 +43,11 @@ RUN cp target/release/uplink /usr/share/bytebeam/uplink/bin/
FROM base AS production

RUN mkdir -p /usr/share/bytebeam/uplink
RUN mkdir -p /usr/share/bytebeam/uplink/shared
#RUN mkdir -P /usr/share/bytebeam/uplink/bin
COPY --from=staging /usr/share/bytebeam/uplink/bin /usr/bin
COPY --from=staging /usr/share/bytebeam/uplink/paths /usr/share/bytebeam/uplink/paths
COPY --from=staging /usr/share/bytebeam/uplink/simulator.sh /usr/share/bytebeam/uplink
COPY --from=staging /usr/share/bytebeam/uplink/bin /usr/share/bytebeam/uplink
CMD cp /usr/share/bytebeam/uplink/uplink /usr/share/bytebeam/uplink/shared/uplink
#CMD uplink -a /usr/share/bytebeam/uplink/shared/device.json
#CMD cp /usr/share/bytebeam/uplink/uplink /usr/share/bytebeam/uplink/shared/uplink
5 changes: 5 additions & 0 deletions runit/uplink/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

cd /usr/share/bytebeam/uplink

exec uplink -a /usr/share/bytebeam/uplink/shared/device.json

0 comments on commit 6bfb3cb

Please sign in to comment.