Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Dockerのベースイメージの更新 #3691

Closed
sorairolake opened this issue Apr 26, 2020 · 5 comments
Closed

Dockerのベースイメージの更新 #3691

sorairolake opened this issue Apr 26, 2020 · 5 comments
Labels
improvement 改善や新機能の要望

Comments

@sorairolake
Copy link
Contributor

sorairolake commented Apr 26, 2020

改善詳細 / Details of Improvement

Dockerのベースイメージをv10.xの最新版 (v10.20.1) のものに更新

@sorairolake sorairolake added the improvement 改善や新機能の要望 label Apr 26, 2020
@masanori1102
Copy link
Contributor

masanori1102 commented Apr 28, 2020

現在、プロジェクトで利用しているnode.jsのバージョンは、10.19.0以降です。

もし、利用するnode.jsのバージョンを変えるなら、影響範囲(Search · "10.19.0")全ての変更が必要と考えます。


Releases | Node.jsに記載されているスケジュールでは、現在利用されているnode.js 10.x.xは2020/05/19にメンテナンスフェーズに移行します。

私は、変更するなら、「影響範囲を確認し、V10のメンテナンスフェーズ移行前の2020/05/18までに、V12へ移行する計画を立て、移行する」のが良いのではないかと考えます。

その際に指定するバージョンは、Docker Hubの最新版(2020/04/29現在、10.20.1-alpine, 12.16.2-alpine)から取るのが、実行状態にnode.jsのバージョンが依存しないので、良いと考えます。


以下は、参考までにnode.jsのバージョンを変更してyarn installした結果です。
warningは利用するnode.jsのバージョンに依らず、全て同じです。必要に応じて、対処する事を併せて考えましょう。

  • 10.19.0: 現在のバージョン
    $ rm -rf .nuxt/ node_modules/ yarn.lock ; yarn install
    yarn install v1.22.4
    info No lockfile found.
    [1/5] 🔍  Validating package.json...
    [2/5] 🔍  Resolving packages...
    warning nuxt > @nuxt/webpack > webpack > watchpack > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    warning nuxt > @nuxt/webpack > @nuxt/babel-preset-app > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    warning nuxt > @nuxt/webpack > webpack > watchpack > chokidar > fsevents@1.2.12: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
    warning nuxt > @nuxt/webpack > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    warning nuxt > @nuxt/webpack > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    warning babel-jest > @jest/transform > jest-haste-map > fsevents@1.2.12: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
    warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()
    warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    warning nodemon > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    warning vue-jest > extract-from-css > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    [3/5] 🚚  Fetching packages...
    [4/5] 🔗  Linking dependencies...
    warning "babel-jest > babel-preset-jest > @babel/plugin-syntax-object-rest-spread@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
    warning "vue-jest > @babel/plugin-transform-modules-commonjs@7.9.0" has unmet peer dependency "@babel/core@^7.0.0-0".
    warning "@nuxtjs/eslint-config-typescript > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
    warning "@nuxtjs/stylelint-module > stylelint-webpack-plugin@1.2.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
    warning "@nuxtjs/vuetify > sass-loader@8.0.2" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
    warning "@nuxtjs/vuetify > vuetify@2.2.26" has unmet peer dependency "vue@^2.6.4".
    warning "@nuxtjs/vuetify > vuetify-loader@1.4.3" has unmet peer dependency "vue-template-compiler@^2.5.0".
    warning "@nuxtjs/vuetify > vuetify-loader@1.4.3" has unmet peer dependency "webpack@^4.0.0".
    warning " > @vue/test-utils@1.0.0-beta.33" has unmet peer dependency "vue@2.x".
    warning " > @vue/test-utils@1.0.0-beta.33" has unmet peer dependency "vue-template-compiler@^2.x".
    warning " > babel-jest@24.9.0" has unmet peer dependency "@babel/core@^7.0.0".
    warning "babel-jest > babel-preset-jest@24.9.0" has unmet peer dependency "@babel/core@^7.0.0".
    warning "nuxt-purgecss > purgecss-webpack-plugin@1.6.0" has unmet peer dependency "webpack@^4 || ^3".
    warning " > vue-jest@4.0.0-beta.2" has unmet peer dependency "@babel/core@7.x".
    warning " > vue-jest@4.0.0-beta.2" has unmet peer dependency "vue@^2.x".
    warning " > vue-jest@4.0.0-beta.2" has unmet peer dependency "vue-template-compiler@^2.x".
    warning "vue-jest > ts-jest@23.10.5" has incorrect peer dependency "jest@>=22 <24".
    [5/5] 🔨  Building fresh packages...
    success Saved lockfile.
    ✨  Done in 44.51s.
    
  • 10.20.1
    $ rm -rf .nuxt/ node_modules/ yarn.lock ; yarn install
    yarn install v1.22.4
    info No lockfile found.
    [1/5] 🔍  Validating package.json...
    [2/5] 🔍  Resolving packages...
    warning nuxt > @nuxt/webpack > @nuxt/babel-preset-app > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    warning nuxt > @nuxt/webpack > webpack > watchpack > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    warning nuxt > @nuxt/webpack > webpack > watchpack > chokidar > fsevents@1.2.12: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
    warning nuxt > @nuxt/webpack > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    warning nuxt > @nuxt/webpack > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    warning babel-jest > @jest/transform > jest-haste-map > fsevents@1.2.12: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
    warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()
    warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    warning nodemon > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    warning vue-jest > extract-from-css > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    [3/5] 🚚  Fetching packages...
    [4/5] 🔗  Linking dependencies...
    warning "babel-jest > babel-preset-jest > @babel/plugin-syntax-object-rest-spread@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
    warning "vue-jest > @babel/plugin-transform-modules-commonjs@7.9.0" has unmet peer dependency "@babel/core@^7.0.0-0".
    warning "@nuxtjs/eslint-config-typescript > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
    warning "@nuxtjs/stylelint-module > stylelint-webpack-plugin@1.2.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
    warning "@nuxtjs/vuetify > vuetify-loader@1.4.3" has unmet peer dependency "vue-template-compiler@^2.5.0".
    warning "@nuxtjs/vuetify > vuetify-loader@1.4.3" has unmet peer dependency "webpack@^4.0.0".
    warning "@nuxtjs/vuetify > sass-loader@8.0.2" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
    warning "@nuxtjs/vuetify > vuetify@2.2.26" has unmet peer dependency "vue@^2.6.4".
    warning " > @vue/test-utils@1.0.0-beta.33" has unmet peer dependency "vue@2.x".
    warning " > @vue/test-utils@1.0.0-beta.33" has unmet peer dependency "vue-template-compiler@^2.x".
    warning " > babel-jest@24.9.0" has unmet peer dependency "@babel/core@^7.0.0".
    warning "babel-jest > babel-preset-jest@24.9.0" has unmet peer dependency "@babel/core@^7.0.0".
    warning "nuxt-purgecss > purgecss-webpack-plugin@1.6.0" has unmet peer dependency "webpack@^4 || ^3".
    warning " > vue-jest@4.0.0-beta.2" has unmet peer dependency "@babel/core@7.x".
    warning " > vue-jest@4.0.0-beta.2" has unmet peer dependency "vue@^2.x".
    warning " > vue-jest@4.0.0-beta.2" has unmet peer dependency "vue-template-compiler@^2.x".
    warning "vue-jest > ts-jest@23.10.5" has incorrect peer dependency "jest@>=22 <24".
    [5/5] 🔨  Building fresh packages...
    success Saved lockfile.
    ✨  Done in 23.03s.
    
  • 12.16.2
    $ rm -rf .nuxt/ node_modules/ yarn.lock ; yarn install
    yarn install v1.22.4
    info No lockfile found.
    [1/5] 🔍  Validating package.json...
    [2/5] 🔍  Resolving packages...
    warning nuxt > @nuxt/webpack > webpack > watchpack > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    warning nuxt > @nuxt/webpack > @nuxt/babel-preset-app > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    warning nuxt > @nuxt/webpack > webpack > watchpack > chokidar > fsevents@1.2.12: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
    warning nuxt > @nuxt/webpack > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    warning nuxt > @nuxt/webpack > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    warning babel-jest > @jest/transform > jest-haste-map > fsevents@1.2.12: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
    warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()
    warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    warning nodemon > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    warning vue-jest > extract-from-css > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    [3/5] 🚚  Fetching packages...
    [4/5] 🔗  Linking dependencies...
    warning "babel-jest > babel-preset-jest > @babel/plugin-syntax-object-rest-spread@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
    warning "vue-jest > @babel/plugin-transform-modules-commonjs@7.9.0" has unmet peer dependency "@babel/core@^7.0.0-0".
    warning "@nuxtjs/eslint-config-typescript > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
    warning "@nuxtjs/stylelint-module > stylelint-webpack-plugin@1.2.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
    warning "@nuxtjs/vuetify > sass-loader@8.0.2" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
    warning "@nuxtjs/vuetify > vuetify@2.2.26" has unmet peer dependency "vue@^2.6.4".
    warning "@nuxtjs/vuetify > vuetify-loader@1.4.3" has unmet peer dependency "vue-template-compiler@^2.5.0".
    warning "@nuxtjs/vuetify > vuetify-loader@1.4.3" has unmet peer dependency "webpack@^4.0.0".
    warning " > @vue/test-utils@1.0.0-beta.33" has unmet peer dependency "vue@2.x".
    warning " > @vue/test-utils@1.0.0-beta.33" has unmet peer dependency "vue-template-compiler@^2.x".
    warning " > babel-jest@24.9.0" has unmet peer dependency "@babel/core@^7.0.0".
    warning "babel-jest > babel-preset-jest@24.9.0" has unmet peer dependency "@babel/core@^7.0.0".
    warning "nuxt-purgecss > purgecss-webpack-plugin@1.6.0" has unmet peer dependency "webpack@^4 || ^3".
    warning " > vue-jest@4.0.0-beta.2" has unmet peer dependency "@babel/core@7.x".
    warning " > vue-jest@4.0.0-beta.2" has unmet peer dependency "vue@^2.x".
    warning " > vue-jest@4.0.0-beta.2" has unmet peer dependency "vue-template-compiler@^2.x".
    warning "vue-jest > ts-jest@23.10.5" has incorrect peer dependency "jest@>=22 <24".
    [5/5] 🔨  Building fresh packages...
    success Saved lockfile.
    ✨  Done in 77.92s.
    

