I currently develop on OSX and a Chromebook with Ubuntu 14.04 installed. I’m currently using a Cloud IDE (Codio) so that my development environment stays the same on both machines but I feel like I could replicate that using Digital Ocean and Docker.
Essentially, I want to create a couple of base development environments (Rails/Postgres and Node/Express/Angular/Mongo being the two big ones). Every time I start a new project I want to be able to start in a “fresh” environment. Of course, I want all of this to exist on one Digital Ocean droplet.
Is it possible? If so, how would I go about doing it.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This is certainly something that you could do with Docker. If you aren’t particularly experienced with Docker, I’d suggest following through their tutorials: <br> <br>https://www.docker.io/gettingstarted/ <br> <br>After the introduction tutorial, learn about Dockerfiles, they are basically the templates used to create your containers: <br> <br>https://www.docker.io/learn/dockerfile/ <br> <br>Just to give you a taste, an extremely basic Dockerfile to install Rails might look like: <br> <br><pre> <br># Set the base image to use to Ubuntu <br>FROM ubuntu <br> <br># Update the repository <br>RUN apt-get update <br> <br># Install stuff <br>RUN DEBIAN_FRONTEND=noninteractive apt-get -qy install postgresql curl <br>RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq ruby rails <br></pre> <br> <br>You then build it with: <br> <br><pre> <br>sudo docker build -t rails - < Dockerfile <br></pre>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.