Commit 3e414f58 authored by Abhishek's avatar Abhishek
Browse files

unnecessary files deleted

parent c121b653
FROM debian:bookworm
# Install Apache, PHP, and other required extensions
RUN apt-get update && apt-get install -y \
apache2 \
php \
php-cli \
php-gd \
php-mysql \
php-intl \
php-curl \
php-xml \
php-xmlrpc \
php-soap \
php-zip \
php-mbstring \
unzip \
git \
&& rm -rf /var/lib/apt/lists/*
# Add custom PHP settings for Moodle
# We copy it to both the apache2 and cli config directories
COPY moodle.ini /etc/php/8.2/apache2/conf.d/99-moodle.ini
COPY moodle.ini /etc/php/8.2/cli/conf.d/99-moodle.ini
# Download and unpack Moodle
ARG MOODLE_VERSION=403
RUN rm -rf /var/www/html
RUN git clone --depth 1 --branch MOODLE_${MOODLE_VERSION}_STABLE https://github.com/moodle/moodle.git /var/www/html/
# Create the moodledata directory
RUN mkdir /var/www/moodledata && chown -R www-data:www-data /var/www/moodledata
# Set correct permissions
WORKDIR /var/www/html
RUN chown -R www-data:www-data /var/www/html
# Copy a startup script
COPY --chown=root:root docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["apache2ctl", "-D", "FOREGROUND"]
version: '3.8'
services:
db:
image: mariadb:10.6
container_name: moodle-db-official
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- db_data:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD=verysecretpassword
- MARIADB_DATABASE=moodle
- MARIADB_USER=moodleuser
- MARIADB_PASSWORD=moodlepassword
restart: unless-stopped
web:
build: . # This tells it to use the Dockerfile in this directory
container_name: moodle-web-official
volumes:
# Mount our local plugin for easy installation
- ./dta.zip:/tmp/dta.zip
# Mount the moodledata directory as a named volume
- moodledata:/var/www/moodledata
ports:
- "8080:80"
depends_on:
- db
restart: unless-stopped
backend:
container_name: backend
image: hftstuttgart/cota-backend:latest
user: "${EUSER}:${EGID}"
ports: # Add this section
- "8081:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- '/tmp/dta-tests:/tmp/dta-tests'
restart: unless-stopped
# This service can be reached by the 'web' container at http://backend:[port]
cache:
container_name: cachedta
image: nginx:alpine
ports:
- '82:8080'
volumes:
- './conf:/etc/nginx/conf.d' # Nginx configs go here
depends_on:
- backend
restart: unless-stopped
volumes:
db_data:
moodledata:
#!/bin/bash
set -e
# Apache gets grumpy about PID files pre-existing
rm -f /var/run/apache2/apache2.pid
exec "$@"
DEBUG: Data object being sent to add_moduleinfo():
stdClass Object
(
[course] => 4
[modulename] => assign
[name] => Fully Automated DTA Assignment
[intro] => This assignment was created by the final automation script.
[introformat] => 1
[section] => 1
[visible] => 1
[assignsubmission_dta_enabled] => 1
[assignsubmission_file_enabled] => 1
[dta] => 1
[tests_draft_dta] => 121728303
[assignsubmission_file_maxsizebytes] => 0
[cmidnumber] =>
[assignsubmission_file_maxfiles] => 20
[assignsubmission_onlinetext_enabled] => 0
[submissiondrafts] => 0
[requiresubmissionstatement] => 0
[requireallteammemberssubmit] => 0
[teamsubmission] => 0
[sendnotifications] => 1
[sendlatenotifications] => 0
[sendstudentnotifications] => 1
[grade] => 100
[blindmarking] => 0
[markingworkflow] => 0
[markingallocation] => 0
[attemptreopenmethod] => none
[allowsubmissionsfromdate] => 1753175949
[duedate] => 1753780749
[cutoffdate] => 0
[gradingduedate] => 0
[module] => 1
[timemodified] => 1753175949
[alwaysshowdescription] => 0
[completionsubmit] => 0
)
DEBUG: Returned object from add_moduleinfo():
stdClass Object
(
[course] => 4
[modulename] => assign
[name] => Fully Automated DTA Assignment
[intro] => This assignment was created by the final automation script.
[introformat] => 1
[section] => 1
[visible] => 1
[assignsubmission_dta_enabled] => 1
[assignsubmission_file_enabled] => 1
[dta] => 1
[tests_draft_dta] => 121728303
[assignsubmission_file_maxsizebytes] => 0
[cmidnumber] =>
[assignsubmission_file_maxfiles] => 20
[assignsubmission_onlinetext_enabled] => 0
[submissiondrafts] => 0
[requiresubmissionstatement] => 0
[requireallteammemberssubmit] => 0
[teamsubmission] => 0
[sendnotifications] => 1
[sendlatenotifications] => 0
[sendstudentnotifications] => 1
[grade] => 100
[blindmarking] => 0
[markingworkflow] => 0
[markingallocation] => 0
[attemptreopenmethod] => none
[allowsubmissionsfromdate] => 1753175949
[duedate] => 1753780749
[cutoffdate] => 0
[gradingduedate] => 0
[module] => 1
[timemodified] => 1753175949
[alwaysshowdescription] => 0
[completionsubmit] => 0
[instance] => 3
[coursemodule] => 6
[groupingid] => 0
[completion] => 0
[completionview] => 0
[completionexpected] => 0
[completionpassgrade] => 0
[completiongradeitemnumber] =>
[conditiongradegroup] => Array
(
)
[conditionfieldgroup] => Array
(
)
[visibleoncoursepage] => 1
[downloadcontent] => 1
[groupmode] => 0
[beforemod] =>
[gradingman] => grading_manager Object
(
[context:protected] => core\context\module Object
(
[_id:protected] => 19
[_contextlevel:protected] => 70
[_instanceid:protected] => 6
[_path:protected] => /1/3/18/19
[_depth:protected] => 4
[_locked:protected] => 0
)
[component:protected] => mod_assign
[area:protected] =>
[areacache:grading_manager:private] =>
)
[showgradingmanagement] =>
)
3
worker_processes 5;
worker_rlimit_nofile 8192;
events {
worker_connections 4096;
}
http {
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
server_names_hash_bucket_size 128;
proxy_cache_path /opt/cache levels=1:2 keys_zone=dta_cache:10m max_size=10g inactive=60m use_temp_path=off;
server {
listen 8080;
location /v1/task {
proxy_cache dta_cache;
proxy_cache_background_update on;
proxy_cache_lock on;
proxy_cache_key "$scheme$request_uri";
proxy_cache_valid 200 302 1d;
proxy_cache_methods GET HEAD POST;
proxy_pass http://backendcomposedta:8080/v1/task;
}
location /v1/unittest {
proxy_pass http://backendcomposedta:8080/v1/unittest;
}
}
}
dta::https://transfer.hft-stuttgart.de/gitlab/cota/examples/cota-submission-calc-jdk.git::none::none::/
dta::https://transfer.hft-stuttgart.de/gitlab/cota/examples/cota-test-course-jdk.git::none::none::/topic02/exercise04::cota-runner-jdk21-junit5
\ No newline at end of file
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment