サポート #453
CircleCI にて古い .deb ファイルがキャッシュされないように修正
説明
古い .deb ファイルがキャッシュで残り続けるため、古いパッケージのインストール処理時間がかかる。
最新のパッケージのみをインストールするため、古い .deb ファイルがキャッシュ化されないように対処が必要。
参照: https://circleci.com/gh/mizo0203/google-home-shiritori/231
下記の場合、本来は Ver. 219.0.1 のみのインストールで良いが、
Ver. 210.0.0 以降の .deb ファイルがキャッシュ化されているため、
古いパッケージから順にインストール処理をしてしまっている。
$ #!/bin/bash -eo pipefail if [[ $(find /home/circleci/apt/archives -name "*.deb") == *".deb"* ]];then sudo dpkg -i /home/circleci/apt/archives/*.deb fi Selecting previously unselected package distro-info-data. (Reading database ... 33446 files and directories currently installed.) Preparing to unpack .../distro-info-data_0.36_all.deb ... Unpacking distro-info-data (0.36) ... Selecting previously unselected package google-cloud-sdk-app-engine-python-extras. Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_210.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_211.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (211.0.0-0) over (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_212.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (212.0.0-0) over (211.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_216.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (216.0.0-0) over (212.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_218.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (218.0.0-0) over (216.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_219.0.1-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (219.0.1-0) over (218.0.0-0) ... Selecting previously unselected package google-cloud-sdk-app-engine-python. Preparing to unpack .../google-cloud-sdk-app-engine-python_210.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python_211.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (211.0.0-0) over (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python_212.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (212.0.0-0) over (211.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python_216.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (216.0.0-0) over (212.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python_218.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (218.0.0-0) over (216.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python_219.0.1-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (219.0.1-0) over (218.0.0-0) ... Selecting previously unselected package google-cloud-sdk. Preparing to unpack .../google-cloud-sdk_210.0.0-0_all.deb ... Unpacking google-cloud-sdk (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk_211.0.0-0_all.deb ... Unpacking google-cloud-sdk (211.0.0-0) over (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk_212.0.0-0_all.deb ... Unpacking google-cloud-sdk (212.0.0-0) over (211.0.0-0) ... Preparing to unpack .../google-cloud-sdk_216.0.0-0_all.deb ... Unpacking google-cloud-sdk (216.0.0-0) over (212.0.0-0) ... Preparing to unpack .../google-cloud-sdk_218.0.0-0_all.deb ... Unpacking google-cloud-sdk (218.0.0-0) over (216.0.0-0) ... Preparing to unpack .../google-cloud-sdk_219.0.1-0_all.deb ... Unpacking google-cloud-sdk (219.0.1-0) over (218.0.0-0) ... Selecting previously unselected package lsb-release. Preparing to unpack .../lsb-release_9.20161125_all.deb ... Unpacking lsb-release (9.20161125) ... Selecting previously unselected package python-crcmod. Preparing to unpack .../python-crcmod_1.7-2+b2_amd64.deb ... Unpacking python-crcmod (1.7-2+b2) ... More than one copy of package google-cloud-sdk-app-engine-python-extras has been unpacked in this run ! Only configuring it once. More than one copy of package google-cloud-sdk-app-engine-python has been unpacked in this run ! Only configuring it once. More than one copy of package google-cloud-sdk has been unpacked in this run ! Only configuring it once. Setting up distro-info-data (0.36) ... Setting up google-cloud-sdk (219.0.1-0) ... Setting up lsb-release (9.20161125) ... Setting up python-crcmod (1.7-2+b2) ... Setting up google-cloud-sdk-app-engine-python (219.0.1-0) ... Processing triggers for google-cloud-sdk (219.0.1-0) ... Setting up google-cloud-sdk-app-engine-python-extras (219.0.1-0) ... Processing triggers for google-cloud-sdk (219.0.1-0) ...
関連するチケット
古明地こいし @redmizo_info さんが約6年前に更新
Commit: 301956a7284b6b0e9c6e661b1478026b7c142c12
https://github.com/mizo0203/google-home-shiritori/commit/301956a7284b6b0e9c6e661b1478026b7c142c12
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-10-14 (Sun, 14 Oct 2018)
Log Message:
chore(circle.yml): Fix to prevent multiple .deb files from being cached for one package. fix #453 @1.5h
みぞ @mizo0203 さんが約6年前に更新
- ステータス を 新規 から 解決 に変更
- 進捗率 を 0 から 80 に変更
更新履歴 github|301956a7284b6b0e9c6e661b1478026b7c142c12 で適用されました。
古明地こいし @redmizo_info さんが約6年前に更新
Commit: 2878f4e8c763c627478c8e78f35a7fe0513f9caa
https://github.com/mizo0203/google-home-shiritori/commit/2878f4e8c763c627478c8e78f35a7fe0513f9caa
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-10-14 (Sun, 14 Oct 2018)
Log Message:
chore(circle.yml): Fix rename .deb files. fix #453 @0.25h
古明地こいし @redmizo_info さんが約6年前に更新
Commit: f0326cc7bf663469f5842002e74f188377a71b96
https://github.com/mizo0203/google-home-shiritori/commit/f0326cc7bf663469f5842002e74f188377a71b96
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-10-14 (Sun, 14 Oct 2018)
Log Message:
chore(circle.yml): Replace deprecated rename command. fix #453 @0.25h
古明地こいし @redmizo_info さんが約6年前に更新
Commit: 301956a7284b6b0e9c6e661b1478026b7c142c12
https://github.com/mizo0203/google-home-shiritori/commit/301956a7284b6b0e9c6e661b1478026b7c142c12
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-10-14 (Sun, 14 Oct 2018)
Log Message:
chore(circle.yml): Fix to prevent multiple .deb files from being cached for one package. fix #453 @1.5h
古明地こいし @redmizo_info さんが約6年前に更新
Commit: 2878f4e8c763c627478c8e78f35a7fe0513f9caa
https://github.com/mizo0203/google-home-shiritori/commit/2878f4e8c763c627478c8e78f35a7fe0513f9caa
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-10-14 (Sun, 14 Oct 2018)
Log Message:
chore(circle.yml): Fix rename .deb files. fix #453 @0.25h
古明地こいし @redmizo_info さんが約6年前に更新
Commit: f0326cc7bf663469f5842002e74f188377a71b96
https://github.com/mizo0203/google-home-shiritori/commit/f0326cc7bf663469f5842002e74f188377a71b96
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-10-14 (Sun, 14 Oct 2018)
Log Message:
chore(circle.yml): Replace deprecated rename command. fix #453 @0.25h
古明地こいし @redmizo_info さんが約6年前に更新
Commit: 301956a7284b6b0e9c6e661b1478026b7c142c12
https://github.com/mizo0203/google-home-shiritori/commit/301956a7284b6b0e9c6e661b1478026b7c142c12
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-10-14 (Sun, 14 Oct 2018)
Log Message:
chore(circle.yml): Fix to prevent multiple .deb files from being cached for one package. fix #453 @1.5h
古明地こいし @redmizo_info さんが約6年前に更新
Commit: 2878f4e8c763c627478c8e78f35a7fe0513f9caa
https://github.com/mizo0203/google-home-shiritori/commit/2878f4e8c763c627478c8e78f35a7fe0513f9caa
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-10-14 (Sun, 14 Oct 2018)
Log Message:
chore(circle.yml): Fix rename .deb files. fix #453 @0.25h
古明地こいし @redmizo_info さんが約6年前に更新
Commit: f0326cc7bf663469f5842002e74f188377a71b96
https://github.com/mizo0203/google-home-shiritori/commit/f0326cc7bf663469f5842002e74f188377a71b96
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-10-14 (Sun, 14 Oct 2018)
Log Message:
chore(circle.yml): Replace deprecated rename command. fix #453 @0.25h