Designed to automate and unify docker image setup for my CS 3505 class at the University of Utah. Scripts are designed for both MacOS,Windows, and Linux enviroments. The scripts will automatically create the nessesary file structure needed for a persistent volumn that docker can then use for saving of course work. The script will automatically create the Dockerfile with all nessesary packages needed for the development enviroment; including, make, gcc, gdb, git, vim or nano, and bash-completion.
- WSL Note: WSL is only needed for Windows and is installed with the setup.ps1 script, however you will need to have cpu virtualization turned on in your BIOS settings for it to work.
- Docker Desktop
- VScode
- Remote-Containers Note: Remote-Containers can also be installed from within VScode's extensions tab.
Note: If on Windows please make sure you have cpu virtualization turned on in the bios and then proceed with these steps
- Install VScode, Remote-Containers, and Docker Desktop
- In powershell run
.\setup.ps1
- VScode should have already started up for you, press F1 and type in
Remote-Containers: Open Configuration File...
- Select
From 'Dockerfile'
Note: if a popup comes up in VScode about reopening the devcontainer file click Reopen to start working inside the docker container.
- Install VScode, Remote-Containers, and Docker Desktop
- In a terminal make the
setup.sh
and executable by runningchmod +x setup.sh
- Next run
./setup.sh
- VScode should have already started up for you, press F1 and type in
Remote-Containers: Open Configuration File...
- Select
From 'Dockerfile'
Note: if a popup comes up in VScode about reopening the devcontainer file click Reopen to start working inside the docker container.
- Install, VScode, Remote-Containers, and Docker Desktop *(if nessesary)
- In a terminal make the
setup.sh
and executable by runningchmod +x setup.sh
- Next run
./setup.sh
- VScode should have already started up for you, press F1 and type in
Remote-Containers: Open Configuration File...
- Select
From 'Dockerfile'
Note: if a popup comes up in VScode about reopening the devcontainer file click Reopen to start working inside the docker container.
Note: DO NOT MODIFY the Dockerfile or the .devcontainer folder and its contents.
Note: To verify that you are indeed devloping inside the docker-container open a terminal window in VScode and you should see a root@"some-number"
Note: An assignments folder should have been created on your computer under your Documents\DockerImages\assignments
you will want to open the assignments file in VScode
- Once the assignments folder has been opened in VScode, run
Remote-Containers: Open Configuration File...
and selectFrom 'Dockerfile'
like in the previous section. - Verify that you are using the docker-container by opening a terminal window and verify that you see
root@"some-number"
- Create any files and or folders you want to save inside the docker container and all of the files and folders should now be persistent as long as they are in the assignments folder.