Giter VIP home page Giter VIP logo

Comments (4)

gouchaoer avatar gouchaoer commented on May 30, 2024

既然有商用打算还不如把composer依赖都放进git里,这样直接下载源码就ok了

from phpdish.

slince avatar slince commented on May 30, 2024

还没有,欢迎pr;
vendor是个很庞大的目录带上去的话clone速度非把人吓哭不可;
商用不商用只是后话,只是用来限制一些外包的不劳而获的人;大多数情况都是免费的

from phpdish.

slince avatar slince commented on May 30, 2024

前端资源的构建是可选的,不改样式的话是不需要的

from phpdish.

gouchaoer avatar gouchaoer commented on May 30, 2024

docker下配好了但是估计很难自动化:
第一、composer安装依赖如果不用翻墙代理得话很难成功
第二、安装得时候需要人工输入一些东西,很难在Dockerfile里面搞

现在Dockerfile只适合作为开发环境,然而开发环境中我们一般在主机的IDE中编辑代码,在docker里面运行,所以采取了把主机上的源码映射到docker的卷里面的策略,这么做不算完美也没办法

dockerfile,要的自取:

FROM centos:6

RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
RUN yum -y install http://rpms.remirepo.net/enterprise/remi-release-6.rpm
RUN yum -y update

RUN yum -y install vim \
	wget \
	nano \
	htop \ 
	iftop \
	git

RUN yum --enablerepo=remi -y install php72 php72-php-pdo php72-php-mysqlnd php72-php-pecl-xdebug php72-php-pecl-apcu php72-php-mbstring php72-php-fpm

RUN yum -y install http://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm
RUN yum install -y mysql-community-server
RUN /etc/init.d/mysqld start \
	&& password=$(cat /var/log/mysqld.log | grep "A temporary password is generated for" | tail -1 | sed -n 's/.*root@localhost: //p') \
	&& newPassword="Phpdish-2017" \
	&& mysql -uroot -p$password -Bse "ALTER USER 'root'@'localhost' IDENTIFIED BY '$newPassword';" --connect-expired-password \
	&& mysql -pPhpdish-2017 -e"create database symfony default character set utf8mb4 collate utf8mb4_unicode_ci;" \
	&& /etc/init.d/mysqld stop

RUN yum install -y nginx
COPY docker/phpdish.dev.conf /etc/nginx/conf.d

RUN yum install -y nodejs

RUN yum install -y php72-php-xml php72-php-gd php72-php-intl

#https://github.com/geerlingguy/drupal-vm/issues/1497
#CMD chown -R mysql:mysql /var/lib/mysql && /etc/init.d/mysqld start && /etc/init.d/nginx start && /etc/init.d/php72-php-fpm start && /bin/bash
CMD /bin/bash

from phpdish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.