Traceback (most recent call last): 2: from /usr/local/bin/bundle:23:in `<main>' 1: from /usr/local/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path' /usr/local/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.2.15) required by your /app/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:2.2.15` !! exit status 1
$ docker-compose run --rm web gem install bundler Creating app_web_run ... done Traceback (most recent call last): 2: from /usr/local/bin/bundle:23:in `<main>' 1: from /usr/local/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path' /usr/local/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.2.15) required by your /app/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run `bundle update --bundler`. ... (中略) ... To install the missing version, run `gem install bundler:2.2.15` !! exit status 1
メッセージは変わりません…
bundle update –bundler
もう1つの方法、bundle update —bundlerを行なってみましょう
1 2 3 4 5 6 7 8 9
$ docker-compose run --rm web bundle update --bundler Creating app_web_run ... done Traceback (most recent call last): 2: from /usr/local/bin/bundle:23:in `<main>' 1: from /usr/local/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path' /usr/local/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.2.15) required by your /app/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:2.2.15` !! exit status 1
$ bundle update --bundler Warning: the running version of Bundler (2.1.4) is older than the version that created the lockfile (2.2.15). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.15`.
Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
Rubyのセットアップ自体は
1 2
- name: Set up Ruby uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, # change this to (see https://github.com/ruby/setup-ruby#versioning): # uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
exports.handler = async (event, context) => { /* Process the list of records and transform them */ //console.log(JSON.stringify(event, null, 2)); const output = event.records.map((record) => { const payload = Buffer.from(record.data, 'base64').toString('ascii'); const payload_json = JSON.parse(payload); let d = payload_json["log"]; if (add_line_feed(payload_json) === true) { d = `${d}\n`; } const buf = Buffer.from(d);
/* This transformation is the "identity" transformation, the data is left intact */ return { recordId: record.recordId result: 'Ok', data: buf.toString('base64') } }); console.log(`Processing completed. Successful records ${output.length}.`); return { records: output }; };
function add_line_feed(obj) { if (obj.hasOwnProperty("partial_message") === false) { return true; } if (obj.hasOwnProperty("partial_message") === true && obj["partial_last"] === "true") { return true; } return false; }
Unable to generate firelens config file: unable to generate firelens config: unable to apply log options of container ap to firelens config: missing output key @type which is required for firelens configuration of type fluentd