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.
Signed-off-by: Sergii Leshchenko <[email protected]>
- Loading branch information
1 parent
1a405d2
commit 22f1b7c
Showing
3 changed files
with
80 additions
and
3 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
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