Last active
August 12, 2019 07:41
-
-
Save mmorhun/5481e272464f73ae93b9cc9d0a3cf074 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: 1.0.0 | |
metadata: | |
name: eduke32 | |
components: | |
- type: cheEditor | |
id: eclipse/che-theia/latest | |
- type: chePlugin | |
id: eclipse/che-machine-exec-plugin/latest | |
- alias: eduke32-build | |
type: dockerimage | |
image: mm4eche/eduke32-build | |
mountSources: true | |
memoryLimit: 256M | |
- alias: eduke32-run | |
type: dockerimage | |
image: mm4eche/eduke32-run | |
env: | |
- name: RESOLUTION | |
value: 800x600x16 | |
endpoints: | |
- name: desktop | |
port: 6080 | |
attributes: | |
protocol: http | |
public: 'true' | |
mountSources: true | |
memoryLimit: 512M | |
commands: | |
- name: clone eduke32 | |
actions: | |
- workdir: /projects | |
type: exec | |
command: 'git svn clone -r HEAD https://svn.eduke32.com/eduke32/' | |
component: eduke32-build | |
- name: build eduke32 | |
actions: | |
- workdir: /projects/eduke32/ | |
type: exec | |
command: make | |
component: eduke32-build | |
- name: get shareware resources | |
actions: | |
- type: exec | |
command: > | |
curl 'http://hendricks266.duke4.net/files/3dduke13_data.7z' --compressed --silent -o /tmp/duke3d-shareware.7z && | |
7za e /tmp/duke3d-shareware.7z -o/projects/eduke32-resources && | |
rm -f /tmp/duke3d-shareware.7z | |
component: eduke32-run | |
- name: copy binaries into resources directory | |
actions: | |
- type: exec | |
command: > | |
cp eduke32 /projects/eduke32-resources/ && | |
cp mapster32 /projects/eduke32-resources/ | |
component: eduke32-run | |
workdir: /projects/eduke32 | |
- name: run eduke32 | |
actions: | |
- type: exec | |
command: ./eduke32 | |
component: eduke32-run | |
workdir: /projects/eduke32-resources |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment