Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
RWTH-Engineering-Hydrology
moodle-docker
Commits
693d54e2
Verified
Commit
693d54e2
authored
7 years ago
by
Marcel Behrmann
Browse files
Options
Downloads
Patches
Plain Diff
PHP 7 Image
parent
ee343556
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
README.md
+1
-0
1 addition, 0 deletions
README.md
root/tmp/setup/php-extensions.sh
+2
-17
2 additions, 17 deletions
root/tmp/setup/php-extensions.sh
with
4 additions
and
18 deletions
Dockerfile
+
1
−
1
View file @
693d54e2
FROM
php:
5.6
-apache
FROM
php:
7.0
-apache
ADD
root/ /
RUN
chmod
777 /tmp
&&
chmod
+t /tmp
...
...
This diff is collapsed.
Click to expand it.
README.md
0 → 100644
+
1
−
0
View file @
693d54e2
Based on https://github.com/moodlehq/moodle-php-apache/ and changed to my needs.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
root/tmp/setup/php-extensions.sh
+
2
−
17
View file @
693d54e2
...
...
@@ -8,10 +8,11 @@ BUILD_PACKAGES="gettext libcurl4-openssl-dev libpq-dev libmysqlclient-dev liblda
libxml2-dev libicu-dev libfreetype6-dev libjpeg62-turbo-dev libmemcached-dev
\
zlib1g-dev libpng12-dev unixodbc-dev"
LIBS
=
"libaio1 libcurl3 libgss3 libicu52 libmysqlclient18 libpq5 libmemcached11 libmemcachedutil2 libldap-2.4-2 libxml2 libxslt1.1 unixodbc"
LIBS
=
"
locales
libaio1 libcurl3 libgss3 libicu52 libmysqlclient18 libpq5 libmemcached11 libmemcachedutil2 libldap-2.4-2 libxml2 libxslt1.1 unixodbc
libmcrypt-dev
"
apt-get update
apt-get
install
-y
--no-install-recommends
$BUILD_PACKAGES
$LIBS
unzip ghostscript locales apt-transport-https
echo
'Generating locales..'
echo
'en_US.UTF-8 UTF-8'
>
/etc/locale.gen
echo
'en_AU.UTF-8 UTF-8'
>>
/etc/locale.gen
...
...
@@ -34,22 +35,6 @@ docker-php-ext-install -j$(nproc) gd
docker-php-ext-configure ldap
--with-libdir
=
lib/x86_64-linux-gnu/
docker-php-ext-install
-j
$(
nproc
)
ldap
pecl
install
solr memcache redis mongodb igbinary apcu-4.0.11 memcached-2.2.0
docker-php-ext-enable solr memcache memcached redis mongodb apcu igbinary
echo
'apc.enable_cli = On'
>>
/usr/local/etc/php/conf.d/docker-php-ext-apcu.ini
echo
"Downloading freedts files"
curl ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.33.tar.gz
-o
/tmp/freetds-1.00.33.tar.gz
echo
"Building mssql extension"
cd
/tmp
&&
tar
-xvf
freetds-1.00.33.tar.gz
&&
cd
freetds-1.00.33
\
&&
./configure
--with-unixodbc
=
/usr
--sysconfdir
=
/etc/freetds
--enable-sybase-compat
\
&&
make
-j
$(
nproc
)
\
&&
make
install
docker-php-ext-install
-j
$(
nproc
)
mssql
# Keep our image size down..
pecl clear-cache
apt-get remove
--purge
-y
$BUILD_PACKAGES
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment