At the Tridion Developer Summit in September Siawash Shibana and Albert Romkes gave a presentation of a DD4T .NET application running under vNext (The codename for the next .NET framework) on Linux.
Siawash and Albert made the application available publicy and although it currently uses mock SDL Web 8 provider objects plugging this into a real life content delivery service should be really simple when SDL Web 8 is released this month.
The cool thing about the whole DD4T on vNext/Linux concept is that the whole application can be deployed from a single docker command. This combined with SDL’s move towards open sourcing the content delivery services in SDL Web 8 and making them available through nuget should make automated deployments like this much simpler. It’s another step forwards in improving the speed of Tridion development and making continuous integration simpler and should also help to simplify automated deployment of Tridion web apps on cloud based infrastructure like AWS.
Now, down to business. To get this sample application running yourself is super simple and requires just an installation of Vagrant and a couple of terminal commands. So here we go:
- If you don’t already have it, download and install Vagrant.
- Create a new folder somewhere on your computer and place this Vagrantfile inside it.
- Open a command prompt or terminal and cd to the folder you just created.
- Run the following commands
sudo docker build -t "dd4t" https://raw.githubusercontent.com/sshibani/dd4t-vnext/master/Dockerfile
sudo docker run -p 5000:5000 dd4t
- Open a web browser on your computer and browse to http://localhost:5000/ and all being well you’ll have your beautiful DD4T .NET web application running on your Linux VM.
Now go ahead and clone the Git repo and build something.