Compare commits

..

No commits in common. "5792496ab2ca0738b971fe37ff689efa7daef556" and "a60a1784f79c9285b816c7b3ff51995fe77285bc" have entirely different histories.

3 changed files with 3 additions and 25 deletions

View File

@ -24,18 +24,7 @@ LANGUAGES:
RUN_COMMAND: rosrun {{ PACKAGE_NAME }} {{ "main.py" if 'Python' in LANGUAGES else "main" if "CPP" in LANGUAGES else "yourcommandGoes here" }}
ENABLE_NVIDIA_GPU:
default: False
type: bool
help: |
ENABLE_NVIDIA_GPU
Enabling nvidia gpus make deployment much more complicated.
Ensure you have the nvidia container toolkit installed and
working properly.
HEALTHCHECK:
defualt: HEALTHCHECK --start-period=60s --start-interval=1s CMD /ros_entrypoint.sh rostopic list
defualt: --start-period=60s --start-interval=1s CMD /ros_entrypoint.sh rostopic list
type: str
help: |
Set a health check.
This stub health check just sees if we can talk to the ROS master
help: It's important to have a good health check. This health check just sees if we can talk to the ROS master

View File

@ -14,9 +14,7 @@ WORKDIR /root/catkin_ws/src
COPY ./ {{PACKAGE_NAME}}
RUN apt-get clean
#Don't forget to set a healthcheck for your container!
{{HEALTHCHECK}}
HEALTHCHECK {{HEALTHCHECK}}
# Command to run your application
CMD {{RUN_COMMAND}} --wait --screen

View File

@ -19,15 +19,6 @@ services:
nofile:
soft: 1024
hard: 524288
{% if ENABLE_NVIDIA_GPU %}
deploy:
resources:
reservations:
devices:
- driver: cdi
device_ids:
- nvidia.com/gpu=all
{% endif %}
networks:
sdk: