File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
cookbooks/aws-parallelcluster-awsbatch/recipes Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 2828 not_if { ::File . exist? ( "#{ virtualenv_path } /bin/activate" ) }
2929end
3030
31- remote_file "#{ node [ 'cluster' ] [ 'base_dir' ] } /awsbatch-dependencies.tgz" do
32- source "#{ node [ 'cluster' ] [ 'artifacts_s3_url' ] } /dependencies/PyPi/#{ node [ 'kernel' ] [ 'machine' ] } /awsbatch-dependencies.tgz"
33- mode '0644'
34- retries 3
35- retry_delay 5
36- action :create_if_missing
37- end
38-
39- bash 'pip install' do
40- user 'root'
41- group 'root'
42- cwd "#{ node [ 'cluster' ] [ 'base_dir' ] } "
43- code <<-REQ
44- set -e
45- tar xzf awsbatch-dependencies.tgz
46- cd awsbatch
47- #{ virtualenv_path } /bin/pip install * -f ./ --no-index
48- REQ
49- end
50-
5131node . default [ 'cluster' ] [ 'awsbatch_virtualenv_path' ] = virtualenv_path
5232node_attributes "dump node attributes"
You can’t perform that action at this time.
0 commit comments