Sha256: cdd64d829e2bfc5169dabfe36ea7bdad4d2d95500b85829afebede003d76dac6

Contents?: true

Size: 968 Bytes

Versions: 7

Compression:

Stored size: 968 Bytes

Contents

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

include_recipe '../python/install'
include_recipe '../bazel/install'

{
  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/r1.4' do
  repository 'https://github.com/tensorflow/tensorflow'
  revision 'r1.4'
end

local_ruby_block 'install tensorflow' do
  cwd '/opt/tensorflow/r1.4'
  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 //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.4.1-cp36-cp36m-linux_x86_64.whl
    EOF
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
daddy-0.7.0 itamae/cookbooks/tensorflow/install.rb
daddy-0.6.6 itamae/cookbooks/tensorflow/install.rb
daddy-0.6.5 itamae/cookbooks/tensorflow/install.rb
daddy-0.6.4 itamae/cookbooks/tensorflow/install.rb
daddy-0.6.3 itamae/cookbooks/tensorflow/install.rb
daddy-0.6.2 itamae/cookbooks/tensorflow/install.rb
daddy-0.6.1 itamae/cookbooks/tensorflow/install.rb