본문 바로가기
Tools

[IDE] eclipse che 설치 및 설정

by hs_seo 2018. 4. 19.

이클립스 쉐(che)는 클라우드 환경에 이클립스를 설정할 수 있게 도와주는 도구이다. 

다운로드는 다음의 위치에서 하면 된다. 



아마존 EC2에서 도커를 이용해 설치하고, 다음과 같이 설정한다. 


1. Start Che with Docker

    https://docs.docker.com/engine/installation/linux/centos/

    # yum update

    # sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'

    > [dockerrepo]

    > name=Docker Repository

    > baseurl=https://yum.dockerproject.org/repo/main/centos/7/

    > enabled=1

    > gpgcheck=1

    > gpgkey=https://yum.dockerproject.org/gpg

    > EOF

    # sudo yum install docker-engine

    # sudo systemctl enable docker.service

    # sudo systemctl start docker

    # curl -sL https://raw.githubusercontent.com/eclipse/che/master/che.sh > /usr/local/bin/che

    # cd /usr/local/bin/


    # export CHE_HOST_IP=[IP]

    # ./che start

    ($ che start / $ che stop / $ che restart / $ che info / $ che update)


    che.sh run -r:[IP]


2. 브라우져 접근 : http://[IP]:8080/



3. 오류 발생 : 

    Could not start workspace wksp-lwzm. Reason: Start of environment default failed. Error: Timeout reached. The Che server has been unable to verify that your workspace's agent has successfully booted. Either the workspace is unreachable, the agent had an error during startup, or your workspace is starting slowly. You can configure machine.ws_agent.max_start_time_ms in Che properties to increase the timeout.


    로그확인

    # docker logs -f che-server

    2016-10-12 09:32:24,408[kspaceManager-0]  [ERROR] [.c.a.a.s.w.WsAgentLauncherImpl 115]  - Fail pinging ws agent. Workspace ID:workspaceu3pw1zpv5j3aqusz. Url:http://[IP]:32927/wsagent/ext/. Timestamp:{}


 이 오류는 자신시 자신을 호출하기 때문에  SG Inbound에 자기 자신의 IP추가함 : TCP All ([IP]/32)

반응형