- Create GitHub Codespace of https://github.com/denoslab/dockerstepbystep
- Start the container on Codespace using
docker-compose_deploy.yml - Attach to the shell and type a command to demonstrate you are in the container, such as
pwd - Enable port forwarding and open the application in a browser
- Clone https://github.com/denoslab/toolbox and familiarize yourself with the project by reading the documentation.
- Switch to branch
ensf400_w25 - Create a branch off the
ensf400_w25branch - On your own branch, modify the project to create your personal desired development environment
- Select one modification you have implemented on your sub branch which you think could be useful to others and merge it to the
ensf400_w25branch (make sure that this change is documented!) - Send a pull request to the original project, on the
ensf400_w25branch
- Use Portainer to start your sub branch of the project in a container
- Tip: You will need to create a new docker-compose file which is appropriate for your local environment (consider where the volume is mounted on the local system and which image is being used) - there is a Portainer compose example to help you
- Tip: You will need set the repository URL and repository reference in Stacks
- Tip: Ensure “Re-pull image and redeploy” is disabled in the pop-up window when you hit “Pull and redeploy”
-
The dockerstepbystep application is running in the browser from Codespace
- TA: check that URL ends in app.github.dev
-
You made a pull request to the original project
- TA: check that there is an open pull request at https://github.com/denoslab/toolbox/pulls by a student in the group
-
You made your own branch on your fork
- TA: in cloned repository on student’s local machine, check structure with git show-branch
-
You are running your toolbox application using Portainer
- TA: view Portainer in browser, look at Stacks and ensure repository reference is to their branch (under GitOps > advanced configuration), scroll down and ensure container is running