gitlab
-
Gitlab 도커 구동PMS/Gitlab 2024. 6. 25. 16:05
gitlab 자체는 도커에 공식적으로 이미지를 지원한다[ https://hub.docker.com/r/gitlab/gitlab-ce ]Cli docker pull gitlab/gitlab-ce:15.4.2-ce.0 # 이미지를당겨온다.export GITLAB_HOME=/srv/gitlab # 환경변수 등록docker run --detach \--hostname gitlab.example.com \--publish 443:443 --publish 80:80 --publish 22:22 \--name gitlab \--restart always \--volume $GITLAB_HOME/config:/etc/gitlab \--volume $GITLAB_HOME/logs:/var/log/gitlab \--vo..
-
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..