Skip to content

Commit 5d5ce20

Browse files
committed
feat: upgrade to olive
1 parent 0727396 commit 5d5ce20

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Forum plugin for `Tutor <https://docs.tutor.overhang.io>`__
22
============================================================
33

4-
This plugin adds `discussion forums <https://github.com/edx/cs_comments_service>`__ to your `Open edX <https://open.edx.org/>`__ platform, such that students can have conversations about the courses they are following right in your LMS.
4+
This plugin adds `discussion forums <https://github.com/openedx/cs_comments_service>`__ to your `Open edX <https://openedx.org/>`__ platform, such that students can have conversations about the courses they are following right in your LMS.
55

66
.. image:: https://overhang.io/static/catalog/screenshots/forum.png
77
:alt: Forum screenshot

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def load_about():
4040
packages=find_packages(exclude=["tests*"]),
4141
include_package_data=True,
4242
python_requires=">=3.6",
43-
install_requires=["tutor>=14.0.0,<15.0.0"],
43+
install_requires=["tutor>=14.0.0,<16.0.0"], #[TEMP] Accept 14 version for testing purpose
4444
entry_points={
4545
"tutor.plugin.v1": [
4646
"forum = tutorforum.plugin"

tutorforum/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "14.0.0"
1+
__version__ = "15.0.0"

tutorforum/templates/forum/build/forum/Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/ruby:2.5.7-slim-stretch
1+
FROM docker.io/ruby:3.0.4-slim-bullseye
22
MAINTAINER Overhang.IO <contact@overhang.io>
33

44
ENV DEBIAN_FRONTEND=noninteractive
@@ -24,14 +24,16 @@ ENV PATH :${PATH}
2424
USER app
2525

2626
# Install rake and bundler
27-
ENV PATH "/app/bin:/app/.gem/ruby/2.5.0/bin:$PATH"
27+
ENV PATH "/app/bin:/app/.gem/ruby/3.0.0/bin:$PATH"
2828
RUN gem install --user-install bundler --version 1.17.3
29-
RUN gem install --user-install rake --version 13.0.1
29+
RUN gem install --user-install rake --version 12.3.3
3030

3131
# Install forum
32-
RUN git clone https://github.com/edx/cs_comments_service.git --branch {{ OPENEDX_COMMON_VERSION }} --depth 1 /app/cs_comments_service
32+
# [TEMP] Using kshitij/ruby3 branch until its merged and backported to Olive
33+
# Until as well this PR is merged: https://github.com/openedx/cs_comments_service/pull/395
34+
RUN git clone https://github.com/ghassanmas/cs_comments_service.git --branch timeout --depth 1 /app/cs_comments_service
3335
WORKDIR /app/cs_comments_service
34-
RUN bundle install --deployment
36+
RUN bundle install --deployment --gemfile=Gemfile3
3537

3638
ENTRYPOINT ["docker-entrypoint.sh"]
3739

@@ -44,5 +46,6 @@ ENV MONGOID_AUTH_MECH ""
4446
ENV MONGODB_HOST "mongodb"
4547
ENV MONGODB_PORT "27017"
4648
ENV MONGODB_DATABASE "cs_comments_service"
49+
ENV BUNDLE_GEMFILE Gemfile3
4750
EXPOSE 4567
4851
CMD ./bin/unicorn -c config/unicorn_tcp.rb -I '.'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
bundle exec rake search:initialize
2-
bundle exec rake search:rebuild_indices
1+
BUNDLE_GEMFILE=Gemfile3 bundle exec rake search:initialize
2+
BUNDLE_GEMFILE=Gemfile3 bundle exec rake search:rebuild_indices

0 commit comments

Comments
 (0)