s-tip / stip-common

Seamless Threat Intelligence Platform
GNU Affero General Public License v3.0
47 stars 11 forks source link

Could not find a stix-validator==2.0.0.dev1 in Docker build. #15

Closed tkhsknsk closed 4 years ago

tkhsknsk commented 4 years ago

ローカル環境でS-TIPを環境構築すべく、Docker builidコマンドで実行したところ 以下のエラーメッセージで中断してしまいます。 Could not find a version that satisfies the requirement stix-validator==2.0.0.dev1

Collecting stix-validator==2.0.0.dev1 (from -r /stip-common/install_scripts/requirements_rs.txt (line 9))
  Could not find a version that satisfies the requirement stix-validator==2.0.0.dev1 (from -r /stip-common/install_scripts/requirements_rs.txt (line 9)) (from versions: 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.2.0, 2.3.0, 2.4.0, 2.5.0.dev0, 2.5.0)
No matching distribution found for stix-validator==2.0.0.dev1 (from -r /stip-common/install_scripts/requirements_rs.txt (line 9))
The command '/bin/sh -c pip install -r ${SCRIPTS_DIR}/requirements_rs.txt -r ${SCRIPTS_DIR}/requirements_gv.txt -r ${SCRIPTS_DIR}/requirements_sns.txt' returned a non-zero code: 1

試しに、requirements_rs.txt、requirements_sns.txtの中身をstix-validator==2.0.0に直すとビルドに成功しますが、2.0.0.dev2でインストールされてしまいます。

ta-hiroki commented 4 years ago

11 #13 ではstix2-validatorのv2.0.0.dev1をインストールしたいため、

stix-validator==2.0.0.dev1を追記しましたが、 stix-validatorとstix2-validatorは別のモジュールで、 stix-validatorがインストールされることでstix2-validatorも同時にインストールはされませんでした。

そのため以下の対応が必要だと思いますが問題ないでしょうか? > @stmtstk さん @ykoji8681 さん

ykoji8681 commented 4 years ago

@stmtstk よろしいでしょうか?

stmtstk commented 4 years ago

@ykoji8681 @ta-hiroki @tkhsknsk 調査ありがとうございます。

@ta-hiroki さんの提案方法で修正しましょう