Trying to install MCRYPT on a php:apache docker machine?
I found this to work:
RUN apt-get install -y libmcrypt-dev libreadline-dev
RUN pecl install mcrypt-1.0.1
RUN docker-php-ext-enable mcrypt
RUN apt-get install -y libmcrypt-dev libreadline-dev
RUN pecl install mcrypt-1.0.1
RUN docker-php-ext-enable mcrypt
client.action({
Action: 'Originate',
ActionID: [id],
Channel: 'SIP/PROVIDER/' + number,
Context: [DialplanContext],
Exten: [extension],
Priority: '1',
Variable: 'someVar=' + var1 + '\r\nVariable: someVar2=' + var2 + '\r\nVariable:someVar3=' + var4, Async: 'yes'
});
"options": {
"mysql": {
"table": "user"
}
},
"idInjection": false,
{
"name": "AppUser",
"base": "User",
"idInjection": false,
"restrictResetPasswordTokenScope": true,
"emailVerificationRequired": false,
"validations": [],
"relations": {},
"acls": [
{
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW",
"property": "login"
},
{
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW",
"property": "logout"
},
{
"principalType": "ROLE",
"principalId": "$owner",
"permission": "ALLOW",
"property": "findById"
},
{
"principalType": "ROLE",
"principalId": "$owner",
"permission": "ALLOW",
"property": "updateAttributes"
}
],
"methods": {},
"options": {
"mysql": {
"table": "user"
}
},
"properties": {
"user_id": {
"type": "number",
"id": true
},
"account_id": {
"type": "number",
"required": "true"
}
}
}
{ Error: Pool is closed. at Pool.getConnection (/home/ubuntu/code/lb3/node_modules/mysql/lib/Pool.js:25:15) at MySQL.executeSQL (/home/ubuntu/code/cumberland/lb3/node_modules/loopback-connector-mysql/lib/mysql.js:239:12) at /home/ubuntu/code/lb3/node_modules/loopback-connector-mysql/node_modules/loopback-connector/lib/sql.js:418:10
module.exports = function(app)I took out that line and all is well.
{
var mysqlDs = app.dataSources.mysqlDs;
var lbTables = ['User', 'AccessToken', 'ACL', 'RoleMapping', 'Role'];
mysqlDs.automigrate(lbTables, function(er) {
if (er) throw er;
console.log('Loopback tables [' - lbTables - '] created in ', mysqlDs.adapter.name);
mysqlDs.disconnect(); });
}