-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/pass recipe to docker #285
Feature/pass recipe to docker #285
Conversation
9d74276
to
3480a55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! We can update the documentation for triggering batch jobs once the gateway api is in place. If we want to rename variables like use_docker
, we can handle that in a cleanup pr before merging into main
from staging
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to build the image but could not run it on the on-site dgx machines due to docker being unable to access my home directory. However, the implementation looks good to me!
cellpack/autopack/__init__.py
Outdated
@@ -392,13 +392,13 @@ def read_text_file(filename, destination="", cache="collisionTrees", force=None) | |||
return sphere_data | |||
|
|||
|
|||
def load_file(filename, destination="", cache="geometries", force=None): | |||
def load_file(filename, destination="", cache="geometries", force=None, use_docker=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we make this argument name more generic? Seeing as this flag decides the database to use, maybe it could be renamed to skip_database_check
or something equivalent?
* retrieve job id * formatting * add a bucket for batch jobs * formatting * remove print statement and add comments
Problem
Cleaning up docker code so we are actually passing the recipe / config parameters specified in the commandline / as ENV variables into the docker container.
Link to story or ticket
Solution
pack
scriptdocker
for when we want to default to pointing to staging for firebase without prompting the user via commandline. To use, we can call thepack
script from the commandline with the-d
flag, i.e.pack -r my_recipe.json -c my_config.json -d
Type of change