Skip to content

liangwp/sdl2-basic-docker-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL2 Basic Docker Setup

Build sdl2 program in docker image with cmake, run locally in arch-based os.

Quick Start

  • Compile stuff in the docker container:

    docker compose up --build
    
    • This creates a build-dir directory, runs cmake to configure the build, then runs make to perform the build.
    • The compiled file will be in ./build-dir/SDL2Test
  • Run the compiled program locally:

    ./build-dir/SDL2Test
    
  • Enter the container to do stuff

    docker compose run compiler bash
    
  • Clean up build-dir and build artifacts:

    sudo rm -rf build-dir
    
  • Clean up docker container and network:

    docker compose down
    

References for Setup

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published