This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from sleshchenko/moreDevfiles
Add samples to existing devfiles
- Loading branch information
Showing
9 changed files
with
168 additions
and
5 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
apiVersion: 1.0.0 | ||
metadata: | ||
name: python-django | ||
projects: | ||
- | ||
name: django-realworld-example-app | ||
source: | ||
type: git | ||
location: "https://github.com/gothinkster/django-realworld-example-app" | ||
components: | ||
- | ||
type: chePlugin | ||
id: ms-python/python/latest | ||
memoryLimit: 512Mi | ||
- | ||
type: dockerimage | ||
alias: python | ||
image: centos/python-36-centos7:1 | ||
command: ['sleep'] | ||
args: ['infinity'] | ||
env: | ||
- name: HOME | ||
value: /home/user | ||
- name: PS1 | ||
value: $(echo ${0})\\$ | ||
memoryLimit: 512Mi | ||
endpoints: | ||
- name: 'django' | ||
port: 7000 | ||
mountSources: true | ||
commands: | ||
- | ||
name: install requirements | ||
actions: | ||
- | ||
type: exec | ||
component: python | ||
command: cd ${CHE_PROJECTS_ROOT}/django-realworld-example-app && pip install -r requirements.txt | ||
- | ||
name: migrate | ||
actions: | ||
- | ||
type: exec | ||
component: python | ||
command: cd ${CHE_PROJECTS_ROOT}/django-realworld-example-app && python manage.py migrate | ||
- | ||
name: patch resources | ||
actions: | ||
- | ||
type: exec | ||
component: python | ||
command: cd ${CHE_PROJECTS_ROOT}/django-realworld-example-app && sed -i "s/ALLOWED_HOSTS = \[\]/ALLOWED_HOSTS = \['*'\]/g" conduit/settings.py | ||
- | ||
name: run server | ||
actions: | ||
- | ||
type: exec | ||
component: python | ||
command: cd ${CHE_PROJECTS_ROOT}/django-realworld-example-app && python manage.py runserver 0.0.0.0:7000 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
displayName: Python with Theia IDE | ||
description: Default stack with Python 3.7 and Theia IDE adapted to work with Django | ||
tags: ["Theia", "Debian", "Python", "pip"] | ||
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg | ||
globalMemoryLimit: 1686Mi |
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