You could do the similar things with other compilers as well. add_application_docker_image]$ docker run -v $(pwd):/mnt -it rsmmr/clang /mnt/a.out If you want to execute that binary inside the container, you can do this as well. Then, launched the rsmmr/clang container by passing my local directory to the container plus running the compilation command like this: add_application_docker_image]$ docker run -v $(pwd):/mnt -it rsmmr/clang /opt/llvm/bin/clang++ -std=c++11 -stdlib=libc++ /mnt/ -o add_application_docker_image]$Īfter this, the a.out will be in your local directory (as it was mounted to the container). To demonstrate this, I created a myself and it looked like this: add_application_docker_image]$ cat ![]() ![]() One of the simple way to solve this is my mounting your source/binary testapp to the clang image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |