Skip to content
Open
aa7401 opened this issue Oct 22, 2019 · 1 comment
Open

docker #4

aa7401 opened this issue Oct 22, 2019 · 1 comment
Projects

Comments

@aa7401
Copy link
Contributor

aa7401 commented Oct 22, 2019

We need a simple exercise covering Docker. Perhaps:

  1. Base this on the template-dynamic-website.
  2. Dockerise the project with a separate container for the sqlite database (should this be a different database?).
  3. Ensure container persistence for the database.
  4. Show how this can be deployed to a cloud service supporting Docker (suggestions welcome).
@aa7401 aa7401 changed the title Docker Lab Exercise docker Oct 22, 2019
@aa7401
Copy link
Contributor Author

aa7401 commented Oct 25, 2019

We should include using VS Code inside a container.

https://code.visualstudio.com/docs/remote/containers

Assume Windows users have followed the instructions in foundation setting up wsl and ubuntu so we are installing docker etc in an Ubuntu environment:

https://docs.docker.com/install/linux/docker-ce/ubuntu/

sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
 sudo add-apt-repository    "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io

Install the VS Code docker extension. This will provide a docker sidebar and syntax highlighting.

ngussed pushed a commit to ngussed/dynamic-websites that referenced this issue Nov 12, 2019
Removed Nested Callbacks because they appear in 06.
@aa7401 aa7401 added this to To do in Kanban Nov 13, 2019
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
Kanban
  
To do
Development

No branches or pull requests

1 participant