wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update -y
sudo apt-get install -y erlang erlang-nox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:fpm | |
# Install packages | |
RUN apt-get update | |
RUN apt-get install -y unzip | |
RUN apt-get install -y libaio1 | |
# Oracle instantclient | |
ADD instantclient-basic-linux.x64-11.2.0.4.0.zip /tmp/ | |
ADD instantclient-sdk-linux.x64-11.2.0.4.0.zip /tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Token | |
{ | |
private $mmc; | |
private $cache_time; | |
function __construct() | |
{ | |
$this->cache_time = 60 * 60 * 24; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
demo002 |