전체 글
-
CI/CD (1) Test(FastAPI/Gitlab)이것저것 2024. 2. 13. 15:37
프로잭트 생성 / 예제 코드 적용 Dockerfile 구성 FROM python:3.9-slim # Set environment variables ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Make port 80 av..
-
[gitlab-runner] ERROR: error during connect: Get "http://docker:2375/v1.24/info": dial tcp: lookup docker on 192.168.1.1:53: no such host이것저것 2024. 2. 13. 14:41
Server: ERROR: error during connect: Get "http://docker:2375/v1.24/info": dial tcp: lookup docker on 192.168.1.1:53: no such host errors pretty printing info Cleaning up project directory and file based variables 대충 이런 에러가 나는데 /etc/gitlab-runner/config.toml를 [[runners]] id = 0 token = "glrt-iwxLr-7Nszw7kLHTJPcn" token_obtained_at = 0001-01-01T00:00:00Z token_expires_at = 0001-01-01T00:00:00Z exe..
-
[Java] jackson ObjectMapper개발일지/Java 2024. 1. 30. 14:50
Jackson.ObjectMapper 라이브러리 자바 객체와 json 객체사이에서 직렬화, 역직렬화 시켜주는 라이브러리 //객체생성 public class Car { private String color; private String type; // standard getters setters } // 직렬화 예시 ObjectMapper objectMapper = new ObjectMapper(); Car car = new Car("yellow", "renault"); objectMapper.writeValue(new File("target/car.json"), car); //역직렬화 예시 String json = "{ \\"color\\" : \\"Black\\", \\"type\\" : \\"BMW\\..
-
[Intellij] static import 안먹힘이것저것 2024. 1. 29. 15:05
Add on Demand Static import 부분 체크박스 확인. 켜져있어야댐 /
-
ModuleNotFoundError: No module named '_lzma'Python 2023. 10. 27. 12:25
ModuleNotFoundError: No module named '_lzma' 간혹 Ubuntu에서 Python을 apt로 설치하지 않고 wget으로 설치해서 make 할 시. APT에 등록되지 않은 기본 라이브러리들이 설치가 안되는경우가 있따. burin@boss-WS-C621E-SAGE-Series:/data/workspace/AICoverGen$ python3.9 src/webui.py Traceback (most recent call last): File "/data/workspace/AICoverGen/src/webui.py", line 10, in from main import song_cover_pipeline File "/data/workspace/AICoverGen/src/main.py..
-
파이썬 블로그 읽을거리 요약 정리 (1)이것저것 2023. 7. 26. 11:44
0726 블로그 글 읽어보기.. Stop Using Python Strings To Represent File Paths! Stop Using Python Strings To Represent File Paths! 파일경로를 나타내기 위해 문자열 사용을 그만하라. Mac, Linux filepath는 슬래시(/) Windows Uses backward slashed(\) File Path를 구분하기 위해 If else를 사용하지 않을려면 pathlib를 사용하자. import pathlib path = pathlib.Path('folder') / 'subfolder' / 'subsubfolder' print(path) # folder/subfolder/subsubfolder 주의점은 Pathlib를 사용..