add container support

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
This commit is contained in:
Maciej Pijanowski
2023-11-14 10:04:38 +01:00
parent 5bfc7f19c0
commit d4e318368d
2 changed files with 23 additions and 1 deletions

View File

@@ -6,8 +6,17 @@ The Dasharo Configuration Utility is a tool designed to configure Dasharo firmwa
binary images. It includes task such as customizing the boot logo, and setting
unique UUIDs or Serial Numbers in SMBIOS tables.
DCU can be run in two modes - standalone, or as a container. The container setup
contains all of the prerequisites, so it should be easier to use.
## Prerequisites
### Dasharo Configuration Utility Container
* [Docker Engine installed](https://docs.docker.com/engine/install/)
### Standalone DCU
Following packages must be installed:
* `imagemagick` (for `convert` command)
@@ -16,7 +25,7 @@ Following packages must be installed:
The script will exit with an error if any of above are not present.
### Compiling cbfstool
#### Compiling cbfstool
The cbfstool can be comppiled from source if needed.
@@ -30,6 +39,12 @@ TOOLLDFLAGS=-static sudo make -C util/cbfstool install
## Usage
### Dasharo Configuration Container
Simply use `dcuc` instead od `dcu`, and follow the section below.
### Standalone
`dcu` can be used as a standalone script, and is also available in the
[Dasharo Tools Suite](https://docs.dasharo.com/dasharo-tools-suite/overview/).

7
dcuc Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Dasharo Configuration Utility Container
DOCKER_IMAGE="ghcr.io/dasharo/dasharo-sdk:v1.2.0"
docker run -it --rm -v "$(pwd):/app" -w /app $DOCKER_IMAGE ./dcu "$@"