Skip to content

gvatsal60/clg-lib-mgmt

Repository files navigation

TODO

License GitHub Actions Workflow Status Quality Gate Status Maintenance GitHub pull-requests GitHub issues GitHub forks GitHub stars

CppDockerMakeTemplate

This repository serves as a template for setting up a development environment to run C++ code inside Docker containers using Makefiles. Whether you're working on a personal project or a team-based endeavor, this template streamlines the process of containerizing your C++ applications, making them portable and easy to manage across different environments.

Prerequisites

Before getting started, ensure that you have the following prerequisites installed on your system:

  • Docker: Install Docker according to the instructions for your operating system from Docker's official website.
  • Git: Install Git if you haven't already from Git's official website.
  • Make:
    • Linux: If you're on a Linux system, Make might already be installed. If not, you can install it using your package manager. For example, on Ubuntu, you can install Make with the following command:
      sudo apt-get install make
      
    • Windows: For Windows users, Make is not typically installed by default. You can install it using MinGW, which provides a Unix-like environment on Windows along with a collection of GNU utilities. Follow these steps to install Make on Windows using MinGW:
      1. Download and install MinGW from MinGW's official website.
      2. During installation, make sure to select the option to install the "MSYS Basic System" component, which includes Make.
      3. After installation, add the MinGW bin directory to your system's PATH environment variable. This is typically C:\MinGW\bin.

Getting Started

Follow these steps to get started with CppDockerMakeTemplate:

  1. Clone the Repository:

    git clone https://github.com/yourusername/CppDockerMakeTemplate.git
    cd CppDockerMakeTemplate
    
  2. Build the Docker Image:

    make build-image
    
  3. Inside the Docker Container: Once inside the Docker container, you'll find yourself in the $PROJECT_NAME directory, where the project is set up.

  4. Build the Project:

    make docker-build
    
  5. Run the Executable:

    make docker-run
    
  6. Test the Project:

    make docker-test
    
  7. Clean the Project:

    make docker-clean
    

Customization

You can customize this template according to your project's needs. Here are some areas you might want to modify:

  • Makefile: Adjust Make configuration, add or remove source files, libraries, or dependencies as needed.
  • Dockerfile: Modify Dockerfile to include additional packages or tools required for your project.
  • Source Files: Add your source files under the src directory.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

Acknowledgments

Thank you for using the CppDockerMakeTemplate. Happy coding!

About

Encompasses a suite of tools and functionalities designed to streamline the management of library resources within academic institutions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published