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:7.1.2-fpm-alpine | |
# php-redis | |
ENV PHPREDIS_VERSION 3.1.2 | |
RUN docker-php-source extract \ | |
&& curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz \ | |
&& tar xfz /tmp/redis.tar.gz \ | |
&& rm -r /tmp/redis.tar.gz \ | |
&& mv phpredis-$PHPREDIS_VERSION /usr/src/php/ext/redis \ |
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
version: "3" | |
services: | |
# redis | |
redis: | |
image: redis:3.2.11-alpine | |
# redis用のWebUI | |
# 3000番ポートを開放 | |
commander: |
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:7.2.1-fpm-alpine3.7 | |
# Redisとの連携部分の定義 | |
ENV REDIS_HOST redis | |
ENV REDIS_PORT 6379 | |
# redis拡張をインストール | |
ENV PHPREDIS_VERSION 3.1.2 |
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 | |
/** | |
* CakePHP Debug Level: | |
* | |
* Production Mode: | |
* 0: No error messages, errors, or warnings shown. Flash messages redirect. | |
* | |
* Development Mode: | |
* 1: Errors and warnings shown, model caches refreshed, flash messages halted. | |
* 2: As in 1, but also with full debug messages and SQL output. |
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
version: '3.5' | |
services: | |
app: | |
image: nginx | |
container_name: my-app | |
networks: | |
- default | |
ports: | |
- 8080:80 |
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 node:8-alpine as builder | |
COPY package.json package-lock.json ./ | |
RUN npm set progress=false && npm config set depth 0 && npm cache clean --force | |
## Storing node modules on a separate layer will prevent unnecessary npm installs at each build | |
RUN npm i && mkdir /ng-app && cp -R ./node_modules ./ng-app | |
WORKDIR /ng-app |
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
import json | |
import threading | |
from websocket import create_connection | |
from rx.subjects import Subject | |
from rx.concurrency import ThreadPoolScheduler | |
def observable(): | |
# ThreadPool | |
pool_scheduler = ThreadPoolScheduler(1) |
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:7.1.14-fpm-alpine3.4 | |
# mysql | |
RUN docker-php-ext-install mysqli pdo_mysql | |
# xdebug | |
RUN apk add --no-cache $PHPIZE_DEPS \ | |
&& pecl install xdebug-2.5.0 \ | |
&& docker-php-ext-enable xdebug |
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
docker run -it --rm --name="draw" -p 8080:8080 -p 8443:8443 fjudith/draw.io |
OlderNewer