Template:DEBIAN DOCKER INTEGRATION: Difference between revisions

From Variscite Wiki
(Initial)
 
(Move the note about Debian Bookworm with NXP BXP L6.1.36_2.1.0)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->= Debian Integration =
-->= Debian Integration =
Before you begin, get familiar with the {{Varlink2|Debian Build Release|{{#var:RELEASE_LINK}}}} and {{Varlink2|Adding Debian packages|{{#var:RELEASE_LINK}}}} guide.<br>
{{Note|'''Notes:'''
 
Beginning from Debian Bookworm with NXP BSP L6.1.36_2.1.0, Docker comes pre-installed on the image.
Depending on your starting point or needs, you can integrate Docker at runtime or compile time, as shown below:
|info}}
 
You can install Docker on the target by running the following commands:
* '''Add required packages at runtime'''<br>
 
Login to the machine as root user and run the commands:
  root@{{#var:MACHINE_NAME}}:~# apt-get update && apt-get -y upgrade
  root@{{#var:MACHINE_NAME}}:~# apt-get update && apt-get -y upgrade
  root@{{#var:MACHINE_NAME}}:~# apt-get -y install docker.io docker-compose
  root@{{#var:MACHINE_NAME}}:~# apt-get -y install docker.io docker-compose


* '''Add required packages at compile time'''<br>
If you want to learn how to add the packages at compile time, please refer to {{Varlink2|Adding Debian packages|{{#var:RELEASE_LINK}}}}.<!--
 
Use the variable 'G_USER_PACKAGES' in the build script to add further packages to your image
 
For example:
#### user rootfs packages ####
readonly G_USER_PACKAGES=" \
docker.io \
docker-compose \
"
''File: {{#var:BUILD_FOLDER}}/var_make_debian.sh''
 
and build the image, according to the {{Varlink2|Debian Build Release|{{#var:RELEASE_LINK}}}} guide.<!--


-->{{Note|'''Note:'''
-->{{Note|'''Notes:'''
Starting from a Recovery SD card image, the default rootfs partition may need to be increased in size, avoiding disk space issues using Docker.<br>
* Starting from a Recovery SD card image, the default rootfs partition may need to be increased in size, avoiding disk space issues using Docker.<br>Please refer to {{Varlink|Debian Build Release Stage#SD_card_structure|{{#var:RELEASE_LINK}}|SD card structure|}} for more information.<br>
Please refer to {{Varlink|Debian Build Release Stage#SD_card_structure|{{#var:RELEASE_LINK}}|SD card structure|}} for more information.<br>
* For SOMs with NAND and eMMC on-SOM storage, it's recommended to use the eMMC as rootfs location to ensure having sufficient disk space
<br>
For SOMs with NAND and eMMC on-SOM storage, it's recommended to use the eMMC as rootfs location to ensure having sufficient disk space.
|info}}
|info}}
</includeonly>
</includeonly>

Latest revision as of 22:32, 22 May 2024