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
992c76d2
Commit
992c76d2
authored
May 25, 2017
by
Yu-Lung Shao (Allen)
Committed by
GitHub
May 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #974 from bestlong/adminer-support-sqlsrv
adminer support mssql
parents
58995966
f3a016aa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
Dockerfile
adminer/Dockerfile
+17
-0
docker-compose.yml
docker-compose.yml
+4
-1
env-example
env-example
+1
-0
No files found.
adminer/Dockerfile
View file @
992c76d2
...
...
@@ -8,5 +8,22 @@ MAINTAINER Patrick Artounian <partounian@gmail.com>
# Add volume for sessions to allow session persistence
VOLUME
/sessions
#####################################
# SQL SERVER:
#####################################
USER
root
ARG
INSTALL_MSSQL=false
ENV
INSTALL_MSSQL ${INSTALL_MSSQL}
RUN if
[
${
INSTALL_MSSQL
}
=
true
]
;
then
\
set
-xe
\
&&
apk
--update
add
--no-cache
--virtual
.phpize-deps
$PHPIZE_DEPS
unixodbc unixodbc-dev
\
&&
pecl channel-update pecl.php.net
\
&&
pecl
install
pdo_sqlsrv-4.1.8preview sqlsrv-4.1.8preview
\
&&
echo
"extension=sqlsrv.so"
>
/usr/local/etc/php/conf.d/20-sqlsrv.ini
\
&&
echo
"extension=pdo_sqlsrv.so"
>
/usr/local/etc/php/conf.d/20-pdo_sqlsrv.ini
\
;
fi
USER
adminer
# We expose Adminer on port 8080 (Adminer's default)
EXPOSE
8080
docker-compose.yml
View file @
992c76d2
...
...
@@ -440,7 +440,10 @@ services:
### Adminer Container ####################################
adminer
:
build
:
./adminer
build
:
context
:
./adminer
args
:
-
INSTALL_MSSQL=${ADM_INSTALL_MSSQL}
ports
:
-
"
${ADM_PORT}:8080"
depends_on
:
...
...
env-example
View file @
992c76d2
...
...
@@ -161,6 +161,7 @@ MINIO_PORT=9000
### ADMINER ############################################################################################################
ADM_PORT=8080
ADM_INSTALL_MSSQL=false
### PHP MY ADMIN #######################################################################################################
...
...
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