Use Containers

Use Containers

Let us go with a devops-first approach:

Our smallest experiments, no matter how trivial, will be closest to production best practices!

Note: Even without the video, you can learn all the crucial details from the steps that are documented below

  1. Login to your cloud-box over ssh.

    • Create it if you haven't done so already.

    • This will be a robust environment for learning.

  2. To start with a clean environment, run:

  3. Setup your IDE to work with the remote directory on the cloud-box.

    1. Create New Project named loopback-zero-to-hero

    2. For Deployment Path use /root/workspace/loopback-zero-to-hero

  4. In your IDE, create a Dockerfile with the following content:

  5. Create a docker-compose.yml file to install and run a reasonably up to date version of NodeJS:

  6. Start the service: docker-compose up and after it finishes running, you should see something like the following at the very end:

Last updated