이것저것
-
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..
-
[Intellij] static import 안먹힘이것저것 2024. 1. 29. 15:05
Add on Demand Static import 부분 체크박스 확인. 켜져있어야댐 /
-
파이썬 블로그 읽을거리 요약 정리 (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를 사용..
-
[Git] github push 오류 Git token <remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.>이것저것 2022. 2. 28. 23:44
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. Git Push 인증 오류 현상 remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Authent..
-
[Git] github push 오류 Git token <remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.>이것저것 2022. 2. 27. 15:27
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. Git Push 인증 오류 현상 remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Authent..
-
지오서버 RESTful(resource delete )이것저것 2021. 1. 15. 12:33
지오서버 restful API 중 리소스를 제거하는 것이 있다. 별거는 아니고 docs.geoserver.org/stable/en/api/#1.0.0/resource.yaml GeoServer API Docs docs.geoserver.org 해당 API 있는 곳이다 . 해당 명령을 수행하는데 /resource delete 요청을 하면 다 지워버린다. 리소스 가 다 날라가게된다. 그 후 실행하면(도커로 볼륨을 잡앗을경우 ) 지오서버에 접속하면 404 에러가 발생한다. /reload post 명령을 수행하면 어느정도 기본 설정값으로 올라오는데 그 중에서 user_projections 폴더만 안 올라온다. 결론 ) 리소스에서 딜리트 요청을할 때 user_projections 를 빼고 지우자....