==
Create your laravel project and open its folder
composer create-project laravel/laravel yourappname
cd yourappname
| # Prepare required directories for Newrelic installation | |
| RUN mkdir -p /var/log/newrelic /var/run/newrelic && \ | |
| touch /var/log/newrelic/php_agent.log /var/log/newrelic/newrelic-daemon.log && \ | |
| chmod -R g+ws /tmp /var/log/newrelic/ /var/run/newrelic/ && \ | |
| chown -R 1001:0 /tmp /var/log/newrelic/ /var/run/newrelic/ && \ | |
| # Download and install Newrelic binary | |
| export NEWRELIC_VERSION=$(curl -sS https://download.newrelic.com/php_agent/release/ | sed -n 's/.*>\(.*linux-musl\).tar.gz<.*/\1/p') && \ | |
| cd /tmp && curl -sS "https://download.newrelic.com/php_agent/release/${NEWRELIC_VERSION}.tar.gz" | gzip -dc | tar xf - && \ | |
| cd "${NEWRELIC_VERSION}" && \ |
| version: "3" | |
| services: | |
| web: | |
| image: emilevauge/whoami | |
| networks: | |
| - default | |
| - traefik-net | |
| deploy: | |
| labels: | |
| - "traefik.port=80" |
| <!doctype html> | |
| <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <!-- CSRF Token --> | |
| <meta name="csrf-token" content="{{ csrf_token() }}"> | |
| <title>{{ config('app.name', 'Laravel') }}</title> |
| # How to install browser-kit-testing (laravel 6.x project) | |
| ## Create a project with composer | |
| ``` | |
| composer create-project laravel/laravel <project_name> | |
| ``` | |
| ## Install symfony/css-selector (dependency) |
| window.addEventListener('load', function() { | |
| document.querySelectorAll('.btn-group .btn') | |
| .forEach(item => { | |
| item.addEventListener('click', function(e) { | |
| e.target.parentNode.childNodes.forEach(function(node) { | |
| if (node.firstChild !== null) { | |
| node.firstChild.removeAttribute('checked') | |
| } | |
| if (node.classList !== undefined) { | |
| node.classList.remove('active') |
| pipeline { | |
| // run on jenkins nodes tha has java 8 label | |
| agent { label 'java8' } | |
| // global env variables | |
| environment { | |
| EMAIL_RECIPIENTS = '[email protected]' | |
| } | |
| stages { | |
| stage('Build with unit testing') { |
| git fetch --all | |
| git reset --hard origin/master | |
| git pull origin master |
| master: | |
| image: rancher/server | |
| container_name: master | |
| volumes_from: | |
| - mysql | |
| ports: | |
| - "8080:8080" | |
| links: | |
| - mysql | |
| environment: |
| #!/bin/bash | |
| apt-get install libgconf-2-4 -y | |
| POSTMAN='postman-latest.tar.gz' | |
| if [ ! -f $POSTMAN ]; then | |
| curl -o $POSTMAN https://dl.pstmn.io/download/latest/linux64 | |
| fi | |
| tar zvxf $POSTMAN |