Method: Dockerspec::Builder::ConfigHelpers#entrypoint

Defined in:
lib/dockerspec/builder/config_helpers.rb

#entrypointArray

Returns the image entrypoint (ENTRYPOINT).

Examples:

Basic RSpec Example

describe docker_build(path: '.') do
  its(:entrypoint) { should eq ['/entrypoint.sh'] }
end

RSpec Example Using Have Matchers

describe docker_build(path: '.') do
  it { should have_entrypoint ['/entrypoint.sh'] }
  # Or in string format:
  it { should have_entrypoint '/entrypoint.sh' }
end

Returns:

  • (Array)

    The image entrypoint.



282
283
284
# File 'lib/dockerspec/builder/config_helpers.rb', line 282

def entrypoint
  image_config['Entrypoint']
end