Sign in

Problem

Solution


Problem

Solution


Problem


Source Code Answer “What” and “How”

  • Diving a bit deeper in to self-documenting source code, the class, variable, and method/function names answer what the code is doing. The actual code inside the class and method/function answers how the code is doing what its name suggests.
  • Analogously, I use class, file and function/method names like chapter titles. The main function is like a table of contents with these chapter titles. …

Problem

Solution

  • it can be faster, repeatable, and automatic
  • it saves you from installing the database directly on your host machine
  • it allows you to have multiple different versions of the database, in case each of your projects require you to use different versions
  1. configure docker-compose to use the postgresql container
  2. log in to the postgresql container
  3. create a table


Problem

Solution

Front Matter

  1. Bootstraps the application
  2. Starts up the application
  3. Listens for your browser request
  4. Fetches a List of Greetings
  5. Creates a New Greeting
  6. Updates a Greeting
  7. Deletes a Greeting
  8. Seeds the initial data
  9. Runs a task to administer the application
  10. Tests the application
  11. Documents the Greetings Resource
  12. Lints the application


Problem

Solution

  1. Set up a Python environment inside a container
  2. Use the Django library to scaffold a new project
  3. Bring Up the Vanilla Application
  4. Create the application’s first resource
Application Screenshot


Problem

Solution

Downloading Images

Running Images

Building Images

Working with Files and Containers

Working with Networked Services and Containers

Working with Docker-Compose Run vs Up vs Exec

Notes


cc:https://www.flickr.com/photos/appleboy/22947137613

Problem

Solution

  1. declare which Docker image we want to download in a docker-compose.yml file
  2. download the Docker image using docker-compose.yml
Docker-Compose Pull

Front Matter


Problem

Solution

  1. reuse our existing docker-compose.yml file in conjunction with docker-compose up command
  2. modify the docker-compose.yml so that we can reach the service running inside the container from our host
Docker-Compose Up

Front Matter

Zhao Li

“In case it helps others…” Please suggest technologies for future tutorial articles at https://gitlab.com/zhao-li/tutorial-articles

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store