AWS CodeCommit The requsted URL returned error 403

https://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting-ch.html [credential] helper = helper = !aws --profile CodeCommitProfile codecommit credential-helper $@ UseHttpPath = true 이렇게 비어있는 Helper 설정을 넣어서 해결 했는데 이게 해결이 정확히 된 건지 모르겠다.

0 Comments

python logging timezone 변경 하기

시스템 시간은 UST인데 Python 프로그램에서만 timezone을 변경하여 log를 출력할 일이 있습니다. 시스템 시간 변경 시 영향을 주는 곳이 많기 때문에 특정 프로그램 사용에만 timezone 변경하려는 의도였는데요. 간단하게 바꾸는 방법은 찾지…

0 Comments

Gitlab CI/CD 설정과 .gitlab-ci.yml 작성 step 2

지난 글에 이어 Gitlab CI/CD 활용 방법을 포스팅 하겠습니다. https://vlee.kr/5033 지난 글에서는 Gitlab에 구성된 gitlab-runner를 이용해서 간단한 script 동작을 수행해보았습니다. 여러 stage에 걸쳐 파이프라인이 동작하는 걸 확인했는데요. 이번 포스트에서는 개발하면서…

0 Comments

Gitlab CI/CD 설정과 .gitlab-ci.yml 작성

Gitlab Registry 설정 gitlab registry는 build한 docker image를 업로드하기 위한 저장소입니다. 기본 Gitlab 패키지에 포함되어 있어 별도의 설치는 필요 없으나 본인 웹서버 환경에 맞게 설정이 필요합니다. 저는 Nginx를 웹서버로 쓰고…

0 Comments

Gitlab runner 설치와 실행 방법(with Ubuntu)

다운로드 아래 명령을 이용해서 다운로드 할 것인데 ${arch} 부분을 본인 환경에 맞게 수정해주어야 한다. 필자의 경우 amd64이므로 amd64를 입력했다. curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_${arch}.deb" curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_amd64.deb" 설치 다운로드가 완료되면 gitlab-runner_amd64.deb 파일이…

0 Comments

gitlab registry push unknown blob 에러

gitlab의 registry에 빌드한 docker image를 push하려는데 아래와 같은 오류가 발생했다. $ docker push registry.example.com/test/image Using default tag: latest The push refers to repository [registry.example.com/test/image] 68062ef20672: Pushing 32.91MB/32.91MB c1be1566dcab: Pushing 87.04kB…

0 Comments

FastAPI 비동기 API를 pytest로 테스트 하기

poetry로 Python 프로젝트를 세팅하고 FastAPI의 비동기 API를 pytest로 테스트 해보겠습니다. 보통 Database transaction이 있는 동작의 경우 DB 연결을 비동기 형태로 해서 API를 구현하는 경우가 있을텐데 이런 경우 sync 형태로 pytest를…

0 Comments

Flutter 카카오 로그인 연동 예제

Flutter 기본 앱 만들기 먼저 Flutter 기본 앱을 생성합니다. 생성 방법은 Android Studio를 사용하는 경우와 Visual Studio Code를 사용하는 방법이 조금다른데요. 저는 VS Code로 주로 개발을 하기 때문에 VS Code로…

0 Comments

FastAPI + Celery 연동 예제(FastAPI with Celery example)

FastAPI에서 Celery를 사용하여 비동기 태스크를 실행하는 예제를 정리해보겠습니다. 참고로 localhost에 redis가 동작중이어야합니다. main.py from fastapi import FastAPI from celery_worker import divide app = FastAPI() @app.get("/") async def root(): return {"message":…

0 Comments