Sha256: 77392e09c23252e762d368b7b13465a107ce57c6770ef899ae6ca48736aeeba8

Contents?: true

Size: 943 Bytes

Versions: 21

Compression:

Stored size: 943 Bytes

Contents

require 'daddy/itamae'

directory '/opt/tensorflow' do
  user 'root'
  owner ENV['USER']
  group ENV['USER']
  mode '755'
end

{
  dev: '0.4.0',
  numpy: '1.13.3',
  pip: '9.0.1',
  wheel: '0.30.0'
}.each do |name, ver|
  pip name.to_s do
    user 'root'
    pip_binary 'pip3'
    version ver
  end
end

git '/opt/tensorflow/v1.8.0' do
  repository 'https://github.com/tensorflow/tensorflow'
  revision 'v1.8.0'
end

local_ruby_block 'install tensorflow' do
  cwd '/opt/tensorflow/v1.8.0'
  block do
    Itamae.logger.info ''
    Itamae.logger.info 'Run following commands to proceed.'
    Itamae.logger.info "\n\n" + <<-EOF
PYTHON_BIN_PATH=/usr/local/bin/python3 ./configure
bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package 
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
sudo pip3 install /tmp/tensorflow_pkg/tensorflow-1.8.0-cp36-cp36m-linux_x86_64.whl
    EOF
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
daddy-0.9.13 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.12 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.11 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.10 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.9 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.8 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.7 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.6 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.5 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.4 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.3 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.2 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.1 itamae/cookbooks/tensorflow/install.rb
daddy-0.9.0 itamae/cookbooks/tensorflow/install.rb
daddy-0.8.1 itamae/cookbooks/tensorflow/install.rb
daddy-0.8.0 itamae/cookbooks/tensorflow/install.rb
daddy-0.7.9 itamae/cookbooks/tensorflow/install.rb
daddy-0.7.8 itamae/cookbooks/tensorflow/install.rb
daddy-0.7.7 itamae/cookbooks/tensorflow/install.rb
daddy-0.7.6 itamae/cookbooks/tensorflow/install.rb