Running a shell script as part of the image build process

Some participants are building parts of their solution (eg compiling C++ files) from their file.

While this works and is perfectly allowed, it is not optimal as this build step will take place during the evaluation, taking up precious time!

Instead, you can move these steps to a postBuild file. If you want this to be a shell script, make sure the first line is #!/bin/bash. It will be run as part of the image building process, after everything else. (The time spent building the image doesn’t count against the evaluation timeouts.)

See here for more details about the postBuild file:

And see here to read more general documentation about AIcrowd’s image building process: How to specify runtime environment for your submission

1 Like