Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
cota-infra
Commits
12b236b8
Commit
12b236b8
authored
Oct 19, 2025
by
Abhishek
Browse files
prebaked dta file added
parent
9c56e520
Pipeline
#12310
failed with stage
Changes
1
Pipelines
7
Show whitespace changes
Inline
Side-by-side
Dockerfile.dta
0 → 100644
View file @
12b236b8
# 🧩 Base image (stable Moodle environment)
FROM hftstuttgart/cotaproject_moodle:base
# 👤 Switch to root to install plugin and dependencies
USER root
# Set working directory inside container
WORKDIR /var/www/html
# 🗂️ Copy automation setup and environment scripts
COPY ./script_step1.sh /usr/local/bin/script_step1.sh
COPY ./moodle_env.sh /usr/local/bin/moodle_env.sh
# Give execution permissions
RUN chmod +x /usr/local/bin/script_step1.sh /usr/local/bin/moodle_env.sh
# 🧠 Keep a record of the plugin commit hash (to avoid unnecessary re-clones)
# This file will be used by script_step1.sh to skip cloning if plugin hasn't changed
COPY .last_dta_commit /usr/local/bin/.last_dta_commit
# 🔧 Run plugin installation logic
RUN /usr/local/bin/script_step1.sh
# 🧹 Clean up cache (optional)
RUN rm -rf /var/lib/apt/lists/* /tmp/*
# 👤 Switch back to the web server user for runtime
USER www-data
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment