Skip to content

Repo with scripts and docker files for different types of builds

License

Notifications You must be signed in to change notification settings

under-view/docker-builds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-builds

Repo with scripts and docker files for different types of builds. This repo will take another approach by not writing wrapper scripts around docker commands.

  1. Dependencies
  2. Building Docker Images
    1. Underview Devel Ubuntu 22.04
    2. Underview Devel Ubuntu 24.04
    3. Yocto Project Devel Ubuntu 22.04
    4. Yocto Project Devel Ubuntu 24.04
  3. Saving Docker Images
  4. Loading Docker Image
  5. Running Docker Image

Dependencies

Follow one of the docker install instructions.

Building Docker Images

Underview Devel Ubuntu 22.04

$ docker build --no-cache \
               --tag "myimage:latest" \
               --build-arg "HOST_UID=$(id -u)" \
               --build-arg "HOST_GID=$(id -g)" \
               $(pwd)/containers/underview-devel/ubuntu-22.04

Underview Devel Ubuntu 24.04

$ docker build --no-cache \
               --tag "myimage:latest" \
               --build-arg "HOST_UID=$(id -u)" \
               --build-arg "HOST_GID=$(id -g)" \
               $(pwd)/containers/underview-devel/ubuntu-24.04

Yocto Project Devel Ubuntu 22.04

$ docker build --no-cache \
               --tag "myimage:latest" \
               --build-arg "HOST_UID=$(id -u)" \
               --build-arg "HOST_GID=$(id -g)" \
               $(pwd)/containers/yocto-project/ubuntu-22.04

Yocto Project Devel Ubuntu 24.04

$ docker build --no-cache \
               --tag "myimage:latest" \
               --build-arg "HOST_UID=$(id -u)" \
               --build-arg "HOST_GID=$(id -g)" \
               $(pwd)/containers/yocto-project/ubuntu-24.04

Saving Docker Images

$ mkdir -p $(pwd)/docker-images
$ docker image save -o $(pwd)/docker-images/myimage.tar.xz

Loading Docker Image

$ docker image load -i myimage.tar.xz

Running Docker Image

$ export DOCKER_IMAGE_NAME="myimage:latest"
$ export WORKSPACE="${HOME}/workspace"
$ mkdir -p $WORKSPACE
$ docker compose -f $(pwd)/composes/default-compose.yaml run --rm development

About

Repo with scripts and docker files for different types of builds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published