반응형
Notice
Recent Posts
Recent Comments

04-30 10:49
관리 메뉴

SaevOps

[OpenShift] 실습 환경 구축 본문

클라우드/OpenShift

[OpenShift] 실습 환경 구축

세브웁스 2023. 6. 7. 16:44
반응형

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 ~]$
반응형
Comments