GitLab本身功能非常豐富,加上它又是open source可以自行架設,從8.0開始支援CI功能,只要在project root裡面新增一個.gitlab-ci.yml,就可以啟用GitLab CI功能。GitLab也提供預設Shared Runners執行CI jobs,除此之外也可以自定義註冊Specific Runners給特定專案使用。
Setting Laravel env on VSCode
Docker 常用指令
Docker Login docker login [OPTIONS] [SERVER] 1 2 docker login docker login registry.gitlab.com Docker pull docker pull [OPTIONS] NAME[:TAG|@DIGEST] 1 2 3 4 docker pull gitlab/gitlab-ce:latest docker pull php:7.2 docker pull mysql:5.6 docker pull registry.gitlab.com/scottchayaa/laravel-ci:latest Docker build docker build [OPTIONS] PATH | URL | - 1 docker build -t example:latest . How to use –build-arg in Dockerfile 1 2 3 docker build \ --build-arg TMP_DIR=tmp_example1 \ -t example:latest . Dockerfile
Setting Automated Build on Docker Hub
Install docker on Ubuntu16.04
Installing Docker CE AWS EC2 user : ubuntu Install using the repository 1 2 3 4 5 6 7 8 9 10 11 $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs)stable" $ sudo apt-get update $ sudo apt-get install docker-ce docker-ce-cli containerd.io # Verify that Docker CE is installed correctly by running the hello-world image. $ sudo docker run hello-world Install
Repeat https redirect error on ELB
AWS Application Load Balancer 實現基於主機名稱的路由分發
laravel 5.4 Passport show "encryption key error : You must set the encryption key going forward to improve the security of this library"
laravel passport 安裝設定完後,若使用上出現下面錯誤 You must set the encryption key going forward to improve the security of this library - see this page for more information https://oauth2.thephpleague.com/v5-security-improvements/ 解決方法 http://www.imc4.com/archives/5.html 更新 /vendor/laravel/passport/src/PassportServiceProvider.php 中的makeAuthorizationS