Project

General

Profile

サポート #453

CircleCI にて古い .deb ファイルがキャッシュされないように修正

Added by みぞ @mizo0203 almost 3 years ago. Updated over 2 years ago.

Status:
完了
Priority:
通常
Target version:
Start date:
10/14/2018
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

古い .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) ...

Related issues

Related to サポート #410: CircleCIで自作Dockerイメージを使用するようにする却下みぞ @mizo020308/04/2018

Actions
#1

Updated by みぞ @mizo0203 almost 3 years ago

  • Description updated (diff)
#2

Updated by 古明地こいし @redmizo_info almost 3 years ago

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

#3

Updated by みぞ @mizo0203 almost 3 years ago

  • Status changed from 新規 to 解決
  • % Done changed from 0 to 80

更新履歴 github|301956a7284b6b0e9c6e661b1478026b7c142c12 で適用されました。

#4

Updated by 古明地こいし @redmizo_info almost 3 years ago

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

#5

Updated by 古明地こいし @redmizo_info almost 3 years ago

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

#6

Updated by 古明地こいし @redmizo_info almost 3 years ago

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

#7

Updated by 古明地こいし @redmizo_info almost 3 years ago

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

#8

Updated by 古明地こいし @redmizo_info almost 3 years ago

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

#9

Updated by みぞ @mizo0203 almost 3 years ago

  • Related to サポート #410: CircleCIで自作Dockerイメージを使用するようにする added
#10

Updated by 古明地こいし @redmizo_info almost 3 years ago

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

#11

Updated by 古明地こいし @redmizo_info almost 3 years ago

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

#12

Updated by 古明地こいし @redmizo_info almost 3 years ago

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

#13

Updated by みぞ @mizo0203 over 2 years ago

  • Status changed from 解決 to 完了
  • % Done changed from 80 to 100

Also available in: Atom PDF