同前一篇設定
此次改用docker來做php-fpm然後利用apache proxy來執行php程式
Docker 環境
debian
PHP 7.4
參考此Dockerfile
https://github.com/yappabe/docker-php
同前一篇設定
debian
PHP 7.4
https://github.com/yappabe/docker-php
參考
http://mickey-tang.blogspot.com/2018/05/php72sybase.html
環境:
Ubuntu 18.04
PHP 7.2
Apache 2.4
安裝好Apache php 後,另需要安裝php-sybase,此時會自動安裝FreeTDS
sudo apt-get install -y php7.2-sybase
增加FreeTDS 設定值
sudo nano /etc/freetds/freetds.conf
[sybase_db] host = db.com.tw port = 5000 tds version = 5.0Read More
This is a docker-compose yml,Integrated Mariadb、phpMyAdmin、tomcat
Docker
sudo docker-compose up -d --build
tomcat-webapps
directoryadmin / mypassword112233
myadmin123
8088
8080
;AJP port 8009
tomcat-webapps
github : https://github.com/catyku/JenkinsAgentMaven
docker hub :
docker pull catyku/jenkins-slave-maven3.5
FROM jenkins/jnlp-slave:latest USER root ARG USER_HOME_DIR="/jenkins" RUN apt-get update -y RUN apt-get install -y --no-install-recommends tzdata ENV TZ Asia/Taipei #RUN apt-get upgrade -y #RUN apt-get install -y software-properties-common #RUN add-apt-repository ppa:openjdk-r/ppa -y RUN apt-get install -y maven USER jenkins ENV MAVEN_HOME /usr/share/maven ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" COPY settings-docker.xml /usr/share/maven/ref/ USER jenkins ENTRYPOINT ["jenkins-slave"]Read More
https://github.com/catyku/AutoMavenBuild
Github的maven專案(私有)可以直接下載然後編譯成war deploy檔
需要安裝docker-ce
sudo docker build -t maven:project .