Sha256: 81da95c7c25596c85b572260ff65c0dfab453bc119193312595ec3acd916b74a
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
#!/bin/bash -ex # Constants RUBY_VERSION_DEFAULT="3.0" # Arguments RUBY_VERSION=${1-${RUBY_VERSION_DEFAULT}} # Script # Clones 'Dockerfile' and updates the Ruby version in FROM, returning the cloned file's path function dockerfile_path { echo "Setting Ruby version as ${RUBY_VERSION}" >&2 cp "Dockerfile" "Dockerfile.${RUBY_VERSION}" sed -i -e "s/${RUBY_VERSION_DEFAULT}/${RUBY_VERSION}/g" Dockerfile.${RUBY_VERSION} echo "Dockerfile.${RUBY_VERSION}" } rm -f Gemfile.lock # Needed for bundle to work right IMAGE_NAME="cli-ruby:${RUBY_VERSION}" # The tag is the version of Ruby tested against docker build -t ${IMAGE_NAME} -f $(dockerfile_path) . docker run --rm \ -v $PWD:/src \ ${IMAGE_NAME} \ bash -c ''' bundle update bundle exec rake jenkins bundle exec rake build '''
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
conjur-cli-6.2.6 | jenkins.sh |