5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

資料見つかるくんのデプロイ手順

Last updated at Posted at 2026-01-22

VCNの作成

Public

0.0.0.0/0 (or specific IP) – TCP 8080: Dify Console URL
0.0.0.0/0 (or specific IP) – TCP 5005: Flask API Server URL
0.0.0.0/0 (or specific IP) – TCP 22: SSH
Compute Public IP – TCP 5001: Dify File Server URL
Compute Public IP – TCP 5005: Flask API Server URL

Private

VCN CIDR – TCP 1522: ADB
VCN CIDR – TCP 443: ADB Database Actions

顧客秘密キーの作成

構築時に認証として利用する顧客秘密キーを事前に作成しておきます。

プロファイル・アイコン(右上)自分のプロファイル顧客秘密キーから、秘密キーの生成をクリックします。

image.png

名前を入力して生成をクリックすると、秘密キーが生成されます。
image.png

秘密キー(Secret Key) は生成時以降、二度と表示されないため、メモしておきます。
image.png

閉じるを押して、顧客秘密キーの画面に戻ります。
作成した顧客秘密キーを確認し、右端のメニューからアクセス・キー(Access Key) をコピーします。

image.png

後程、Secret KeyAccess Keyを利用するので、2つを控えておきます。

Object Storage バケットの作成

リソースマネージャーを利用したデプロイ

  • Deploy to Oracle Cloudをクリック

以下を参考にスタックを作成しリソースを構築

成功

image.png

Dify画面確認

Difyへアクセスします。

image.png

管理者アカウントの設定

image.png

Computeでのセットアップ

参考

  • Miniconda 環境を構築
cd /u01/aipoc/No.1-ADB-SelectAI-Sidecar/scripts
source setup_miniconda_ubuntu.sh
  • ChatOCI-Images アプリケーションの環境構築
/bin/bash /u01/aipoc/No.1-ADB-SelectAI-Sidecar/scripts/setup_no1_chatoci_images.sh
cd /u01/aipoc/No.1-ChatOCI-Images
vi .env

主要な設定項目
.env ファイル内の以下の項目を設定してください。

# OCI 設定
OCI_CONFIG_FILE=~/.oci/config
OCI_PROFILE=DEFAULT
OCI_BUCKET=your-bucket-name ##
OCI_REGION=us-chicago-1
OCI_COMPARTMENT_OCID=ocid1.compartment.oc1..your-compartment-ocid ##

# Oracle Database設定
DB_USER=your-db-username
DB_PASSWORD=your-db-password
DB_DSN=your-oracle-db-dsn  # 完全なDSN文字列(例: host:port/service_name)

image.png

image.png

  • APIキーの取得

image.png

image.png

  • OCI 設定ファイルの作成
mkdir ~/.oci
vi ~/.oci/config
[DEFAULT]
user=ocid1.user.oc1..aaaaaaaa...
fingerprint=12:34:56:78:90:ab:cd:ef...
tenancy=ocid1.tenancy.oc1..aaaaaaaa...
region=us-chicago-1
key_file=~/.oci/oci_api_key.pem
vi ~/.oci/oci_api_key.pem
chmod 600 ~/.oci/oci_api_key.pem
chmod 600 ~/.oci/config
chmod 700 ~/.oci

チェック

curl http://xx.xx.xx.xx:5005/health

Difyアプリセットアップ

  • エージェント戦略のダウンロード

image.png

  • OCI Gen AIの設定
  • アプリのインポート
5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?