Teacher's Manual
  • Introduction
  • Answering Questions on Piazza
  • Notable questions
  • Chesterton's Fence
  • Docker Essentials
  • Notes on curriculum design
  • Notes on presenting
  • Pair Teaching
  • Eliciting Questions During Class
  • Office Hours
  • Open Office Hours
  • How To Write Tests
  • Beginner-friendly Code Style Guide
  • rails grade
  • Audit Requests
  • Setting Up Canvas
  • Setting Up GitHub
  • Preparing for Day 1
  • Syllabus
  • How To Create A Project
  • How To Setup an LTI Assignment
  • LTI Tools
    • Grades
  • Possible Format For Lecture Notes
  • Configuring Cloud9
  • Projects Checklist
    • AD1 HW Checklist
    • AD1 Gitpod Extensions and Settings
    • AD2 HW Checklist
    • Adding Dependencies to a Project
    • Adding Specs to a README
    • Updating Gitpod Docker Image
    • Updating Old Projects Checklist
  • Integrating GitHub with Slack
  • Mastering Git
  • Class Recordings
  • How to update Youcanbook.me
  • Swag
Powered by GitBook
On this page
  • Updating Gitpod Docker image
  • Pull Image from Docker Hub
  • Run Image Interactively
  • Add Your Change To The The Image
  • Commit The Change
  • Push to Docker Hub
  • Creating a Docker Image for Gitpod
  • Start From Template Docker
  • Run Image Interactively
  • Tag and Commit
  • Build
  1. Projects Checklist

Updating Gitpod Docker Image

Updating Gitpod Docker image

Pull Image from Docker Hub

docker pull <image-name>

See available Docker Images

docker images

See running containers

docker ps

Run Image Interactively

docker run -it <image-name>

Add Your Change To The The Image

This could be a bundle update, or installing a CLI tool.

Once you make the change DON'T EXIT THE IMAGE YET.

The changes only save if you commit them.

Grab the Container ID and then exit.

Commit The Change

Open a new Terminal and find the container id for the image you made the change in.

commit

docker commit CONTAINER_ID <image-name>

Example

docker commit 71HN7K1GCDd0183 jelaniwoods/appdev-ruby2_6_5

Push to Docker Hub

docker push <image-name>

Example

docker push jelaniwoods/appdev-ruby2_6_5

Creating a Docker Image for Gitpod

Start From Template Docker

https://github.com/firstdraft/appdev_template/blob/master/files/Dockerfile

Run Image Interactively

docker run -it <image-name>

Tag and Commit

tag

docker tag username/app-name username/app-name:v1

commit

docker commit -m "message" CONTAINER_ID

Build

In the directory conatining the Dockefile

docker build -t <image-name> .

If the Dockerfile is named something else:

docker build -t <image-name> . -f <path-to-file-name>
PreviousAdding Specs to a READMENextUpdating Old Projects Checklist

Last updated 2 years ago