본문 바로가기
728x90

클라우드/gitlab4

gitlab pipeline gcp Gitlab 소스 Commit 01. gitlab pipeline > project 생성 > new project > (maven 소스 있을 때) 참고 01. gitlab pipeline > source clone > import Maven Projects (maven 소스 있을 때) 참고 Dockerfile 생성 .gitlab-ci.yml variables: DOCKER_DRIVER: overlay2 DOCKER_HOST: "0.0.0.0:2375" DOCKER_TLS_CERTDIR: "" image: docker:latest services: - docker:dind stages: - build - deploy - production docker-build: stage: build script: - .. 2021. 9. 6.
gitlab pipeline aws project 생성new project project 정보 입력 maven 소스가 있을 때 - New filepom.xml 파일 생성​source clone(https://gitlab.aws-**.**.com/bm/demo/awesome-shopping-cart-service)URI : https://gitlab.aws-**.**.com/bm/demo/awesome-shopping-cart-service.git Git Repositories > 마우스 우클릭 Clone a Repository 클릭 URI 입력 > User 정보 입력 후 Next > branch 선택 후 Next > FinishImport Maven Projects..(maven 소스가 있을 때.. 프로젝트 껍데기에 다운받은 소스를 프로젝.. 2021. 9. 5.
gitlab 설치 Gitlab-EE 설치 (https://about.gitlab.com/install/#ubuntu) apt-get update, upgrade sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates Gitlab-EE Omnibus 패키지 설치 curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash sudo apt-get install gitlab-ee itlab.rb 환경 설정(https://docs.gitlab.com/omnibus/settings/configuration.html) 환경 설정을 위한.. 2021. 9. 4.
Gitlab 서버 접속 AWS Bastion 서버 접속 Gitlab EC2 Instance에 접속하기 위해 PMS Bastion 서버에 먼저 접속한다(SSH / Putty 활용). Putty를 통한 Bastion 서버 접속 방법 : https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/putty.html Gitlab EC2 인스턴스 접속을 위해 AWS pem 파일을 Bastion 서버 내에 생성 - vi 를 통해 pem 파일 내용을 copy 하여 파일을 생성하거나 ftp를 통해 pem 파일을 Bastion 서버에 put Gitlab EC2 Private IP 확인 Bastion 서버에서 ssh 통해 Gitlab EC2 서버 접속 ssh -i > @ ex) ssh -i gitla.. 2021. 9. 3.
728x90
LIST