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
1afad7f1
Commit
1afad7f1
authored
Aug 20, 2016
by
Luciano Gonçalves
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add configuration to install aerospike php extension
parent
9bd70aad
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
2 deletions
+56
-2
docker-compose.yml
docker-compose.yml
+5
-1
Dockerfile-70
php-fpm/Dockerfile-70
+23
-1
aerospike.ini
php-fpm/aerospike.ini
+3
-0
Dockerfile
workspace/Dockerfile
+22
-0
aerospike.ini
workspace/aerospike.ini
+3
-0
No files found.
docker-compose.yml
View file @
1afad7f1
...
...
@@ -12,6 +12,7 @@ services:
-
INSTALL_MONGO=false
-
INSTALL_NODE=false
-
INSTALL_DRUSH=false
-
INSTALL_AEROSPIKE_EXTENSION=false
-
COMPOSER_GLOBAL_INSTALL=false
-
PUID=1000
-
PGID=1000
...
...
@@ -33,6 +34,7 @@ services:
-
INSTALL_ZIP_ARCHIVE=false
-
INSTALL_MEMCACHED=false
-
INSTALL_OPCACHE=false
-
INSTALL_AEROSPIKE_EXTENSION=false
dockerfile
:
Dockerfile-70
volumes_from
:
-
volumes_source
...
...
@@ -163,7 +165,7 @@ services:
ports
:
-
"
6379:6379"
### Aerospike Container #########################################
### Aerospike
c
Container #########################################
aerospike
:
build
:
./aerospike
...
...
@@ -174,6 +176,8 @@ services:
-
"
3001:3001"
-
"
3002:3002"
-
"
3003:3003"
volumes_from
:
-
workspace
### Memcached Container #####################################
...
...
php-fpm/Dockerfile-70
View file @
1afad7f1
...
...
@@ -98,6 +98,28 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
&& docker-php-ext-enable memcached \
;fi
#####################################
# PHP Aerospike:
#####################################
ARG INSTALL_AEROSPIKE_EXTENSION=true
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
# Copy aerospike configration for remote debugging
COPY ./aerospike.ini /usr/local/etc/php/conf.d/aerospike.ini
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
# Install the php aerospike extension
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/luciano-jr/aerospike-client-php/archive/master.tar.gz" \
&& mkdir -p aerospike-client-php \
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
&& ( \
cd aerospike-client-php/src/aerospike \
&& phpize \
&& ./build.sh \
&& make install \
) \
&& rm /tmp/aerospike-client-php.tar.gz \
;fi
#####################################
# Opcache:
#####################################
...
...
php-fpm/aerospike.ini
0 → 100644
View file @
1afad7f1
extension
=
aerospike.so
aerospike.udf.lua_system_path
=
/usr/local/aerospike/lua
aerospike.udf.lua_user_path
=
/usr/local/aerospike/usr-lua
\ No newline at end of file
workspace/Dockerfile
View file @
1afad7f1
...
...
@@ -140,6 +140,28 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
echo
'[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm'
>>
~/.bashrc
\
;
fi
#####################################
# PHP Aerospike:
#####################################
USER
root
ARG
INSTALL_AEROSPIKE_EXTENSION=true
ENV
INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
# Copy aerospike configration for remote debugging
COPY
./aerospike.ini /etc/php/7.0/cli/conf.d/aerospike.ini
RUN if
[
${
INSTALL_AEROSPIKE_EXTENSION
}
=
true
]
;
then
\
# Install the php aerospike extension
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/luciano-jr/aerospike-client-php/archive/master.tar.gz" \
&& mkdir -p aerospike-client-php \
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
&& ( \
cd aerospike-client-php/src/aerospike \
&& phpize \
&& ./build.sh \
&& make install \
) \
&& rm /tmp/aerospike-client-php.tar.gz \
;fi
#
#--------------------------------------------------------------------------
# Final Touch
...
...
workspace/aerospike.ini
0 → 100644
View file @
1afad7f1
extension
=
aerospike.so
aerospike.udf.lua_system_path
=
/usr/local/aerospike/lua
aerospike.udf.lua_user_path
=
/usr/local/aerospike/usr-lua
\ 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