This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.6.4.2. 워크플로우
위의 템플릿 URL 중 하나의 git clone
을 로컬로 실행합니다. 애플리케이션 소스 코드를 추가하고 커밋하고 GitHub 리포지토리를 푸시한 다음 위에 나열된 템플릿 중 하나에서 v3 빠른 시작 애플리케이션을 시작합니다.
- 애플리케이션용 GitHub 리포지토리를 생성합니다.
빠른 시작 템플릿을 복제하고 GitHub 리포지토리를 원격으로 추가합니다.
git clone <one-of-the-template-URLs-listed-above> cd <your local git repository> git remote add upstream <https://github.com/<git-id>/<quickstart-repo>.git> git push -u upstream master
$ git clone <one-of-the-template-URLs-listed-above> $ cd <your local git repository> $ git remote add upstream <https://github.com/<git-id>/<quickstart-repo>.git> $ git push -u upstream master
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 소스 코드를 GitHub에 커밋하고 내보냅니다.
cd <your local repository> git commit -am “added code for my app” git push origin master
$ cd <your local repository> $ git commit -am “added code for my app” $ git push origin master
Copy to Clipboard Copied! Toggle word wrap Toggle overflow v3에서 새 애플리케이션을 생성합니다.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- MongoDB에만 적용됩니다.
이제 포드 2개, 웹 프레임워크 포드 및 데이터베이스 포드가 실행 중이어야 합니다. 웹 프레임워크 포드 환경은 데이터베이스 포드 환경과 일치해야 합니다.
oc set env pod/<pod_name> --list:로 환경 변수를 나열
할 수 있습니다.-
DATABASE_NAME
은 이제 <DB_SERVICE>_DATABASE
-
DATABASE_USER
이제 <DB_SERVICE>_USER
-
DATABASE_PASSWORD
이제 <DB_SERVICE>_PASSWORD
DATABASE_ADMIN_PASSWORD
는 이제MONGODB_ADMIN_PASSWORD
(MongoDB에만 적용 가능)SOURCE_REPOSITORY_URL
이 지정되지 않은 경우 템플릿은 위의 템플릿 URL(https://github.com/openshift/<quickstart>-ex)을 소스 리포지토리로 사용하고 hello-welcome 애플리케이션이 시작됩니다.
-
데이터베이스를 마이그레이션하는 경우 데이터베이스를 덤프 파일로 내보내고 새 v3 데이터베이스 Pod의 데이터베이스를 복원합니다. 데이터베이스 포드가 이미 시작되어 실행 중이므로 데이터베이스 애플리케이션 데이터베이스 애플리케이션에 설명된 단계를 참조하여
oc new-app
단계를 건너뜁니다.