Commit 1afad7f 1 parent 9bd70aa commit 1afad7f Copy full SHA for 1afad7f
File tree 5 files changed +56
-2
lines changed
5 files changed +56
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ services:
12
12
- INSTALL_MONGO=false
13
13
- INSTALL_NODE=false
14
14
- INSTALL_DRUSH=false
15
+ - INSTALL_AEROSPIKE_EXTENSION=false
15
16
- COMPOSER_GLOBAL_INSTALL=false
16
17
- PUID=1000
17
18
- PGID=1000
@@ -33,6 +34,7 @@ services:
33
34
- INSTALL_ZIP_ARCHIVE=false
34
35
- INSTALL_MEMCACHED=false
35
36
- INSTALL_OPCACHE=false
37
+ - INSTALL_AEROSPIKE_EXTENSION=false
36
38
dockerfile : Dockerfile-70
37
39
volumes_from :
38
40
- volumes_source
@@ -163,7 +165,7 @@ services:
163
165
ports :
164
166
- " 6379:6379"
165
167
166
- # ## Aerospike Container #########################################
168
+ # ## Aerospike c Container #########################################
167
169
168
170
aerospike :
169
171
build : ./aerospike
@@ -174,6 +176,8 @@ services:
174
176
- " 3001:3001"
175
177
- " 3002:3002"
176
178
- " 3003:3003"
179
+ volumes_from :
180
+ - workspace
177
181
178
182
# ## Memcached Container #####################################
179
183
Original file line number Diff line number Diff line change @@ -98,6 +98,28 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
98
98
&& docker-php-ext-enable memcached \
99
99
;fi
100
100
101
+ #####################################
102
+ # PHP Aerospike:
103
+ #####################################
104
+
105
+ ARG INSTALL_AEROSPIKE_EXTENSION=true
106
+ ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
107
+ # Copy aerospike configration for remote debugging
108
+ COPY ./aerospike.ini /usr/local/etc/php/conf.d/aerospike.ini
109
+ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
110
+ # Install the php aerospike extension
111
+ curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/luciano-jr/aerospike-client-php/archive/master.tar.gz" \
112
+ && mkdir -p aerospike-client-php \
113
+ && tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
114
+ && ( \
115
+ cd aerospike-client-php/src/aerospike \
116
+ && phpize \
117
+ && ./build.sh \
118
+ && make install \
119
+ ) \
120
+ && rm /tmp/aerospike-client-php.tar.gz \
121
+ ;fi
122
+
101
123
#####################################
102
124
# Opcache:
103
125
#####################################
@@ -127,4 +149,4 @@ WORKDIR /var/www/laravel
127
149
128
150
CMD ["php-fpm"]
129
151
130
- EXPOSE 9000
152
+ EXPOSE 9000
Original file line number Diff line number Diff line change
1
+ extension =aerospike.so
2
+ aerospike.udf.lua_system_path =/usr/local/aerospike/lua
3
+ aerospike.udf.lua_user_path =/usr/local/aerospike/usr-lua
Original file line number Diff line number Diff line change @@ -140,6 +140,28 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
140
140
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
141
141
;fi
142
142
143
+ # ####################################
144
+ # PHP Aerospike:
145
+ # ####################################
146
+ USER root
147
+ ARG INSTALL_AEROSPIKE_EXTENSION=true
148
+ ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
149
+ # Copy aerospike configration for remote debugging
150
+ COPY ./aerospike.ini /etc/php/7.0/cli/conf.d/aerospike.ini
151
+ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
152
+ # Install the php aerospike extension
153
+ curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/luciano-jr/aerospike-client-php/archive/master.tar.gz" \
154
+ && mkdir -p aerospike-client-php \
155
+ && tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
156
+ && ( \
157
+ cd aerospike-client-php/src/aerospike \
158
+ && phpize \
159
+ && ./build.sh \
160
+ && make install \
161
+ ) \
162
+ && rm /tmp/aerospike-client-php.tar.gz \
163
+ ;fi
164
+
143
165
#
144
166
# --------------------------------------------------------------------------
145
167
# Final Touch
Original file line number Diff line number Diff line change
1
+ extension =aerospike.so
2
+ aerospike.udf.lua_system_path =/usr/local/aerospike/lua
3
+ aerospike.udf.lua_user_path =/usr/local/aerospike/usr-lua
You can’t perform that action at this time.
0 commit comments