Skip to content

Add building and container recipes#26

Closed
aaronsch0 wants to merge 1 commit intoSimulation-Software-Engineering:mainfrom
aaronsch0:main
Closed

Add building and container recipes#26
aaronsch0 wants to merge 1 commit intoSimulation-Software-Engineering:mainfrom
aaronsch0:main

Conversation

@aaronsch0
Copy link
Copy Markdown

My GitLab name is schoenan

Note for building on macOS:

On my macOS (ARM) system, I build the Docker image using:

docker build --platform=linux/amd64 -t cmake-exercise .

I think on a standard x86 Linux system ,
docker build -t cmake-exercise .
would be sufficient.

After building the image, run the container using:

docker run -it cmake-exercise
And build the program using:

./build_and_run.sh

Copy link
Copy Markdown

@MakisH MakisH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good here and works, thanks!

Comment thread CMakeLists.txt
yaml-cpp
)

DEAL_II_SETUP_TARGET(${PROJECT_NAME})
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, in CMake, lowercase and uppercase are equivalent.

Comment thread build_and_run.sh
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, inside the container, this script was not marked as executable.

Comment thread build_and_run.sh
@@ -1,7 +1,11 @@
#!/usr/bin/env bash
#!/bin/bash
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The #!/usr/bin/env bash is actually the good practice.

@MakisH MakisH closed this Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants