Skip to content

Commit 79b3811

Browse files
authored
Merge pull request #26 from Faks/dev
Dev
2 parents 3ffc0d2 + 87f92bf commit 79b3811

29 files changed

Lines changed: 22278 additions & 14134 deletions

.env.example

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ COMPOSE_PROJECT_NAME=laradock
3838
### PHP Version ###########################################
3939

4040
# Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM).
41-
# Accepted values: 8.4 - 8.3 - 8.2 - 8.1 - 8.0 - 7.4 - 7.3 - 7.2 - 7.1 - 7.0 - 5.6
42-
PHP_VERSION=8.3
41+
# Accepted values: 8.5 - 8.4 - 8.3 - 8.2 - 8.1 - 8.0 - 7.4 - 7.3 - 7.2 - 7.1 - 7.0 - 5.6
42+
PHP_VERSION=8.4
4343

4444
### Phalcon Version ###########################################
4545

@@ -108,6 +108,7 @@ SHELL_OH_MY_ZSH_ALIASES=false
108108
### WORKSPACE #############################################
109109

110110
WORKSPACE_BASE_IMAGE_TAG_PREFIX=latest
111+
WORKSPACE_ALLOW_RELEASE_INFO_CHANGE=false
111112
WORKSPACE_COMPOSER_GLOBAL_INSTALL=true
112113
WORKSPACE_COMPOSER_VERSION=2
113114
WORKSPACE_COMPOSER_AUTH_JSON=false
@@ -199,7 +200,7 @@ WORKSPACE_SSH_PORT=2222
199200
WORKSPACE_INSTALL_FFMPEG=false
200201
WORKSPACE_INSTALL_AUDIOWAVEFORM=false
201202
WORKSPACE_INSTALL_WKHTMLTOPDF=false
202-
WORKSPACE_WKHTMLTOPDF_VERSION=0.12.6-1
203+
WORKSPACE_WKHTMLTOPDF_VERSION=0.12.6.1-3
203204
WORKSPACE_INSTALL_GNU_PARALLEL=false
204205
WORKSPACE_INSTALL_AST=true
205206
WORKSPACE_AST_VERSION=1.0.10
@@ -299,6 +300,7 @@ PHP_FPM_XDEBUG_PORT=9000
299300
PHP_FPM_INSTALL_EVENT=false
300301
PHP_FPM_INSTALL_DNSUTILS=true
301302
PHP_FPM_INSTALL_POPPLER_UTILS=false
303+
PHP_FPM_INSTALL_GRAPHVIZ=false
302304

303305
PHP_FPM_PUID=1000
304306
PHP_FPM_PGID=1000
@@ -346,6 +348,7 @@ PHP_WORKER_INSTALL_SSDB=false
346348
PHP_WORKER_INSTALL_EVENT=false
347349
PHP_WORKER_INSTALL_INTL=true
348350
PHP_WORKER_INSTALL_POPPLER_UTILS=false
351+
PHP_WORKER_INSTALL_GRAPHVIZ=false
349352

350353
PHP_WORKER_PUID=1000
351354
PHP_WORKER_PGID=1000
@@ -494,8 +497,8 @@ MARIADB_ENTRYPOINT_INITDB=./mariadb/docker-entrypoint-initdb.d
494497

495498
### POSTGRES ##############################################
496499

497-
POSTGRES_VERSION=alpine
498-
POSTGRES_CLIENT_VERSION=15
500+
POSTGRES_VERSION=18-3.6-alpine
501+
POSTGRES_CLIENT_VERSION=17
499502
POSTGRES_DB=default
500503
POSTGRES_USER=default
501504
POSTGRES_PASSWORD=secret

.github/workflows/build-deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: write # to push pages branch (peaceiris/actions-gh-pages)
1616

1717
if: github.repository == 'laradock/laradock'
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-22.04
1919
concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121
defaults:

.github/workflows/main-ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
php_version: [ "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4" ]
25+
php_version: [ "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5" ]
2626
service: [ php-fpm, php-worker, workspace ]
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v6
29+
- uses: docker/setup-buildx-action@v3
2930
- name: Build the Docker image
3031
env:
3132
PHP_VERSION: ${{ matrix.php_version }}
@@ -42,16 +43,14 @@ jobs:
4243
sed -i -- 's/RDKAFKA=true/RDKAFKA=false/g' .env
4344
sed -i -- 's/MAILPARSE=true/MAILPARSE=false/g' .env
4445
sed -i -- 's/OCI8=true/OCI8=false/g' .env
46+
sed -i -- 's/PYTHON=true/PYTHON=false/g' .env
4547
sed -i -- 's/V8JS=true/V8JS=false/g' .env
4648
sed -i -- 's/AUDIOWAVEFORM=true/AUDIOWAVEFORM=false/g' .env
4749
sed -i -- 's/SSDB=true/SSDB=false/g' .env
4850
sed -i -- 's/ENCHANT=true/ENCHANT=false/g' .env
4951
sed -i -- 's/PG_CLIENT=true/PG_CLIENT=false/g' .env
5052
# sed -i -- 's/MSSQL=true/MSSQL=false/g' .env
51-
docker compose build ${{ matrix.service }}
52-
docker compose up -d --no-deps -- ${{ matrix.service }}
53-
docker compose exec -T -- ${{ matrix.service }} php -m
54-
docker compose down
53+
docker buildx bake ${{ matrix.service }} --progress=plain --set *.output=type=cacheonly
5554
5655
build-other:
5756
# Don't trigger on schedule event when in a fork
@@ -62,10 +61,11 @@ jobs:
6261
matrix:
6362
service: [ 'nginx', 'redis', 'mysql', 'mariadb', 'percona', 'minio', 'mongo' ]
6463
steps:
65-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@v6
65+
- uses: docker/setup-buildx-action@v3
6666
- name: Build the Docker image
6767
run: |
6868
cp .env.example .env
6969
sed -i -- 's/=false/=true/g' .env
7070
sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
71-
docker compose build ${{ matrix.service }}
71+
docker buildx bake ${{ matrix.service }} --progress=plain --set *.output=type=cacheonly

DOCUMENTATION/docs/usage.md

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,34 +2376,58 @@ A bash prompt that displays information about the current git repository. In par
23762376
**Note** You can configure bash-git-prompt by editing the `workspace/gitprompt.sh` file and re-building the workspace container.
23772377
For configuration information, visit the [bash-git-prompt repository](https://github.com/magicmonty/bash-git-prompt).
23782378
2379-
<br/>
2380-
<a name="Install-Oh-My-Zsh"></a>
2381-
## Install Oh My ZSH
2382-
2383-
2384-
23852379
23862380
<br/>
23872381
<a name="Install-Dnsutils"></a>
23882382
## Install Dnsutils
23892383
23902384
1 - First install `dnsutils` in the Workspace and the PHP-FPM Containers:
2391-
<br/>
2385+
23922386
a) open the `.env` file
2393-
<br/>
2387+
23942388
b) search for the `WORKSPACE_INSTALL_DNSUTILS` argument under the Workspace Container
2395-
<br/>
2389+
23962390
c) set it to `true`
2397-
<br/>
2391+
23982392
d) search for the `PHP_FPM_INSTALL_DNSUTILS` argument under the PHP-FPM Container
2399-
<br/>
2393+
24002394
e) set it to `true`
2401-
<br/>
2395+
24022396
24032397
2 - Re-build the containers `docker-compose build workspace php-fpm`
24042398
24052399
2400+
<br/>
2401+
<a name="Install-GRAPHVIZ"></a>
2402+
## Install GRAPHVIZ
2403+
2404+
To install [GRAPHVIZ](https://graphviz.org/)
2405+
2406+
First, open the `.env` file
2407+
2408+
> For the workspace container :
2409+
2410+
- Search for the `WORKSPACE_INSTALL_GRAPHVIZ` argument under the Workspace Container and set it to `true`
2411+
2412+
- Re-build the container `docker-compose build workspace`
2413+
2414+
> For the php-fpm container (probably what you're looking for) :
2415+
2416+
- Search for the `PHP_FPM_INSTALL_GRAPHVIZ` argument under the PHP-Fpm Container and set it to `true`
2417+
2418+
- Re-build the container `docker-compose build php-fpm`
24062419

2420+
> For the php-worker container :
2421+
2422+
- Search for the `PHP_WORKER_INSTALL_GRAPHVIZ` argument under the PHP-Worker Container and set it to `true`
2423+
2424+
- Re-build the container `docker-compose build php-worker`
2425+
2426+
2427+
2428+
<br/>
2429+
<a name="Install-Oh-My-Zsh"></a>
2430+
## Install Oh My ZSH
24072431

24082432
> With the Laravel autocomplete plugin.
24092433

DOCUMENTATION/docusaurus.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type * as Preset from '@docusaurus/preset-classic';
44

55
const config: Config = {
66
title: 'Laradock',
7-
tagline: 'Full PHP development environment on Docker.',
7+
tagline: 'A Docker setup that lets you run a full PHP development environment in seconds.',
88
favicon: 'laradock.ico',
99

1010
// Set the production url of your site here
@@ -123,7 +123,7 @@ const config: Config = {
123123
// ],
124124
// },
125125
],
126-
copyright: `Copyright © 2016 - ${new Date().getFullYear()} - Laradock - By <a href="https://zalt.me" target="_blank" rel="noopener noreferrer">Mahmoud Zalt</a>.`,
126+
copyright: `Copyright © 2015 - ${new Date().getFullYear()} - Laradock - By <a href="https://zalt.me" target="_blank" rel="noopener noreferrer">Mahmoud Zalt</a>.`,
127127
},
128128
prism: {
129129
theme: prismThemes.github,

DOCUMENTATION/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"typecheck": "tsc"
1616
},
1717
"dependencies": {
18+
"@sista/ai-assistant-react": "^3.3.21",
1819
"@docusaurus/core": "3.3.0",
1920
"@docusaurus/preset-classic": "3.3.0",
2021
"@mdx-js/react": "^3.0.0",
21-
"@sista/ai-assistant-react": "^2.2.0",
2222
"clsx": "^2.0.0",
2323
"prism-react-renderer": "^2.3.0",
2424
"react": "^18.0.0",

DOCUMENTATION/src/components/AiAssistant/index.tsx

Lines changed: 0 additions & 121 deletions
This file was deleted.

DOCUMENTATION/src/components/SponsorsPage/index.tsx

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ type SponsorItem = {
1010

1111
const SponsorList: SponsorItem[] = [
1212
{
13-
link: "https://smart.sista.ai/?utm_source=docs_laradock&utm_medium=sponsor&utm_campaign=landing_page_welcome",
13+
link: "https://smart.sista.ai/?utm_source=laradock&utm_medium=sponsor_banner&utm_campaign=landing_page",
1414
imageUrl: "/img/sponsors/sista-ai-logo.png",
1515
description: (
1616
<>
17-
<b>Make Your Apps Smarter with a Plug-and-Play AI Voice Assistant.</b>
17+
<b>Plug-and-Play <a href="https://smart.sista.ai/?utm_source=laradock&utm_medium=sponsor_banner&utm_campaign=landing_page" target="_blank" style={{ color: '#8098f8' }}>AI Agents</a> for Apps & Websites</b>
1818
</>
1919
),
2020
},
@@ -25,12 +25,25 @@ function Sponsor({ link, imageUrl, description }: SponsorItem) {
2525
<div className={clsx("col col--12")}>
2626
<div className="text--center">
2727
<a href={link} target="_blank" rel="noopener noreferrer">
28-
<img src={imageUrl} className={sponsorsStyles.sponsorImg} role="img" />
28+
<img
29+
src={imageUrl}
30+
className={sponsorsStyles.sponsorImg}
31+
role="img"
32+
style={{
33+
maxWidth: '100%',
34+
minWidth: '350px',
35+
height: 'auto'
36+
}}
37+
/>
2938
</a>
3039
</div>
3140
<div className="text--center padding-horiz--md">
3241

33-
<p>{description}</p>
42+
<p style={{
43+
fontSize: 'clamp(1rem, 2vw, 1.2em)',
44+
lineHeight: 1.5,
45+
margin: '1rem 0'
46+
}}>{description}</p>
3447
</div>
3548
</div>
3649
);

DOCUMENTATION/src/components/WelcomePage/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import styles from './styles.module.css';
44
export default function WelcomePage() {
55
return (
66
<section className={styles.welcome}>
7-
<h1>Fully Dockerized PHP Environment, Ready to Go!</h1>
7+
<div className={styles.heroContent}>
8+
<h1>Full PHP Dev Environment For Docker</h1>
9+
</div>
10+
<div className={styles.overlay} />
811
</section>
912
);
1013
}

0 commit comments

Comments
 (0)