Backendから、node.jsのバージョン変更について、何かありませんか? > @mikkame サン

@goki90210
Copy link
Contributor

少なくとも
vue-jestは本家のバージョンアップ待ちですね。
4.0.0-beta.2のpackage.jsonで
"jest": "^24.x"
にもかかわらず、
"ts-jest": "^23.10.5"
(ts-jest@23.xjest 24.xがNG)
など依存関係に矛盾があります。

現状でもyarn upgrade後にyarn buildを実行すると失敗するので依存関係の整理(バージョンアップを含むは慎重にということでしょうか?

@mcdmaster
Copy link
Contributor

いろいろアップグレードしてみました。core-js@3 の適用も意識しています。

mcdmaster@localhost:~/covid19> node --version
v14.2.0
mcdmaster@localhost:~/covid19> rm -rf node_modules/ yarn.lock ; yarn install
yarn install v1.22.4
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @nuxt/webpack > @nuxt/babel-preset-app > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning @nuxt/webpack > webpack > watchpack > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @nuxt/webpack > webpack > watchpack > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @nuxt/webpack > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @nuxt/webpack > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning babel-jest > babel-plugin-istanbul > istanbul-lib-instrument > babel-template > babel-runtime > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning vue-jest > extract-from-css > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[3/5] Fetching packages...
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.3: The platform "linux" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > ts-jest@25.10.0-alpha.2" has incorrect peer dependency "jest@>=25 <26".
warning " > vue-jest@5.0.0-alpha.0" has incorrect peer dependency "jest@^24.x".
warning "vue-jest > ts-jest@24.3.0" has incorrect peer dependency "jest@>=24 <25".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 162.88s.
mcdmaster@localhost:~/covid19>

この場合、nuxt.config.ts には手が入ります。

...
  build: {
...
    babel: {
      presets({ isServer }) {
        return [
          [
            require.resolve('@nuxt/babel-preset-app'),
            {
              buildTarget: isServer ? 'server' : 'client',
              corejs: { version: 3 }
            }
          ]
        ]
      }
    }
  },
...

@mcdmaster
Copy link
Contributor

#4918, #4923, #4932 あたりに引き継がれたという認識です。
本イシューのクローズを、勝手ながら提案します

@sorairolake
Copy link
Contributor Author

@mcdmaster さんの提案に基づき、このissueをcloseします。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
improvement 改善や新機能の要望
Projects
None yet
Development

No branches or pull requests

4 participants