by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 years ago )

foreword

Laravel 5.5 is launched, how to update the image in D-Laravel to use the latest laravel installer?
This article teaches you how to update your Laravel installer in dlaravel, and commit the changed image.

Description of update method:

Here I use the deviny/fpm:7.1.8 image as an example.

If you want to know the version you are running on d-laravel and what fpm image you are using, you can use...
./console up executes and creates a container,
then type
docker ps to view.


1. Execute ./console to enter the container.

./console

Enter the following command to update.
dlaravel@php:/var/www/html$ composer global require "laravel/installer"

Changed current directory to /home/dlaravel/.composer

Using version ^1.4 for laravel/installer

./composer.json has been updated

Loading composer repositories with package information

Updating dependencies (including require-dev)

Package operations: 0 installs, 1 update, 0 removals

- Updating laravel/installer (v1.3.7 => v1.4.1): Downloading (100%)

Writing lock file

Generating autoload files
Enter the command exit to leave the container.

dlaravel@php:/var/www/html$ exit

exit

 

2. On our host, for example: MacOS, enter docker ps to display the running container and find the contaenr of fpm.

 docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

dae0cf820584 deviny/fpm:7.1.8 "docker-php-entryp..." 8 minutes ago Up 8 minutes 9000/tcp dlaravel_php_1

8364e7aaddba mysql:5.7.17 "docker-entrypoint..." 8 minutes ago Up 8 minutes 127.0.0.1:3306->3306/tcp dlaravel_db_1

5f1497ff8c56 nginx "nginx -g 'daemon ..." 8 minutes ago Up 8 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp dlaravel_web_1

 

3. Use the following command to commit and permanently save the updated laravel installer.
docker commit dae0cf820584 deviny/fpm:7.1.8

sha256:316e6a4b7cf393fb0c78ec6430a2ddec2b5763c49ceef0ea6c6156e73f573040

Tags:

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


regular expression

Formal look behind (lookbehind)

Feel free to use Laravel's tinker to display the lookbehind function. He needs a fixed length. We can grab the text after the brackets. The original content is: How fast is the car moving? How far do you drive to work every day? Through the formal lookbehind, only look at the words after How fast and How far

web-hosting,laravel

Zhibang installs Laravel 5.4 experience sharing

Install Laravel 5.4 on Zhibang's Linux 7.0 platform, and successfully execute the case sharing, Because it was originally an old version of PHP, it can be transferred to the new version for free for the first time, So please ask them to open a test php 7.0 environment for us to test, after small adjustments, Laravel's environment can indeed be executed on Accton's managed host. This article introduces how I successfully implemented Laravel's website process in Zhibang.

cwebp,bash

How do I use bash to optimize website image files and transfer images through cwebp

There are a lot of background images on the same page in my website, the download is too big, and I need to slim down. This cwebp tool is good. In the ubunut environment, apt install webp can be installed.