Comments (4)
既然有商用打算还不如把composer依赖都放进git里,这样直接下载源码就ok了
from phpdish.
还没有,欢迎pr;
vendor是个很庞大的目录带上去的话clone速度非把人吓哭不可;
商用不商用只是后话,只是用来限制一些外包的不劳而获的人;大多数情况都是免费的
from phpdish.
前端资源的构建是可选的,不改样式的话是不需要的
from phpdish.
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)
- 不支持MySQL5.7吗? HOT 4
- freeze_amount字段无法找到 HOT 2
- prod/dev环境的缓存问题 HOT 1
- error HOT 3
- 【BUG】创建专栏时候地址没有验证规则
- 【BUG】专栏封面图片css溢出
- 【建议】评论框相关
- 安装时候第三步错误提示
- 1.3.x-beta2 如果安装出错的话看这里
- 更新 bootstrap 到 4.x HOT 2
- github登录问题 HOT 1
- 上传照片出错,所有地方的上传图片都出错 HOT 8
- 不错的系统
- 网址无法打开
- php兼容问题 HOT 9
- mysql5.7兼容 HOT 1
- admin后台得静态资源构建 HOT 2
- 关于性能底下的问题 HOT 4
- phpdish:install检查writable的时候最好加上web/media HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpdish.