Sign inSign up

hvbon2010/secure-boot-toolkit

By hvbon2010

Updated 6 months ago

This is included the docker setup environment for secure boot toolkit running.

Image
Security
0

1.2K

hvbon2010/secure-boot-toolkit repository overview

For a containerized environment with all dependencies pre-configured, you can use the secure-boot-toolkit Docker image.

Pull the Docker Image
docker pull hvbon2010/secure-boot-toolkit:latest
Build the Docker Container

Create a build script:

vim build_secure_boot_toolkit.sh

Add the following content:

#!/bin/bash

# Script name: build_secure_boot_toolkit.sh

# Name of container
DOCKER_NAME=secboot-toolkit_$USER

# Username of host PC
HOST_USER=$USER

# Docker username
DOCKER_USER=user

# gitconfig on Host machine
GIT_CONF=/home/$HOST_USER/.gitconfig
GIT_CRED=/home/$HOST_USER/.git-credentials

# SSH dir on Host machine
SSH_PATH=/home/$HOST_USER/.ssh

# Your workspace folder
WORK_SPACE=/home/$HOST_USER/workspace

# Build container
docker run --name $DOCKER_NAME -dit --privileged \
    -v /dev/bus/usb:/dev/bus/usb \
    -v /etc/localtime:/etc/localtime:ro  \
    -v $WORK_SPACE:/home/$DOCKER_USER/workspace \
    hvbon2010/secure-boot-toolkit:latest bash

Make the script executable and run it:

chmod +x build_secure_boot_toolkit.sh
./build_secure_boot_toolkit.sh
Execute the Docker Container

Once the container is built, access it with:

docker exec -it secboot-toolkit_$USER bash

Tag summary

Content type

Image

Digest

sha256:e13dfce89

Size

1.6 GB

Last updated

6 months ago

docker pull hvbon2010/secure-boot-toolkit