recentpopularlog in

racl101 : tolearn   1078

« earlier  
siquylee/jenkins-php: Jenkins jobs with Docker for PHP projects inspired by http://jenkins-php.org
This is a Github project showcasing how to adapt Sebastian Bergmann's PHP Jenkins Template Ant buildfile and adapt it to a website / app project built with Laravel and implementing the buildfile (build.xml) with the Phing build tool (a tool that uses Ant buildfile syntax but has PHP specific tasks/ options and only requires PHP (not Java) to run.)

For the Laravel project look within the BookStack directory.
github  project  howto  example  jenkins  php  ant  phing  buildfile  build  template  laravel  laravel5  docker  toread  tolearn  totry  tounderstand  guide  reference 
4 days ago by racl101
css - Programmatically creating PDF from webpage - Stack Overflow
I wrote a Stackoverflow response to the problem of creating PDFs programmatically. After trying out Browsershot, Puppeteer and Chrome / Chromium headless browser solution on Laravel and seeing it work. This came after being frustrated with trying to install / run wkhtmltopdf on Ubuntu 18.04.
stackoverflow  howto  example  guider  reference  suggestion  render  pdf  programmatically  server  side  php  php7  browsershot  laravel  laravel5  ubuntu  ubuntu18.04  puppeteer  chrome  chromium  headless  browser  totry  tolearn  tounderstand 
11 days ago by racl101
★ Easily convert webpages to images using PHP - Freek Van der Herten's blog on PHP and Laravel
Really good tutorial explaining how to use a PHP (Composer) library named Browsershot which leverages the NPM Puppeteer package and Chrome / Chromium headless browser to render PDF images and screenshots (all server side). No more having to use hard to install wkhtmltopdf
blog  tutorial  howto  example  use  browsershot  pdf  puppeteer  chrome  chromium  headless  browser  render  screenshot  images  guide  reference  toread  tolearn  totry  tounderstand 
11 days ago by racl101
jeffersonsouza/jenkins-docker: Jenkins 2 inside docker containers using containers as slaves to build PHP and NodeJS
This project looks promising in demonstrating howto to set up a Jenkins Master and a couple of Jenkins slaves both running different versions of PHP all via Docker. However, it is not well documented. Nevertheless, I think I could learn something from it.
github  project  docker  example  slaves  master  jenkins  docker-compose  howto  toread  tolearn  totry  tounderstand  guide  reference 
12 days ago by racl101
A simple guide to provisioning Vagrant boxes with Ansible - RHD Blog
Really good tutorial explaining how to provision Vagrant machines with Ansible.

The one of the trickiest parts of this set up is specifying your hosts in the Ansible playbook. Just remember, unless you specify the name of your Vagrant machine in your Vagrant file it will be given the name: 'default'.

