Skip to content

What happens when you Dockerize your Laravel testing environment and throw it at Gitlab CI?

License

Notifications You must be signed in to change notification settings

GIANTCRAB/gitlabby-dockerish-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitlabby Dockerish Laravel

What happens when you Dockerize your Laravel testing environment and throw it at Gitlab CI?

This repository includes several files required to run the Gitlab CI for your Laravel. The Docker container is pre-packaged with Laravel vendor dependecies, which reduces the number of files required to be downloaded.

It pulls the PHP Laravel image from this repository.

Support

Laravel 5.6

  • PHP 7.1/7.2/7.3
  • MySQL
  • Redis (Your Laravel will require predis/predis composer package)
  • Laravel Dusk (UI automated testing)

Laravel 5.7

  • PHP 7.1/7.2/7.3
  • MySQL
  • Redis (Your Laravel will require predis/predis composer package)
  • Laravel Dusk (UI automated testing)

Laravel Latest (8.0)

Usage

There are several deployment techniques available: SSH and Cloudfoundry

SSH Deployment

Copy the files in the ssh directory and drop them to the base of your GitLab repo.

Ensure that your repository has set a Git deployment remote and you have created a SSH key for access to this remote.

Open up .gitlab-ci.yml and set the variables for the following:

  GIT_DEPLOYMENT_URL: [email protected]:woohuiren/test-laravel-project.git
  GIT_DEPLOYMENT_REMOTE: staging
  GIT_DEPLOYMENT_BRANCH: master
  SSH_PRIVATE_KEY: somethingsomethingblahblah # Recommended to put into GitLab secret variables instead

Cloudfoundry

Copy the files in the cloudfoundry directory and drop them to the base of your GitLab repo.

Set the secret variables accordingly.

About

What happens when you Dockerize your Laravel testing environment and throw it at Gitlab CI?

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages