EarthSystemCoG / COG

COG source code
BSD 3-Clause "New" or "Revised" License
8 stars 16 forks source link

Enable local source directory when starting CoG as container #1389

Closed LucaCinquini closed 6 years ago

LucaCinquini commented 6 years ago

Who: Luca

For some reason, when the new Docker container is started with an overridden source volume such as:

the container won't start because of a "setup:_cog: command not found error"

LucaCinquini commented 6 years ago

The error is fixed if the entrypoint in setup.py is changed from: entry_points = { "distutils.commands": [ "setup_cog = cog.installation.setup:CogSetupCommand"] }, to: cmdclass={ 'setup_cog': CogSetupCommand },