Coder Social home page Coder Social logo

Comments (3)

BarthV avatar BarthV commented on June 29, 2024

I did it on my own wrapper. I'll check the code later, but it's not impossible at all :)

from artifact-cookbook.

ntorres-globant avatar ntorres-globant commented on June 29, 2024

Actually, the version here: https://supermarket.chef.io/cookbooks/artifact/versions/1.12.1 (that is what the chef server automatically downloads when requested) is different from this repository contents.

The supermarket version has the package extraction for war files and the github version does not.

Since I need the later behaviour I just downloaded the code and manually uploaded to the chef server bypassing the supermarket.

Thanks BarthV for your response.

More details

Here: https://github.com/RiotGamesCookbooks/artifact-cookbook/blob/master/providers/deploy.rb

when /(war|jar)$/
  ruby_block "Copy War/JAR File to Release_Path" do
    block do
      ::FileUtils.cp "#{cached_tar_path}", "#{release_path}"
    end

and the supermarket version (BTW: both same version number 1.12.1)

when /zip|war|jar/
if Chef::Artifact.windows?
windows_zipfile release_path do
source cached_tar_path
overwrite true
retries 2
end
else
package "unzip"
execute "extract_artifact!" do
command "unzip -q -u -o #{cached_tar_path} -d #{release_path}"
user new_resource.owner
group new_resource.group
retries 2
end
end

from artifact-cookbook.

frntn avatar frntn commented on June 29, 2024

I'm having the same issue here.
Any idea when the supermarket repo will be synced ? (I 'd like to keep on using Berkshelf and prevent myself from manual hacks)

from artifact-cookbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.