opensafely-core / stata-docker

Builds the opensafely stata docker image.
0 stars 0 forks source link

fix: make stata image more interactive #19

Closed bloodearnest closed 1 year ago

bloodearnest commented 1 year ago

The stata image was not based on base-action, and did not use ACTION_EXEC to take advantage of the ability to run any executable in the image.

So, this meant its custom entrypoint wouldn't work well with opensafely exec if you just wanted to run stata interactively.

And whilst you could use --entrypoint /usr/bin/stata/stata, you'd a) have to know to do that and b) lose the STATA_LICENSE env var set up.

So, this fixes that by:

Along the way, I realised I'd accidentally regressed to using the non-mp version of stata a long time ago. This fixes that, and makes all stata be stata-mp. We avoid copying the non-mp binary into the image at all.