Skip to content

Commit

Permalink
bluechi service dependency (#31)
Browse files Browse the repository at this point in the history
* bluechi service dependency

Signed-off-by: Leonardo Rossetti <[email protected]>

* fix bluechi dockerfile

Signed-off-by: Leonardo Rossetti <[email protected]>

---------

Signed-off-by: Leonardo Rossetti <[email protected]>
  • Loading branch information
odra authored Jul 30, 2024
1 parent 2ef2f3e commit b04ffb5
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 23 deletions.
12 changes: 4 additions & 8 deletions eclipse-bluechi/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,13 @@ ARG TARGETARCH

# Based on the target architecture, download the correct grpcurl binary
RUN if [ "$TARGETARCH" = "amd64" ]; then \
GRPCURL_URL="https://github.com/fullstorydev/grpcurl/releases/download/v1.8.7/grpcurl_1.8.7_linux_x86_64.tar.gz"; \
export GRPCURL_URL="https://github.com/fullstorydev/grpcurl/releases/download/v1.8.7/grpcurl_1.8.7_linux_x86_64.tar.gz"; \
elif [ "$TARGETARCH" = "arm64" ]; then \
GRPCURL_URL="https://github.com/fullstorydev/grpcurl/releases/download/v1.8.7/grpcurl_1.8.7_linux_arm64.tar.gz"; \
export GRPCURL_URL="https://github.com/fullstorydev/grpcurl/releases/download/v1.8.7/grpcurl_1.8.7_linux_arm64.tar.gz"; \
else \
echo "Unsupported architecture"; \
exit 1; \
fi; \
mkdir /usr/bin/grpcurl.d && \
curl -sSL ${GRPCURL_URL} | tar -xvz --directory /usr/bin/grpcurl.d && \
mkdir -p /usr/bin/grpcurl.d && \
curl -sSL "${GRPCURL_URL}" | tar -xvz --directory /usr/bin/grpcurl.d && \
ln /usr/bin/grpcurl.d/grpcurl /usr/bin/grpcurl

RUN mkdir /usr/bin/grpcurl.d && \
curl -sSL ${GRPCURL_URL} | tar -xvz --directory /usr/bin/grpcurl.d && \
ln /usr/bin/grpcurl.d/grpcurl /usr/bin/grpcurl
7 changes: 5 additions & 2 deletions eclipse-bluechi/workspace/workloads/agemo.kube
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
Yaml=agemo.yml

# Commented to disable the service to automatically start
# [Install]
# WantedBy=default.target
[Install]
WantedBy=default.target

[Unit]
Wants=chariott.service mosquitto.service
5 changes: 2 additions & 3 deletions eclipse-bluechi/workspace/workloads/chariott.kube
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@
[Kube]
Yaml=chariott.yml

# Commented to disable the service to automatically start
# [Install]
# WantedBy=default.target
[Install]
WantedBy=default.target
7 changes: 5 additions & 2 deletions eclipse-bluechi/workspace/workloads/freyja.kube
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
Yaml=freyja.yml

# Commented to disable the service to automatically start
# [Install]
# WantedBy=default.target
[Install]
WantedBy=default.target

[Unit]
Wants=chariott.service ibeji.service
7 changes: 5 additions & 2 deletions eclipse-bluechi/workspace/workloads/ibeji.kube
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
Yaml=ibeji.yml

# Commented to disable the service to automatically start
# [Install]
# WantedBy=default.target
[Install]
WantedBy=default.target

[Unit]
Wants=chariott.service agemo.service
4 changes: 2 additions & 2 deletions eclipse-bluechi/workspace/workloads/mosquitto.kube
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
Yaml=mosquitto.yml

# Commented to disable the service to automatically start
# [Install]
# WantedBy=default.target
[Install]
WantedBy=default.target
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ Yaml=smart_trailer_application.yml
# Commented to disable the service to automatically start
[Install]
WantedBy=default.target

[Unit]
Wants=ibeji.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
Yaml=trailer_connected_provider.yml

# Commented to disable the service to automatically start
# [Install]
# WantedBy=default.target
[Install]
WantedBy=default.target

[Unit]
Wants=ibeji.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
Yaml=trailer_properties_provider.yml

# Commented to disable the service to automatically start
# [Install]
# WantedBy=default.target
[Install]
WantedBy=default.target

[Unit]
Wants=ibeji.service

0 comments on commit b04ffb5

Please sign in to comment.