So in your ansible Playbook, the hosts value must be 'default'. But if you name your Vagrant machine anything else, e.g. 'ubuntu-lamp-server-1' then you must use that same value for the Ansible hosts option.
blog  tutorial  guide  reference  howto  example  provision  vagrant  machine  ansible  toread  tolearn  totry  tounderstand. 
12 days ago by racl101
Jenkins from the command line
This shows how to control jenkins with a Python tool. This could be interesting.
blog  tutorial  jenkins  commandline  cli  configuration  example  howto  guide  reference  toread  tolearn  totry  tounderstand  python  tool  api  package 
12 days ago by racl101
The world’s fastest framework for building websites | Hugo
Need to try this. This could be useful for generating user documentation websites.
hugo  framework  website  building  opensource  static  generator  toread  tolearn  totry  tounderstand  guide  reference 
16 days ago by racl101
phusion/baseimage - Docker Hub
The Laradock Docker Image uses this as its base Ubuntu 16.04 image. So it stands to reason that this is a good Docker Image using Ubuntu 16.04 to use for non-specific LEMP / Laravel setups.
base  repository  dockerhub  github  project  minimal  ubuntu  ubuntu16.04  image  docker  linux  toread  tolearn  totry  tounderstand  touse 
16 days ago by racl101
phusion/baseimage-docker: A minimal Ubuntu base image modified for Docker-friendliness
The Laradock Docker Image uses this as its base Ubuntu 16.04 image. So it stands to reason that this is a good Docker Image using Ubuntu 16.04 to use for non-specific LEMP / Laravel setups.
github  project  minimal  ubuntu  ubuntu16.04  image  docker  linux  toread  tolearn  totry  tounderstand  touse 
16 days ago by racl101
Docker ARG vs ENV · vsupalov.com
Really good tutorial explaining ARG vs ENV directives found in Dockerfiles when using Docker Compose software.
blog  tutorial  guide  reference  explanation  docker  arg  env  keywords  statements  directives  difference  toread  tolearn  totry  tounderstand  dockerfile  build  time  run  buildtime  runtime 
16 days ago by racl101
sebastianbergmann/money: Value Object that represents a monetary value (using a currency's smallest unit).
Really neat library / project from the man who created PHPUnit. It is worth studying to learn good coding practices as well as to use for building and testing setups involving Jenkins. Check out its build.xml for this.
sebastianbergmann  money  php  formatting  library  project  github  toread  tolearn  totry  tounderstand  guide  reference 
17 days ago by racl101
Template for Jenkins Jobs for PHP Projects
Really excellent guide that teaches you a lot about how to set up a server that can act as a Jenkins master or slave for building and testing PHP projects.
jenkins  howto  guide  reference  php  projects  tools  job  template  continuousintegration  continuous  integration  configuration  automation  toread  tolearn  totry  tounderstand  testing 
20 days ago by racl101
Connecting to a mysql running on a Docker container · Issue #95 · docker-library/mysql
Frankly, this forum page has no consensus on a solution to this issue. Nevertheless, what worked for me on my set up with running MacOS as the Docker host and running a container with: Ubuntu 16.04 and MySQL 5.7 is the following:

1) Within the container: change in /etc/mysql/mysql.conf.d/mysqld.cnf the bind-address option from 127.0.0.1 to 0.0.0.0
2) Restart MySQL server (note that whenever you start MySQL you must use this command in the Dockerfile:

RUN sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf
RUN find /var/lib/mysql -type f -exec touch {} \; && service mysql start

That is, you must touch the files in /var/lib/mysql and then start the server with service command and not systemctl.

Next, create a user separate from root e.g. dev_1, in MySQL and given them privileges to their '0.0.0.0' and '%' hosts. Like this in the Dockerfile:

RUN find /var/lib/mysql -type f -exec touch {} \; && service mysql start && mysql -uroot -proot mysql -e "GRANT ALL ON *.* TO root@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; CREATE USER 'dev_1'@'0.0.0.0' IDENTIFIED BY 'secret'; GRANT ALL ON *.* TO 'dev_1'@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; GRANT ALL ON *.* TO 'dev_1'@'%' IDENTIFIED BY 'secret' WITH GRANT OPTION; FLUSH PRIVILEGES;"

Then when you start the container you must publish the port number like so:

docker run -t -d -p 4406:3306 ubuntu_16_04_lemp_php_7_2:latest

If your container stops prematurely, then you might want to add a CMD line in your docker file to run a start.sh script and within that script you might want to add something like this:

# stupid hack to keep container from being stopped
tail -f /dev/null

Finally, to connect to your DB instance on your local MacOS machine with an app like Sequel Pro for example, use the following credentials:

Host: 0.0.0.0
Username: dev_1
Password: <dev_1_password>
Port: 4406

If you don't like to use port 4406, try 3307, 3308, 3309.
github  forum  howto  example  troubleshoot  mysql  server  docker  host  connection  issue  sequel  pro  mariadb  client  hostname  docker-machine  ip  address  ipaddress  guide  reference  toread  tolearn  totry  tounderstand  image  port  detached  database  credentials 
5 weeks ago by racl101
Docker container will automatically stop after "docker run -d" - Stack Overflow
TLDR: I've tried adding: tail -f /dev/null to my start script and that worked allong with invoking the container with the: docker run -t -d <image-name> command invocation.
stackoverflow  howto  troubleshoot  example  docker  container  automatically  suddenly  stops  running  detached  mode  foreground  workaround  hack  hackfix  fix  toread  tolearn  totry  tounderstand  guide  reference 
5 weeks ago by racl101
« earlier      
per page:    204080120160

Copy this bookmark:





to read