yasaiwu
By:
yasaiwu

is it possible to replicate a DO distribution locally?

October 24, 2014 1k views

It seems DO distributions are fairly different from the official ones. That together with the impossibility of downloading images or backups means it's very challenging to configure identical local (testing) and remote (production) server environments.

what would be the best way to ensure your local and remote servers are as similar as possible?

are there downloadable images or configuration scripts to go from say, a stock Ubuntu 14.04x64 to a DO Ubuntu?

I know being able to download and upload images is a planned feature, but what can we do in the meantime?

Thanks! :)

1 comment
  • While it is not possible to download an image the stock OS images are not highly customized. If you want to replicate the exact selection of packages installed by default you can do so by grabbing a list of the installed packages on your droplet:

    dpkg --get-selections | grep -v deinstall > ~/packages
    

    and then ensuring those packages are installed on your local computer

    cat ~/packages | sudo dpkg --set-selections && sudo apt-get dselect-upgrade
    
1 Answer

This question was answered by @ryanpq:

While it is not possible to download an image the stock OS images are not highly customized. If you want to replicate the exact selection of packages installed by default you can do so by grabbing a list of the installed packages on your droplet:

dpkg --get-selections | grep -v deinstall > ~/packages

and then ensuring those packages are installed on your local computer

cat ~/packages | sudo dpkg --set-selections && sudo apt-get dselect-upgrade

View the original comment

Have another answer? Share your knowledge.