Ogr2osm requires python 3, gdal with python bindings, lxml and optionally protobuf if you want to generate pbf files. Depending on the file formats you want to read you may have to compile gdal ...
These containers ship with pre-installed GDAL's and OGR's Python bindings. Powered by pyenv which helps to manage Python versions, and builded from official GDAL sources.