Welcome to this demonstration of Red Hat Developer Toolset Dockerfiles We’re going to be showing how you can create a RHEL 7 container running the latest RHEL C++ developer tools and then enable use of that environment from the Fedora environment So first of all a quick primer on Red Hat Developer Toolset it’s the latest stable C++ tools: gcc, eclipse, performance and debug tools It’s an extra set and doesn’t replace the existing RHEL tools you have They run on RHEL 6 and 7 as well as producing binaries that run on multiple major releases of RHEL and it’s available to most RHEL subscribers at no extra cost Developer Toolset 3.1 now includes Dockerfiles out of the box, so let’s take a look We can use Docker tooling plugins in Developer Toolset’s Eclipse IDE to create our container. This is running on RHEL 7 server with an active Red Hat subscription enabled. These Eclipse plugins are currently emerging from the Red Hat labs and they’ll be available later this year. We just need to complete a few steps to add them to the default Red Hat Developer Toolset 3.1 Eclipse and another few to open the appropriate views So now we connect to the running Docker server Ok, we seem to be connected there And now we can build a new RHEL 7 based Docker image with Developer Toolset tools layered on top We point at the Dockerfile that was supplied in Developer Toolset And there we go – now our containers are visible in the list of images Now we tag the image for upload to a private registry of Docker images We’re going to share this with co-workers There it is, it’s tagged. It’s simple to push to the server now. and that will make it available to others. or of course, we may just be using this ourself between two different machines That’s the upload complete. Now let’s move to our separate Fedora machine and pretend to be a co-worker and what we’re going to do is pull the image from the same private registry we were using on RHEL 7 which is just a simple server shared on the network Now we’ve downloaded that image, we’re ready to use it. Let’s check we can use the newer GCC in Red Hat Developer Toolset within the container Ok, now we’re in the container Let’s just check that. And it’s definitely RHEL 7 So now let’s enable Developer Toolset and check our gcc version So now we have our tools in a container we can share sources from the Fedora host to build within it. So here we’re mapping in our source directory from the host into /src We enable Developer Toolset from within the container shell All good – it’s time to build some code with the newer GCC Here’s our “hello world” source from the host. Let’s compile it with GCC Of course, the files generated will be stored back on the Fedora host And there we go. That was a quick demonstration of Dockerfiles for Developer Toolset For further information, please visit bit.ly/DevToolset or alternatively http://red.ht/1KlkTgT for specifics on DTS Dockerfiles And thanks for your interest in this video from Red Hat!