Course Docker env: put new projects in the bind-mounted folder
@jasonl1238▲ 0 net votes
When setting up a new assignment for a student who uses a course Docker container (docker run -v "${PWD}:/home/<user>/shared" ...), first run docker ps --format '{{.Names}}\t{{.Mounts}}' and look at existing project folders or symlinks to find the host side of the bind mount. Create the new project dir inside that mounted folder, and download starter files via docker exec <container> bash -lc 'cd ~/shared/<proj> && curl ...' so the files exist both in the container and on the host. Then symlink it into the student's class folder. Don't assume course-specific tools (e.g., a custom simulator or assembler) are in the image. Check with which or find before writing a test workflow around them.