Skip to content

Commit

Permalink
run tutor on raspberry pi 4
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Aug 14, 2020
1 parent 398e1b9 commit 7b2a034
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions tutor/templates/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ ANDROID_RELEASE_STORE_PASSWORD: "android store password"
ANDROID_RELEASE_KEY_PASSWORD: "android release key password"
ANDROID_RELEASE_KEY_ALIAS: "android release key alias"
DEV_PROJECT_NAME: "tutor_dev"
DOCKER_REGISTRY: "docker.io/"
DOCKER_IMAGE_OPENEDX: "{{ DOCKER_REGISTRY }}overhangio/openedx:{{ TUTOR_VERSION }}"
DOCKER_IMAGE_OPENEDX_DEV: "{{ DOCKER_REGISTRY }}overhangio/openedx-dev:{{ TUTOR_VERSION }}"
DOCKER_IMAGE_ANDROID: "{{ DOCKER_REGISTRY }}overhangio/openedx-android:{{ TUTOR_VERSION }}"
DOCKER_IMAGE_FORUM: "{{ DOCKER_REGISTRY }}overhangio/openedx-forum:{{ TUTOR_VERSION }}"
DOCKER_IMAGE_MEMCACHED: "{{ DOCKER_REGISTRY }}memcached:1.4.38"
DOCKER_IMAGE_MONGODB: "{{ DOCKER_REGISTRY }}mongo:3.6.18"
DOCKER_IMAGE_MYSQL: "{{ DOCKER_REGISTRY }}mysql:5.6.36"
DOCKER_IMAGE_ELASTICSEARCH: "{{ DOCKER_REGISTRY }}elasticsearch:1.5.2"
DOCKER_REGISTRY: "hirotochigi/"
DOCKER_IMAGE_OPENEDX: "{{ DOCKER_REGISTRY }}openedx:10.0.10"
DOCKER_IMAGE_OPENEDX_DEV: "{{ DOCKER_REGISTRY }}openedx-dev:{{ TUTOR_VERSION }}"
DOCKER_IMAGE_ANDROID: "{{ DOCKER_REGISTRY }}openedx-android:{{ TUTOR_VERSION }}"
DOCKER_IMAGE_FORUM: "{{ DOCKER_REGISTRY }}openedx-forum:10.0.11"
DOCKER_IMAGE_MEMCACHED: "{{ DOCKER_REGISTRY }}rpi-memcached:1.4.38"
DOCKER_IMAGE_MONGODB: "{{ DOCKER_REGISTRY }}rpi-mongo:3.2.22"
DOCKER_IMAGE_MYSQL: "{{ DOCKER_REGISTRY }}rpi-mariadb:5.6.36"
DOCKER_IMAGE_ELASTICSEARCH: "{{ DOCKER_REGISTRY }}rpi-elasticsearch:1.5.2"
DOCKER_IMAGE_NGINX: "{{ DOCKER_REGISTRY }}nginx:1.13"
DOCKER_IMAGE_RABBITMQ: "{{ DOCKER_REGISTRY }}rabbitmq:3.6.10-management-alpine"
DOCKER_IMAGE_SMTP: "{{ DOCKER_REGISTRY }}namshi/smtp:latest"
DOCKER_IMAGE_SMTP: "{{ DOCKER_REGISTRY }}rpi-smtp:latest"
LOCAL_PROJECT_NAME: "tutor_local"
ELASTICSEARCH_HOST: "elasticsearch"
ELASTICSEARCH_PORT: 9200
Expand Down
6 changes: 3 additions & 3 deletions tutor/templates/local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
mongodb:
image: {{ DOCKER_IMAGE_MONGODB }}
# Use WiredTiger in all environments, just like at edx.org
command: mongod --smallfiles --nojournal --storageEngine wiredTiger
command: mongod --smallfiles --nojournal
restart: unless-stopped
volumes:
- ../../data/mongodb:/data/db
Expand All @@ -33,7 +33,7 @@ services:
{% if ACTIVATE_ELASTICSEARCH %}
elasticsearch:
image: {{ DOCKER_IMAGE_ELASTICSEARCH }}
command: ["elasticsearch", "-Xms{{ ELASTICSEARCH_HEAP_SIZE }}", "-Xmx{{ ELASTICSEARCH_HEAP_SIZE }}", "--cluster.name=openedx", "--bootstrap.mlockall=true"]
command: ["/elasticsearch/bin/elasticsearch", "-Xms{{ ELASTICSEARCH_HEAP_SIZE }}", "-Xmx{{ ELASTICSEARCH_HEAP_SIZE }}", "--cluster.name=openedx", "--bootstrap.mlockall=true"]
ulimits:
memlock:
soft: -1
Expand Down Expand Up @@ -163,4 +163,4 @@ services:
- cms
{% endif %}

{{ patch("local-docker-compose-services")|indent(2) }}
{{ patch("local-docker-compose-services")|indent(2) }}

0 comments on commit 7b2a034

Please sign in to comment.