0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

FaceFusionをAWSで動かす

0
Posted at

概要

FaceFusion (https://facefusion.io/) をAWSで動かす手順です。

方針

公式でdocker compose用のイメージがあるので、それを利用します。
https://docs.facefusion.io/usage/run-with-docker

AWS側では出来るだけ高性能なインスタンスを利用するためにAmazon Linux 2023をOSとして選定しています。そうすると、docker composeが素直に動かないので、頑張って対策します

Ansible playbook

### docker compose をどうにかする
- name: Create plugin directory
  file:
    path: /usr/local/lib/docker/cli-plugins
    state: directory
    mode: '0755'

- name: Download docker compose plugin
  get_url:
    url: "https://github.com/docker/compose/releases/download/{{ compose_version }}/docker-compose-linux-x86_64"
    dest: /usr/local/lib/docker/cli-plugins/docker-compose
    mode: '0755'

- name: Verify docker compose
  command: docker compose version
  register: result
  changed_when: false

- debug:
    var: result.stdout

### Gitでリポジトリを持ってくる
- name: Install required libraries
  ansible.builtin.dnf:
    name:
      - git
    state: present

- name: Gitリポジトリをクローン
  ansible.builtin.git:
    repo: https://github.com/facefusion/facefusion-docker.git
    dest: /opt/facefusion-docker

### FaceFusionを動かす
- name: Run compose via module
  community.docker.docker_compose_v2:
    project_src: /opt/facefusion-docker
    files:
      - docker-compose.cpu.yml
    state: present

宣伝

株式会社digitalbigmoでは、ソフトの開発から、レンダーファームの構築まで手広くお仕事をしています。お困りの際はお気軽にお問い合わせください。相談は無料で承っております。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?