
공식 홈페이지 | https://beta.dreamstudio.ai/dream
드림스튜디오의 api를 사용하여 배포하기로 했다.
먼저 드림스튜디오의 계정을 만들고, 오른쪽 상단 사용자 이미지를 눌러 My Account에 들어간다.
api키가 만들어저 있다. 난 따로 저장해두었다.
우측 하단 api user칸의 expand를 누르면 개발자 문서에 들어갈 수 있다.
난 typescript가 그나마 익숙하므로 typescript로 작업을 진행하겠다.
https://platform.stability.ai/docs/getting-started/typescript-client#copy-client-code
https://github.com/Stability-AI/api-interfaces
-- Found ProtobufWithTargets: TRUE
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so (found version "3.12.4")
-- Found Python3: /usr/bin/python3.10 (found version "3.10.6") found components: Interpreter
CMake Error at CMakeLists.txt:35 (message):
Could not create python3 env at /var/dreamstudio/api-interfaces/pybuild
-- Configuring incomplete, errors occurred!
See also "/var/dreamstudio/api-interfaces/CMakeFiles/CMakeOutput.log".
에러뜸
Ubuntu 20.04 LTS에 Go(Golang) 컴파일러를 설치하는 방법 |
https://ko.linuxcapable.com/how-to-install-go-golang-compiler-on-ubuntu-20-04/
우분투 Node.js 설치 |
https://velog.io/@ywoosang/Node.js-%EC%84%A4%EC%B9%98
cmake설치
Ubuntu 20.04에 CMake 3.18.4 설치하기!
| https://typingdog.tistory.com/92
Ubuntu에서 cmake 설치 방법
| https://mong9data.tistory.com/124
cmake란
씹어먹는 C++ - <19 - 2. C++ 프로젝트를 위한 CMake 사용법>
https://modoocode.com/332
여기서 쓰이는 wget은 무엇이며 openSSL은 무엇인가
Linux 기본명령어 wget http://www.incodom.kr/Linux/%EA%B8%B0%EB%B3%B8%EB%AA%85%EB%A0%B9%EC%96%B4/wget wget은 webget의 약어로 웹상의 파일을 다운 받을 때 쓰는 명령어. 비상호작용 네트워크 다운로더. wget은 느리거나 불안정한 네트워크 환경에서도 매우 잘 작동하는 견고한 프로그램. openSSL https://ko.wikipedia.org/wiki/OpenSSL 네트워크를 통한 데이터 통신에 쓰이는 프로토콜인 TLS와 SSL의 오픈소스 구현판(c언어로 작성됨) TLS/SSL 전송 계층 보안(영어: Transport Layer Security, TLS, 과거 명칭: 보안 소켓 레이어/Secure Sockets Layer, SSL)는 컴퓨터 네트워크에 통신 보안을 제공하기 위해 설계된 암호 규약이다.Protocol Buffer Compiler Installation |
https://grpc.io/docs/protoc-installation/
grpc공식 문서
quick start|c++|gRPC |
https://grpc.io/docs/languages/cpp/quickstart/
리눅스 스왑 메모리 설정 방법 |
https://extrememanual.net/12975
걸핏하면 헐떡이며 build든 설치든 멈춰버리는 ubuntu t2.micro 프리티어를 데리고 작업할려니 여간 힘든게 아니다.
grpc 깔다가 자꾸 멈추길래 스왑 메모리를 설정해주니 버벅이긴 해도 어쨌든 돌아갔다.
cmake .를 돌리는데
CMake Error at CMakeLists.txt:35 (message):
Could not create python3 env at /var/dreamstudio/api-interfaces/pybuild
진행 중 이런 에러가 떴다. 파이썬 버전을 맞춰 가상환경을 설치해주니 빌드가 되었다.
apt-get install python3.10-venv