Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
4973dd93
Commit
4973dd93
authored
Mar 20, 2017
by
ZeroC0D3 Team
Committed by
GitHub
Mar 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into master
parents
d31ccbd2
9096737a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
92 additions
and
8 deletions
+92
-8
env-example
env-example
+1
-0
startup
mysql/startup
+3
-3
project-1.conf.example
nginx/sites/project-1.conf.example
+0
-0
project-2.conf.example
nginx/sites/project-2.conf.example
+0
-0
Dockerfile-70
php-fpm/Dockerfile-70
+74
-0
Dockerfile-71
php-fpm/Dockerfile-71
+11
-5
laravel.ini
php-fpm/laravel.ini
+3
-0
No files found.
env-example
View file @
4973dd93
...
@@ -29,6 +29,7 @@ WORKSPACE_INSTALL_MC=false
...
@@ -29,6 +29,7 @@ WORKSPACE_INSTALL_MC=false
WORKSPACE_PUID=1000
WORKSPACE_PUID=1000
WORKSPACE_PGID=1000
WORKSPACE_PGID=1000
WORKSPACE_NODE_VERSION=stable
WORKSPACE_NODE_VERSION=stable
WORKSPACE_YARN_VERSION=latest
WORKSPACE_TIMEZONE=UTC
WORKSPACE_TIMEZONE=UTC
WORKSPACE_SSH_PORT=2222
WORKSPACE_SSH_PORT=2222
...
...
mysql/startup
View file @
4973dd93
DROP USER IF EXISTS 'MYSQL_USER';
DROP USER IF EXISTS 'MYSQL_USER';
CREATE USER 'MYSQL_USER'@'%';
CREATE USER 'MYSQL_USER'@'%'
IDENTIFIED BY 'MYSQL_PASSWORD'
;
CREATE DATABASE IF NOT EXISTS
MYSQL_DATABASE
;
CREATE DATABASE IF NOT EXISTS
`MYSQL_DATABASE`
;
GRANT ALL ON
MYSQL_DATABASE.* TO 'MYSQL_USER'@'%' IDENTIFIED BY 'MYSQL_PASSWORD
';
GRANT ALL ON
`MYSQL_DATABASE`.* TO 'MYSQL_USER'@'%
';
nginx/sites/project-1.conf
→
nginx/sites/project-1.conf
.example
View file @
4973dd93
File moved
nginx/sites/project-2.conf
→
nginx/sites/project-2.conf
.example
View file @
4973dd93
File moved
php-fpm/Dockerfile-70
View file @
4973dd93
...
@@ -192,6 +192,79 @@ RUN if [ ${INSTALL_TOKENIZER} = true ]; then \
...
@@ -192,6 +192,79 @@ RUN if [ ${INSTALL_TOKENIZER} = true ]; then \
docker-php-ext-install tokenizer \
docker-php-ext-install tokenizer \
;fi
;fi
#####################################
# SQL SERVER:
#####################################
ARG MSSQL=false
RUN if [ ${MSSQL} = true ]; then \
#####################################
# Install Depenencies:
#####################################
apt-get update && \
apt-get install -y --force-yes wget apt-transport-https curl freetds-common php5-odbc libsybdb5 freetds-bin unixodbc unixodbc-dev php5-sybase && \
#####################################
# The following steps were taken from
# Microsoft's github account:
# https://github.com/Microsoft/msphpsql/wiki/Dockerfile-for-getting-pdo_sqlsrv-for-PHP-7.0-on-Debian-in-3-ways
#####################################
# Add PHP 7 repository
# for Debian jessie
# And System upgrade
echo "deb http://packages.dotdeb.org jessie all" \
| tee /etc/apt/sources.list.d/dotdeb.list \
&& wget -qO- https://www.dotdeb.org/dotdeb.gpg \
| apt-key add - \
&& apt-get update \
&& apt-get upgrade -qq && \
# Install UnixODBC
# Compile odbc_config as it is not part of unixodbc package
apt-get install -y whiptail \
unixodbc libgss3 odbcinst devscripts debhelper dh-exec dh-autoreconf libreadline-dev libltdl-dev \
&& dget -u -x http://http.debian.net/debian/pool/main/u/unixodbc/unixodbc_2.3.1-3.dsc \
&& cd unixodbc-*/ \
&& dpkg-buildpackage -uc -us -B -d \
&& cp -v ./exe/odbc_config /usr/local/bin/ && \
# Fake uname for install.sh
printf '#!/bin/bash\nif [ "$*" == "-p" ]; then echo "x86_64"; else /bin/uname "$@"; fi' \
| tee /usr/local/bin/uname \
&& chmod +x /usr/local/bin/uname && \
# Microsoft ODBC Driver 13 for Linux
# Note: There's a copy of this tar on my hubiC
wget -nv -O msodbcsql-13.0.0.0.tar.gz \
"https://meetsstorenew.blob.core.windows.net/contianerhd/Ubuntu%2013.0%20Tar/msodbcsql-13.0.0.0.tar.gz?st=2016-10-18T17%3A29%3A00Z&se=2022-10-19T17%3A29%3A00Z&sp=rl&sv=2015-04-05&sr=b&sig=cDwPfrouVeIQf0vi%2BnKt%2BzX8Z8caIYvRCmicDL5oknY%3D" \
&& tar -xf msodbcsql-13.0.0.0.tar.gz \
&& cd msodbcsql-*/ \
&& ldd lib64/libmsodbcsql-13.0.so.0.0 \
&& ./install.sh install --accept-license \
&& ls -l /opt/microsoft/msodbcsql/ \
&& odbcinst -q -d -n "ODBC Driver 13 for SQL Server" && \
#####################################
# Install sqlsrv y pdo_sqlsrv
# extensions:
#####################################
pecl install sqlsrv-4.0.6 && \
pecl install pdo_sqlsrv-4.0.6 && \
#####################################
# Set locales for the container
#####################################
apt-get install -y locales \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen \
;fi
#####################################
#####################################
# Human Language and Character Encoding Support:
# Human Language and Character Encoding Support:
#####################################
#####################################
...
@@ -218,6 +291,7 @@ RUN if [ ${GHOSTSCRIPT} = true ]; then \
...
@@ -218,6 +291,7 @@ RUN if [ ${GHOSTSCRIPT} = true ]; then \
ghostscript \
ghostscript \
;fi
;fi
#
#
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
# Final Touch
# Final Touch
...
...
php-fpm/Dockerfile-71
View file @
4973dd93
...
@@ -130,13 +130,19 @@ RUN if [ ${INSTALL_OPCACHE} = true ]; then \
...
@@ -130,13 +130,19 @@ RUN if [ ${INSTALL_OPCACHE} = true ]; then \
COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
#####################################
#####################################
# Codeigniter Modifications:
# Mysqli Modifications:
#####################################
ARG INSTALL_MYSQLI=false
RUN if [ ${INSTALL_MYSQLI} = true ]; then \
docker-php-ext-install mysqli \
;fi
#####################################
# Tokenizer Modifications:
#####################################
#####################################
ARG CODEIGNITER=false
ARG INSTALL_TOKENIZER=false
RUN if [ ${CODEIGNITER} = true ]; then \
RUN if [ ${INSTALL_TOKENIZER} = true ]; then \
# Install Codeigniter PHP extentions requirements
docker-php-ext-install mysqli && \
docker-php-ext-install tokenizer \
docker-php-ext-install tokenizer \
;fi
;fi
...
...
php-fpm/laravel.ini
View file @
4973dd93
...
@@ -11,3 +11,6 @@ upload_max_filesize = 20M
...
@@ -11,3 +11,6 @@ upload_max_filesize = 20M
; Sets max size of post data allowed.
; Sets max size of post data allowed.
; http://php.net/post-max-size
; http://php.net/post-max-size
post_max_size
=
20M
post_max_size
=
20M
; Enables the MSSQL extensions
extension
=
sqlsrv.so
extension
=
pdo_sqlsrv.so
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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