Skip to content

Instantly share code, notes, and snippets.

@SakiTakamachi
Last active August 13, 2023 05:01
Show Gist options
  • Save SakiTakamachi/866c15ef2e8e333ae526a286b1428fbc to your computer and use it in GitHub Desktop.
Save SakiTakamachi/866c15ef2e8e333ae526a286b1428fbc to your computer and use it in GitHub Desktop.
GH-11950
version: '3'
services:
pdo_test.build_master:
build:
context: ./docker/build_master
dockerfile: Dockerfile
ports:
- '8090:8090'
volumes:
- '.:/var/www/html/test'
networks:
- pdo_test
depends_on:
- mysql
tty: true
cap_add:
- "SYS_PTRACE"
security_opt:
- "seccomp=unconfined"
mysql:
image: 'mysql:8.0.33'
ports:
- '${FORWARD_DB_PORT:-3306}:3306'
environment:
MYSQL_ROOT_PASSWORD: ''
MYSQL_DATABASE: 'test'
MYSQL_USER: 'user'
MYSQL_PASSWORD: ''
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- 'sailmysql:/var/lib/mysql' # my env
networks:
- pdo_test
healthcheck:
test: ["CMD", "mysqladmin", "ping"]
networks:
pdo_test:
driver: bridge
volumes:
sailmysql:
driver: local
FROM ubuntu:20.04
RUN apt-get update
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y vim autoconf automake libtool re2c flex bison make pkg-config zlib1g-dev git
WORKDIR /var/www/html
RUN mkdir test
RUN git clone https://github.com/php/php-src.git
WORKDIR /var/www/html/php-src
RUN ./buildconf --force
RUN ./configure --disable-all --with-mysqli --with-mysqlnd
RUN make
RUN make install
EXPOSE 8090
create database test2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment