Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
temp: add auto-generated devspace configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dianakhuang committed Jan 16, 2024
1 parent 538b59a commit a51c7f0
Show file tree
Hide file tree
Showing 21 changed files with 2,636 additions and 0 deletions.
80 changes: 80 additions & 0 deletions devspace-analyticsapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
version: v2beta1
name: analyticsapi

# This is a list of `deployments` that DevSpace can create for this project
deployments:
analyticsapi:
# This deployment uses `helm` but you can also define `kubectl` deployments or kustomizations
helm:
# Under `values` we can define the values for this Helm chart used during `helm install/upgrade`
# You may also use `valuesFiles` to load values from files, e.g. valuesFiles: ["values.yaml"]
values:
containers:
- args:
- bash
- -c
- source /edx/app/analytics_api/analytics_api_env && while true; do python /edx/app/analytics_api/analytics_api/manage.py runserver 0.0.0.0:19001 --settings analyticsdataserver.settings.devstack; sleep 2; done
command:
- ""
env:
- name: DB_HOST
value: edx.devstack.mysql80
- name: DB_PASSWORD
value: password
- name: DB_PORT
value: "3306"
- name: DB_USER
value: analytics001
- name: ELASTICSEARCH_LEARNERS_HOST
value: edx.devstack.elasticsearch710
image: edxops/analytics-api-dev:latest
name: edx-devstack-analyticsapi
volumeMounts:
- containerPath: /edx/var/analyticsapi
volume:
name: analyticsapi-1
shared: true
- containerPath: /edx/etc/analytics_api.yml
volume:
name: volume-1
readOnly: false
service:
ports:
- containerPort: 19001
port: 19001
protocol: TCP
volumes:
- name: analyticsapi-1
size: 5Gi
- emptyDir: {}
name: volume-1

# This is a list of `dev` containers that are based on the containers created by your deployments
dev:
analyticsapi:
labelSelector:
app.kubernetes.io/component: analyticsapi
command:
- ""
# Sync files between the local filesystem and the development container
sync:
- path: /configuration_files/analytics_api.yml:/edx/etc/analytics_api.yml
startContainer: true
# Forward the following ports to be able access your application via localhost
ports:
- port: "19001"
dependencies:
elasticsearch710:
path: devspace-elasticsearch710.yaml
mysql57:
path: devspace-mysql57.yaml
mysql80:
path: devspace-mysql80.yaml

# Define dependencies to other projects with a devspace.yaml
# dependencies:
# api:
# git: https://... # Git-based dependencies
# tag: v1.0.0
# ui:
# path: ./ui # Path-based dependencies (for monorepos)
90 changes: 90 additions & 0 deletions devspace-cms.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
version: v2beta1
name: cms

# This is a list of `deployments` that DevSpace can create for this project
deployments:
cms:
# This deployment uses `helm` but you can also define `kubectl` deployments or kustomizations
helm:
# Under `values` we can define the values for this Helm chart used during `helm install/upgrade`
# You may also use `valuesFiles` to load values from files, e.g. valuesFiles: ["values.yaml"]
values:
containers:
- args:
- bash
- -c
- source /edx/app/edxapp/edxapp_env && while true; do python /edx/app/edxapp/edx-platform/manage.py cms runserver 0.0.0.0:18010 --settings devstack_docker; sleep 2; done
command:
- ""
env:
- name: CMS_CFG
value: /edx/etc/studio.yml
- name: DJANGO_WATCHMAN_TIMEOUT
value: "30"
- name: EDXAPP_TEST_MONGO_HOST
value: edx.devstack.mongo
- name: FRONTEND_TEST_SERVER_CMS_PORT
value: "18131"
- name: FRONTEND_TEST_SERVER_HOSTNAME
value: edx.devstack.cms
- name: FRONTEND_TEST_SERVER_LMS_PORT
value: "18103"
- name: LMS_CFG
value: /edx/etc/lms.yml
- name: NO_PYTHON_UNINSTALL
value: "1"
- name: PATH
value: '/edx/app/edxapp/venvs/edxapp/bin:/edx/app/edxapp/nodeenv/bin:/edx/app/edxapp/edx-platform/node_modules/.bin:/edx/app/edxapp/edx-platform/bin:'
- name: SERVICE_VARIANT
value: cms
- name: VIRTUAL_ENV
value: /edx/app/edxapp/venvs/edxapp
image: openedx/lms-dev:latest
name: edx-devstack-cms
volumeMounts:
- containerPath: /edx/var/edxapp/staticfiles
volume:
name: edxapp_cms_assets
shared: true
service:
ports:
- containerPort: 18010
port: 18010
protocol: TCP
- containerPort: 19877
port: 19877
protocol: TCP
volumes:
- name: edxapp_cms_assets
size: 5Gi

# This is a list of `dev` containers that are based on the containers created by your deployments
dev:
cms:
labelSelector:
app.kubernetes.io/component: cms
# Forward the following ports to be able access your application via localhost
ports:
- port: "18010"
- port: "19877"
dependencies:
elasticsearch710:
path: devspace-elasticsearch710.yaml
lms:
path: devspace-lms.yaml
memcached:
path: devspace-memcached.yaml
mongo:
path: devspace-mongo.yaml
mysql57:
path: devspace-mysql57.yaml
mysql80:
path: devspace-mysql80.yaml

# Define dependencies to other projects with a devspace.yaml
# dependencies:
# api:
# git: https://... # Git-based dependencies
# tag: v1.0.0
# ui:
# path: ./ui # Path-based dependencies (for monorepos)
Loading

0 comments on commit a51c7f0

Please sign in to comment.