git-afsantos / haros

H(igh) A(ssurance) ROS - Static analysis of ROS application code.
MIT License
190 stars 37 forks source link

Docker configuration #60

Closed erogleva closed 5 years ago

erogleva commented 5 years ago

I have continued @ipa-nhg's work from #54

git-afsantos commented 5 years ago

Thanks for the contribution, @erogleva! If I understand correctly, this pull request completely replaces #54, right? Is it finished, or are you still working on something?

@erogleva wrote:

I see two options to add the index.yaml file before running the container:

I agree with your assessment, and I see that you opted for mounting the file, which seems to be the most flexible option.

erogleva commented 5 years ago

Is it finished, or are you still working on something?

I have added two more small changes (clang-3.8 as a dependency (I am not entirely sure if it is needed but I had some problems without it) and I've also added the EXPOSE instruction to the image to indicate which port is intended for publishing. But now it is finished :)

If I understand correctly, this pull request completely replaces #54, right?

Yes, it was intended like that

git-afsantos commented 5 years ago

clang-3.8 as a dependency (I am not entirely sure if it is needed but I had some problems without it)

What kind of problems, can you elaborate? clang is just the frontend to the compiler, a standalone program that you can call on the terminal. libclang is what does the actual job for HAROS.

If the Docker container is intended to compile the workspace (e.g. catkin_make), then adding clang to the dependencies is a nice touch, though.

But now it is finished :)

The PR seems good overall, so I am going to merge it and close the other one. :+1:

erogleva commented 5 years ago

What kind of problems, can you elaborate? clang is just the frontend to the compiler, a standalone program that you can call on the terminal. libclang is what does the actual job for HAROS.

If the Docker container is intended to compile the workspace (e.g. catkin_make), then adding clang to the dependencies is a nice touch, though.

Ah yes, this was indeed the problem (only the compilation, nothing with HAROS). But yes, if I understand it correctly, the Docker container is also intended to compile the workspace (it currently also calls catkin_make in the haros_call.sh

git-afsantos commented 5 years ago

Alright, makes sense. :+1: