SaevOps
[OpenShift] 실습 환경 구축 본문
반응형
0. 실습 환경 구축
0.1. 실습 환경 구축
[student@workstation ~]$ lab-configure
· Enter the GitHub account name: yourgituser 1
Verifying GitHub account name: yourgituser
· Enter the Quay.io account name: yourquayuser 2
Verifying Quay.io account name: yourquayuser
1. 개인 Github 계정에 있는 교육 과정의 샘플 어플리케이션 workstation으로 복제
1.1. 샘플 레포지토리 복제
[student@workstation ~]$ git clone https://github.com/[yourgituser]/DO180-apps
[student@workstation ~]$ git clone https://github.com/saehyen/DO180-apps
1.2. Git 레포지토리인지 확인
[student@workstation ~]$ cd DO180-apps
[student@workstation DO180-apps]$ git status
1.3. 새 분기를 생성하여 새 개인용 액세스 토큰 테스트
[student@workstation DO180-apps]$ git checkout -b testbranch
1.4. Test 파일 변경 후 git 커밋
[student@workstation DO180-apps]$ echo "DO180" > TEST
[student@workstation DO180-apps]$ git add .
[student@workstation DO180-apps]$ git commit -m "DO180"
1.5. 최근 생성된 분기로 변경 사항 내보내기
[student@workstation DO180-apps]$ git push --set-upstream origin testbranch
1.6. 기타 변경 사항을 수행하고 커밋한 다음 내보내기
[student@workstation DO180-apps]$ echo "OCP4" > TEST
[student@workstation DO180-apps]$ git add .
[student@workstation DO180-apps]$ git commit -m "OCP4"
[student@workstation DO180-apps]$ git push
1.7. 이 교육 과정의 샘플 어플리케이션이 포함되어 있는지 확인하고, 사용자의 홈 폴더로 다시 변경
[student@workstation DO180-apps]$ head README.md
# DO180-apps
...output omitted...
[student@workstation DO180-apps]$ cd ~
[student@workstation ~]$
반응형
'클라우드 > OpenShift' 카테고리의 다른 글
[OpenShift] S2I(Source to Image)로 어플리케이션 생성 (2) | 2023.06.07 |
---|---|
[OpenShift] 사용자 지정 Apache 컨테이너 이미지 생성 (0) | 2023.06.01 |
[OpenShift] 컨테이너 이미지 관리 (0) | 2023.05.31 |
[OpenShift] 네트워크 포트 매핑 (0) | 2023.05.30 |
[OpenShift] 컨테이너에 영구저장장치 연결 (0) | 2023.05.26 |
Comments