Compare commits
No commits in common. "5792496ab2ca0738b971fe37ff689efa7daef556" and "a60a1784f79c9285b816c7b3ff51995fe77285bc" have entirely different histories.
5792496ab2
...
a60a1784f7
15
copier.yml
15
copier.yml
@ -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" }}
|
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:
|
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
|
type: str
|
||||||
help: |
|
help: It's important to have a good health check. This health check just sees if we can talk to the ROS master
|
||||||
Set a health check.
|
|
||||||
This stub health check just sees if we can talk to the ROS master
|
|
||||||
|
@ -14,9 +14,7 @@ WORKDIR /root/catkin_ws/src
|
|||||||
COPY ./ {{PACKAGE_NAME}}
|
COPY ./ {{PACKAGE_NAME}}
|
||||||
|
|
||||||
RUN apt-get clean
|
RUN apt-get clean
|
||||||
|
HEALTHCHECK {{HEALTHCHECK}}
|
||||||
#Don't forget to set a healthcheck for your container!
|
|
||||||
{{HEALTHCHECK}}
|
|
||||||
|
|
||||||
# Command to run your application
|
# Command to run your application
|
||||||
CMD {{RUN_COMMAND}} --wait --screen
|
CMD {{RUN_COMMAND}} --wait --screen
|
||||||
|
@ -19,15 +19,6 @@ services:
|
|||||||
nofile:
|
nofile:
|
||||||
soft: 1024
|
soft: 1024
|
||||||
hard: 524288
|
hard: 524288
|
||||||
{% if ENABLE_NVIDIA_GPU %}
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
reservations:
|
|
||||||
devices:
|
|
||||||
- driver: cdi
|
|
||||||
device_ids:
|
|
||||||
- nvidia.com/gpu=all
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
sdk:
|
sdk:
|
||||||
|
Loading…
Reference in New Issue
Block a user