
We've been adding a lot of great features to OpenShift lately but we've also been working on some cool demos behind the scenes. The OpenShift operations team loves this cloud stuff and we love pushing it to its limits. We've also got a few gamers on hand, so with that in mind we worked to get quake2-gwt up and running and hosted on OpenShift. This version of Quake 2 runs in your web browser.
This is one of those ah-hah moments for some people who haven't seen much HTML5 content before. Everything in the demo is running either on OpenShift or in your browser.
Let's get started!
To get started the first thing you need is to get an OpenShift account at http://openshift.redhat.com/.

We've been adding a lot of great features to OpenShift lately but we've also been working on some cool demos behind the scenes. The OpenShift operations team loves this cloud stuff and we love pushing it to its limits. We've also got a few gamers on hand, so with that in mind we worked to get quake2-gwt up and running and hosted on OpenShift. This version of Quake 2 runs in your web browser.
This is one of those ah-hah moments for some people who haven't seen much HTML5 content before. Everything in the demo is running either on OpenShift or in your browser.
Let's get started!
To get started the first thing you need is to get an OpenShift account at http://openshift.redhat.com/. Then create a jbossas-7 app either in the web interface or via the command-line tools:
$ rhc app create quake2 jbossas-7
This will have created a simple "hello-world" jbossas-7 application. These next steps will override that repo with the quake2 quickstart repo that has already been prepared.
$ cd quake2
$ git remote add upstream -m master \
git://github.com/wshearn/openshift-quickstart-quake2.git
$ git pull -s recursive -X theirs upstream master
Last to do is a push:
$ git push
After that, all the source code and build requirements are uploaded to OpenShift and built there. One problem we ran into is that ogg and lame are not installed by default and since quake is more fun with sound, we needed to add them. So, in our build script we download the lame source and install it, if you watch the git push closely you'll see those steps happen in realtime.
From there it's a matter of compiling our war and deploying it in the JBoss container. This is a great demo to get you thinking differently about what a web application can be. It's also fun to watch the game start-up as it downloads the different texture packs it needs.
Troubleshooting
If you're having problems getting Quake2 to load in your browser make sure you have webgl enabled and the latest version of Chrome or Firefox, on a desktop that has 3d acceleration enabled we've seen up to 90fps, not bad for a webpage! If your browser is crashing try disabling the sound bits and re-pushing, not all browsers deal with the sound correctly. You can edit the .openshift/action_hooks/build script and comment out the first block. git commit, then git push.
Alternatively, try downloading the latest version of Firefox:
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
Then browse to about:config, search for webgl and set webgl.force-enabled
to true.
For more info on the Quake II GWT port take a look at
http://code.google.com/p/quake2-gwt-port/
What's Next?
- Sign up for OpenShift Online
- Interested in a private Platform As a Service (PaaS)? Register for
an evaluation of OpenShift Enterprise - Need Help? Post your questions in the forums
- Follow us on Twitter
저자 소개
Mike McGrath is vice president, Core Platforms, at Red Hat where he leads the development of Red Hat Enterprise Linux and related platforms.
채널별 검색
오토메이션
기술, 팀, 인프라를 위한 IT 자동화 최신 동향
인공지능
고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트
오픈 하이브리드 클라우드
하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요
보안
환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보
엣지 컴퓨팅
엣지에서의 운영을 단순화하는 플랫폼 업데이트
인프라
세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보
애플리케이션
복잡한 애플리케이션에 대한 솔루션 더 보기
오리지널 쇼
엔터프라이즈 기술 분야의 제작자와 리더가 전하는 흥미로운 스토리
제품
- Red Hat Enterprise Linux
- Red Hat OpenShift Enterprise
- Red Hat Ansible Automation Platform
- 클라우드 서비스
- 모든 제품 보기
툴
체험, 구매 & 영업
커뮤니케이션
Red Hat 소개
Red Hat은 Linux, 클라우드, 컨테이너, 쿠버네티스 등을 포함한 글로벌 엔터프라이즈 오픈소스 솔루션 공급업체입니다. Red Hat은 코어 데이터센터에서 네트워크 엣지에 이르기까지 다양한 플랫폼과 환경에서 기업의 업무 편의성을 높여 주는 강화된 기능의 솔루션을 제공합니다.