Headless rendering on server farm (Ubuntu Linux)

I’m developing an application that needs to basically render visualizations to disk. The application will run on a server farm in an nvidia-docker image that has all the GPU drivers and OpenGL installed in an image based on Ubuntu 18.04. However, it has no display nor a window manager running.

Does anyone know if it’s possible to set up an OpenGL context in this setting using SDL? My assumption is that one would need an EGL context, which I’ve never tried to set up. Does anyone have pointers to any code that sets up such a context?

Additionally, will SDL_GL_GetProcAddress(const char* proc) work for getting pointers to GL functions if the current session is an EGL session?