Template:DEBIAN DOCKER INTEGRATION: Difference between revisions

From Variscite Wiki
(Initial)
 
(Make use of the guide 'Adding Debian packages')
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>
You can install Docker on the target by running the following commands:
 
Depending on your starting point or needs, you can integrate Docker at runtime or compile time, as shown below:
 
* '''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|'''Note:'''

Revision as of 19:42, 23 April 2023