728x90

전체 글 74

WebDAV 파일서버에서 일반사용자 권한 폴더 사용하는 법

[배경] webdav 파일서버에서 git project를 주기적으로 sync 하고자 하는데`.git/FETCH_HEAD` 경로는 일반사용자가 아니라 Permission denied 에러가 발생함. WebDAV 디렉토리의 owner가 www-data가 아니어도 DAVFS2로 정상 마운트해서 사용할 수 있습니다.핵심은 Apache 프로세스(www-data)가 해당 파일/디렉토리에 접근할 수 있느냐 입니다.예를 들어:/var/webdav└── test.txtowner: myusergroup: myuser 상태라도drwxrwxr-x myuser www-data /var/webdav-rw-rw-r-- myuser www-data test.txt 처럼 www-data가 읽기/쓰기 권한을 가지고 있으면 WebDAV..

Jenkins 2026.06.12

MySQL dump 스케줄러 구현하기

MySQL RDB dump 스케줄러를 구현하기 위해 dump 저장하는 shell script를 작성하고 이 script를 Jenkins에서 주기적으로 실행하여 dump를 확보한다. - DB: MySQL Server Docker container- dump 방법: mysqldump 사용- dump 파일은 `SQL_BACKUP_PATH` 로 이동하고 해당 경로는 volume에 추가하여 Host에서 접근 가능하도록 한다. 1. Jenkins ConfigureDUMP_KEEP_DAY=3Build periodically: H 3 * * * 2. DB Configure - 백업용 User 사용DBA Privileges:FLUSH_TABLESBINLOG_ADMINSchema Privileges:백업할 DB에 한하여 ..

Linux 2026.03.27

[Ansible] Ansible Configuration file priority

Ansible Configuration file priority 낮은 순서부터 높은 순서로 (4-3-2-1) 정리한다. 제일 처음 ansible config file은 None 상태이다. 4. /etc/ansible/ansible.cfg typically provided, through packaged or system installations of Ansible (ex. sudo apt install ansible) 3. ~/.ansible.cfg (hidden file in user home dir) home dir에 hidden ansible.cfg 파일 생성하면 우선순위가 높기때문에 config file이 변경된다.2. ./ansible.cfg (ansible.cfg in current dir)~..

IaC/Ansible 2026.02.19

Jenkins Pipeline script from SCM으로 Gerrit groovy 파일 연동하는 법

Gerrit에 업로드한 Jenkinsfile(groovy 파일)을 Jenkins pipeline script로 사용하도록 셋업하면서 겪은 시행 착오를 정리합니다. 1) Jenkins에서는 Pipeline script from SCM 에서 SCM 항목에 Gerrit이 따로 없다. 따라서 Git을 설정하면 됨1. Repository: Gerrit SSH Repository URLssh://${GERRIT_USERNAME}@${GERRIT_SERVER}:${GERRIT_SSH_PORT}/${GERRIT_REPOSITORY_NAME}ex) ssh://jenkins@my-gerrit-server:29418/my-gerrit-project 2. Credentials: Gerrit SSH Key 또는 HTTP 계정e..

Jenkins 2025.11.21

[Docker] ubuntu 22.04 + python3.12 install

ubuntu20.04(기본 python3.8) 또는 ubuntu22.04 (기본 python3.10) 이미지를 베이스로 docker build 시,apt-get install python3.12 명령어로 python3.12 버전을 설치할 수 없다.ubuntu20.04 / 22.04 기본 저장소에 python3.12가 없기 때문이다.python3.12를 추가로 설치하려면, Deadsnakes PPA를 추가하면 된다.FROM ubuntu:20.04RUN apt-get update && apt-get install -y software-properties-common \ && add-apt-repository ppa:deadsnakes/ppa \ && apt-get update \ && apt..

Docker 2025.04.27

Git ssh Permission denied/scp Connection closed

1. Git(Gerrit) 서버에 ssh public key를 등록했는데 Permission denied 에러가 발생할 때thxxyj@personal-pc MINGW64 /my/workspace (my_branch)$ git pull thxxyj@my-gerrit-server: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. [해결] .ssh/config에 PubkeyAcceptedAlgorithms +ssh-rsa 추가 thxxyj@personal-pc MINGW64 /my/..

Git 2024.09.14
728x90