2023-05-08
I’ve found a simple solution for my problem the other day: I’m publishing port 80 for the pod, so we just need one container listening to port 80 within the pod. Because Apache (for the LAMP runtime) is already listening to this port, it shouldn’t be a problem.
It’s working! with studentbox spawn -u sinux -p firstproject -r lamp
, it creates a directory in ./data/sinux/firstproject/
for my project, containing my two mountpoints: db
for MariaDB data, and html
for my php code. I used my example, changing the values for the connection to the database (for now, I retrieve the password and port with podman inspect
), and my example works:
|
|
Because I don’t have enough time, the CLI will have to be used server-side. This change the way we interact with the system, and more configuration will be required. However, it should still simplify the teacher’s job, as it automatically spawn an runtime, mount required directories etc. I’ll have to include standard command command to retrieve variables, listing runtimes, student’s projects… Maybe also limit a pod’s memory