3sphinx.addnodesdocument)}( rawsourcechildren]docutils.nodessection)}(hhh](h title)}(hAWS\_ECR moduleh]h TextAWS_ECR module}(parenth _documenthsourceNlineNuba attributes}(ids]classes]names]dupnames]backrefs]utagnamehhh hhhXC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\docs\AWSModules\AWS_ECR.rsthKubhindex)}(hhh]h}(h!]h#]h%]h']h)]entries](pairmodule; AWS_ECRmodule-AWS_ECRhNtauh+h-hh hhhNhNubh.)}(hhh]h}(h!]h#]h%]h']h)]entries](single"containerize() (in module AWS_ECR)AWS_ECR.containerizehNtauh+h-hh hhhNhNubhdesc)}(hhh](hdesc_signature)}(h0containerize(region, files_to_process, n_jobs=1)h](h desc_addname)}(hAWS_ECR.h]hAWS_ECR.}(hhZhhhNhNubah}(h!]h#]( sig-prename descclassnameeh%]h']h)] xml:spacepreserveuh+hXhhThhhC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\AWSModules\AWS_ECR.py:docstring of AWS_ECR.containerizehKubh desc_name)}(h containerizeh]h containerize}(hhohhhNhNubah}(h!]h#](sig-namedescnameeh%]h']h)]hjhkuh+hmhhThhhhlhKubhdesc_parameterlist)}(h"region, files_to_process, n_jobs=1h](hdesc_parameter)}(hregionh]h desc_sig_name)}(hregionh]hregion}(hhhhhNhNubah}(h!]h#]nah%]h']h)]uh+hhhubah}(h!]h#]h%]h']h)]hjhkuh+hhhubh)}(hfiles_to_processh]h)}(hfiles_to_processh]hfiles_to_process}(hhhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhhubah}(h!]h#]h%]h']h)]hjhkuh+hhhubh)}(hn_jobs=1h](h)}(hn_jobsh]hn_jobs}(hhhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhhubhdesc_sig_operator)}(h=h]h=}(hhhhhNhNubah}(h!]h#]oah%]h']h)]uh+hhhubh inline)}(h1h]h1}(hhhhhNhNubah}(h!]h#] default_valueah%]h']h)]support_smartquotesuh+hhhubeh}(h!]h#]h%]h']h)]hjhkuh+hhhubeh}(h!]h#]h%]h']h)]hjhkuh+hhhThhhhlhKubeh}(h!]hKah#](sig sig-objecteh%]h']h)]moduleAWS_ECRclasshfullnamehq _toc_partsjhq _toc_namecontainerize()uh+hRhhlhKhhOhhubh desc_content)}(hhh](h paragraph)}(hXFunction enables parallel containerization of several docker files and will push to ECR when completed. If the ECR container repo does not exist, TwinModules will attempt to create. Note this assumes users have proper IAM access and will auto login into ECR for tagging and pushing.h]hXFunction enables parallel containerization of several docker files and will push to ECR when completed. If the ECR container repo does not exist, TwinModules will attempt to create. Note this assumes users have proper IAM access and will auto login into ECR for tagging and pushing.}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\AWSModules\AWS_ECR.py:docstring of AWS_ECR.containerizehKhj hhubj)}(heThis function call can also be called from the CLI for quick building and pushing of containers. E.g.h]heThis function call can also be called from the CLI for quick building and pushing of containers. E.g.}(hj!hhhNhNubah}(h!]h#]h%]h']h)]uh+jhj hKhj hhubh literal_block)}(hDpython tfcli.py -bp --region us-east-1 -d ./mydockerfile -t mydockerh]hDpython tfcli.py -bp --region us-east-1 -d ./mydockerfile -t mydocker}hj1sbah}(h!]h#]h%]h']h)]hjhkforcelanguagebashhighlight_args}uh+j/hj hK hj hhubj)}(hHere an ECR repo will be looked for or created in the us-east-1 region, the mydockerfile will be used to create the container and the tag my docker will be used for naming the container and the ECR repo.h]hHere an ECR repo will be looked for or created in the us-east-1 region, the mydockerfile will be used to create the container and the tag my docker will be used for naming the container and the ECR repo.}(hjDhhhNhNubah}(h!]h#]h%]h']h)]uh+jhj hK hj hhubh field_list)}(hhh](h field)}(hhh](h field_name)}(h Return typeh]h Return type}(hj^hhhNhNubah}(h!]h#]h%]h']h)]uh+j\hjYhhlhKubh field_body)}(hhh]j)}(hNoneh]h pending_xref)}(h:py:obj:`None`h]h literal)}(hjyh]hNone}(hj}hhhNhNubah}(h!]h#](xrefpypy-objeh%]h']h)]uh+j{hjwubah}(h!]h#]h%]h']h)]refdocAWSModules/AWS_ECR refdomainjreftypeobj refexplicitrefwarn py:modulejpy:classN reftargetNoneuh+juhj hKhjqhhubah}(h!]h#]h%]h']h)]uh+jhjnubah}(h!]h#]h%]h']h)]uh+jlhjYubeh}(h!]h#]h%]h']h)]uh+jWhjTubjX)}(hhh](j])}(h Parametersh]h Parameters}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+j\hjhhlhKubjm)}(hhh]h bullet_list)}(hhh](h list_item)}(hhh]j)}(hregion (str) -- AWS region.h](hliteral_strong)}(hregionh]hregion}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhjubh (}(hjhhhNhNubjv)}(hhh]hliteral_emphasis)}(hstrh]hstr}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhjubah}(h!]h#]h%]h']h)] refdomainpy refexplicitreftypej reftargetj refspecificjjjNuh+juhjubh)}(hjhhhNhNubh – }(hjhhhNhNubh AWS region.}(hjhhhNhNubeh}(h!]h#]h%]h']h)]uh+jhjubah}(h!]h#]h%]h']h)]uh+jhjubj)}(hhh]j)}(hXfiles_to_process (list[dict]) -- Expecting a list of dictionaries. Where the key is the repo name and the value is the location of the docker file.Example: files_to_process = [ {'gpu-worker': '/home/ubuntu/projects/twinflow/examples/Dockerfile-gpu-worker'} ]h](j)}(hfiles_to_processh]hfiles_to_process}(hj$hhhNhNubah}(h!]h#]h%]h']h)]uh+jhj ubh (}(hj hhhNhNubjv)}(hhh]j)}(hlisth]hlist}(hj9hhhNhNubah}(h!]h#]h%]h']h)]uh+jhj6ubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypej reftargetj;jjjjNuh+juhj ubj)}(h[h]h[}(hjQhhhNhNubah}(h!]h#]h%]h']h)]uh+jhj ubjv)}(hhh]j)}(hdicth]hdict}(hjbhhhNhNubah}(h!]h#]h%]h']h)]uh+jhj_ubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypej reftargetjdjjjjNuh+juhj ubj)}(h]h]h]}(hjzhhhNhNubah}(h!]h#]h%]h']h)]uh+jhj ubh)}(hj hhhNhNubh – }(hj hhhNhNubj)}(hrExpecting a list of dictionaries. Where the key is the repo name and the value is the location of the docker file.h]hrExpecting a list of dictionaries. Where the key is the repo name and the value is the location of the docker file.}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhj hKhj hhubh definition_list)}(hhh]h definition_list_item)}(hwExample: files_to_process = [ {'gpu-worker': '/home/ubuntu/projects/twinflow/examples/Dockerfile-gpu-worker'} ]h](h term)}(hExample:h]hExample:}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhj hKhjubh definition)}(hhh]j)}(hhh]j)}(hffiles_to_process = [ {'gpu-worker': '/home/ubuntu/projects/twinflow/examples/Dockerfile-gpu-worker'} ]h](j)}(hfiles_to_process = [h]hfiles_to_process = [}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhj hKhjubj)}(hhh]j)}(hQ{'gpu-worker': '/home/ubuntu/projects/twinflow/examples/Dockerfile-gpu-worker'} ]h]hY{‘gpu-worker’: ‘/home/ubuntu/projects/twinflow/examples/Dockerfile-gpu-worker’} ]}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhj hKhjubah}(h!]h#]h%]h']h)]uh+jhjubeh}(h!]h#]h%]h']h)]uh+jhj hKhjubah}(h!]h#]h%]h']h)]uh+jhjhKubah}(h!]h#]h%]h']h)]uh+jhjubeh}(h!]h#]h%]h']h)]uh+jhj hKhjubah}(h!]h#]h%]h']h)]uh+jhj hKhhhNubeh}(h!]h#]h%]h']h)]uh+jhjubah}(h!]h#]h%]h']h)]uh+jhjubj)}(hhh]j)}(hAn_jobs (int, optional) -- Number of cpu to use. The default is 1.h](j)}(hn_jobsh]hn_jobs}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhjubh (}(hjhhhNhNubjv)}(hhh]j)}(hinth]hint}(hj0hhhNhNubah}(h!]h#]h%]h']h)]uh+jhj-ubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypej reftargetj2jjjjNuh+juhjubj)}(h, h]h, }(hjHhhhNhNubah}(h!]h#]h%]h']h)]uh+jhjubjv)}(hhh]j)}(hoptionalh]hoptional}(hjYhhhNhNubah}(h!]h#]h%]h']h)]uh+jhjVubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypej reftargetj[jjjjNuh+juhjubh)}(hjhhhNhNubh – }(hjhhhNhNubh'Number of cpu to use. The default is 1.}(hjhhhNhNubeh}(h!]h#]h%]h']h)]uh+jhjubah}(h!]h#]h%]h']h)]uh+jhjubeh}(h!]h#]h%]h']h)]uh+jhjubah}(h!]h#]h%]h']h)]uh+jlhjubeh}(h!]h#]h%]h']h)]uh+jWhjTubjX)}(hhh](j])}(h Return typeh]h Return type}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+j\hjhhlhKubjm)}(hhh]j)}(hNoneh]jv)}(hhh]hNone}(hjhhhNhNubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypej reftargetNonejjjjNuh+juhjubah}(h!]h#]h%]h']h)]uh+jhjubah}(h!]h#]h%]h']h)]uh+jlhjubeh}(h!]h#]h%]h']h)]uh+jWhjTubeh}(h!]h#]h%]h']h)]uh+jRhj hhhNhNubeh}(h!]h#]h%]h']h)]uh+j hhOhhhhlhKubeh}(h!]h#](jfunctioneh%]h']h)]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh+hMhhhh hNhNubeh}(h!](h<aws-ecr-moduleeh#]h%]aws_ecr moduleah']h)]uh+h hhhhhh,hKubah}(h!]h#]h%]h']h)]sourceh,uh+hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh, _destinationN _config_files]file_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}jjs nametypes}jsh!}(jh h