[bitnami/symfony] Release 6.3.11-debian-11-r1 (#55187)
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
parent
983bcde3ca
commit
28e89968cb
|
|
@ -7,10 +7,10 @@ ARG TARGETARCH
|
|||
|
||||
LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \
|
||||
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
|
||||
org.opencontainers.image.created="2023-12-30T15:45:33Z" \
|
||||
org.opencontainers.image.created="2024-01-20T05:16:20Z" \
|
||||
org.opencontainers.image.description="Application packaged by VMware, Inc" \
|
||||
org.opencontainers.image.licenses="Apache-2.0" \
|
||||
org.opencontainers.image.ref.name="6.3.11-debian-11-r0" \
|
||||
org.opencontainers.image.ref.name="6.3.11-debian-11-r1" \
|
||||
org.opencontainers.image.title="symfony" \
|
||||
org.opencontainers.image.vendor="VMware, Inc." \
|
||||
org.opencontainers.image.version="6.3.11"
|
||||
|
|
@ -25,7 +25,7 @@ SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
|
|||
RUN install_packages ca-certificates curl libaudit1 libbrotli1 libbsd0 libbz2-1.0 libcap-ng0 libcom-err2 libcurl4 libexpat1 libffi7 libfftw3-double3 libfontconfig1 libfreetype6 libgcc-s1 libgcrypt20 libglib2.0-0 libgmp10 libgnutls30 libgomp1 libgpg-error0 libgssapi-krb5-2 libhogweed6 libicu67 libidn2-0 libjpeg62-turbo libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblcms2-2 libldap-2.4-2 liblqr-1-0 libltdl7 liblzma5 libmagickcore-6.q16-6 libmagickwand-6.q16-6 libmd0 libmemcached11 libncurses6 libnettle8 libnghttp2-14 libonig5 libp11-kit0 libpam0g libpcre3 libpng16-16 libpq5 libpsl5 libreadline8 librtmp1 libsasl2-2 libsodium23 libsqlite3-0 libssh2-1 libssl1.1 libstdc++6 libsybdb5 libtasn1-6 libtidy5deb1 libtinfo6 libunistring2 libuuid1 libwebp6 libx11-6 libxau6 libxcb1 libxdmcp6 libxext6 libxml2 libxslt1.1 libzip4 procps sudo zlib1g
|
||||
RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
|
||||
COMPONENTS=( \
|
||||
"php-8.2.14-0-linux-${OS_ARCH}-debian-11" \
|
||||
"php-8.2.15-0-linux-${OS_ARCH}-debian-11" \
|
||||
"mysql-client-10.11.6-1-linux-${OS_ARCH}-debian-11" \
|
||||
"symfony-6.3.11-0-linux-${OS_ARCH}-debian-11" \
|
||||
) ; \
|
||||
|
|
@ -42,6 +42,7 @@ RUN apt-get autoremove --purge -y curl && \
|
|||
apt-get update && apt-get upgrade -y && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||
RUN /build/bitnami-user.sh
|
||||
RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true
|
||||
|
||||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/mysql-client/postunpack.sh
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
# Copyright VMware, Inc.
|
||||
# SPDX-License-Identifier: APACHE-2.0
|
||||
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
mariadb:
|
||||
image: docker.io/bitnami/mariadb:11.2
|
||||
environment:
|
||||
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
- MARIADB_USER=bn_myapp
|
||||
- MARIADB_DATABASE=bitnami_myapp
|
||||
myapp:
|
||||
image: docker.io/bitnami/symfony:6.3
|
||||
ports:
|
||||
- '8000:8000'
|
||||
environment:
|
||||
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
- SYMFONY_DATABASE_HOST=mariadb
|
||||
- SYMFONY_DATABASE_PORT_NUMBER=3306
|
||||
- SYMFONY_DATABASE_USER=bn_myapp
|
||||
- SYMFONY_DATABASE_NAME=bitnami_myapp
|
||||
- SYMFONY_PROJECT_SKELETON=symfony/skeleton
|
||||
volumes:
|
||||
- './my-project:/app'
|
||||
depends_on:
|
||||
- mariadb
|
||||
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
"arch": "amd64",
|
||||
"distro": "debian-11",
|
||||
"type": "NAMI",
|
||||
"version": "8.2.14-0"
|
||||
"version": "8.2.15-0"
|
||||
},
|
||||
"symfony": {
|
||||
"arch": "amd64",
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ fi
|
|||
|
||||
script=$1
|
||||
exit_code="${2:-96}"
|
||||
fail_if_not_present="${3:-y}"
|
||||
fail_if_not_present="${3:-n}"
|
||||
|
||||
if test -f "$script"; then
|
||||
sh $script
|
||||
|
|
|
|||
|
|
@ -13,12 +13,9 @@ Trademarks: This software listing is packaged by Bitnami. The respective tradema
|
|||
|
||||
```console
|
||||
mkdir ~/myapp && cd ~/myapp
|
||||
curl -LO https://raw.githubusercontent.com/bitnami/containers/main/bitnami/symfony/docker-compose.yml
|
||||
docker-compose up
|
||||
docker run --name codeigniter -v ${PWD}/my-project:/app bitnami/codeigniter:latest
|
||||
```
|
||||
|
||||
**Warning**: This quick setup is only intended for development environments. You are encouraged to change the insecure default credentials and check out the available configuration options for the [MariaDB container](https://github.com/bitnami/containers/blob/main/bitnami/mariadb#readme) for a more secure deployment.
|
||||
|
||||
## Why use Bitnami Images?
|
||||
|
||||
* Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
|
||||
|
|
@ -48,92 +45,89 @@ The Bitnami Symfony Development Container has been carefully engineered to provi
|
|||
|
||||
## Getting started
|
||||
|
||||
The quickest way to get started with the Bitnami Symfony Development Container is using [docker-compose](https://docs.docker.com/compose/).
|
||||
Symfony requires access to a MySQL or MariaDB database to store information. We'll use the [Bitnami Docker Image for MariaDB](https://github.com/bitnami/containers/tree/main/bitnami/mariadb) for the database requirements.
|
||||
|
||||
Begin by creating a directory for your Symfony application:
|
||||
### Step 1: Create a network
|
||||
|
||||
```console
|
||||
mkdir ~/myapp
|
||||
cd ~/myapp
|
||||
docker network create codeigniter-network
|
||||
```
|
||||
|
||||
Download the [docker-compose.yml](https://raw.githubusercontent.com/bitnami/containers/main/bitnami/symfony/docker-compose.yml) file in the application directory:
|
||||
### Step 2: Create a volume for MariaDB persistence and create a MariaDB container
|
||||
|
||||
```console
|
||||
curl -LO https://raw.githubusercontent.com/bitnami/containers/main/bitnami/symfony/docker-compose.yml
|
||||
$ docker volume create --name mariadb_data
|
||||
docker run -d --name mariadb \
|
||||
--env ALLOW_EMPTY_PASSWORD=yes \
|
||||
--env MARIADB_USER=bn_myapp \
|
||||
--env MARIADB_DATABASE=bitnami_myapp \
|
||||
--network codeigniter-network \
|
||||
--volume mariadb_data:/bitnami/mariadb \
|
||||
bitnami/mariadb:latest
|
||||
```
|
||||
|
||||
Set a few environment variables in the `docker-compose.yml`:
|
||||
|
||||
```yaml
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
myapp:
|
||||
image: 'bitnami/symfony:1'
|
||||
ports:
|
||||
- '8000:8000'
|
||||
volumes:
|
||||
- '.:/app'
|
||||
environment:
|
||||
- SYMFONY_PROJECT_NAME=myapp
|
||||
- MARIADB_HOST=mariadb
|
||||
- MARIADB_PORT_NUMBER=3306
|
||||
- MARIADB_USER=bobby
|
||||
- MARIADB_PASSWORD=tables
|
||||
- MARIADB_DATABASE=myapp
|
||||
depends_on:
|
||||
- mariadb
|
||||
mariadb:
|
||||
image: 'bitnami/mariadb:10.11'
|
||||
environment:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
- MARIADB_USER=bobby
|
||||
- MARIADB_PASSWORD=tables
|
||||
- MARIADB_DATABASE=myapp
|
||||
```
|
||||
|
||||
Finally launch the Symfony application development environment using:
|
||||
### Step 3: Launch the container using the local current directory as volume
|
||||
|
||||
```console
|
||||
docker-compose up
|
||||
$ docker run -d --name codeigniter \
|
||||
-p 8000:8000 \
|
||||
--env DB_HOST=mariadb \
|
||||
--env DB_PORT=3306 \
|
||||
--env DB_USERNAME=bn_myapp \
|
||||
--env DB_DATABASE=bitnami_myapp \
|
||||
--env SYMFONY_PROJECT_SKELETON=symfony/skeleton \
|
||||
--network codeigniter-network \
|
||||
--volume ${PWD}/my-project:/app \
|
||||
bitnami/codeigniter:latest
|
||||
```
|
||||
|
||||
The above command creates a container service for Symfony development and bootstraps a new Symfony application, named `myapp` in working directory. You can use your favorite IDE for developing the application.
|
||||
Among other things, the above command creates a container service, named `myapp`, for Symfony development and bootstraps a new Symfony application in the application directory. You can use your favorite IDE for developing the application.
|
||||
|
||||
After the built-in PHP application server has been started, visit `http://localhost:8000` in your favorite web browser and you'll be greeted by the Symfony welcome page.
|
||||
> **Note**
|
||||
>
|
||||
> If the application directory contained the source code of an existing Symfony application, the Bitnami Symfony Development Container would load the existing application instead of bootstrapping a new one.
|
||||
|
||||
After the application server has been launched in the `myapp` service, visit `http://localhost:8000` in your favorite web browser and you'll be greeted by the default Symfony welcome page.
|
||||
|
||||
**Warning**: This quick setup is only intended for development environments. You are encouraged to change the insecure default credentials and check out the available configuration options for the [MariaDB container](https://github.com/bitnami/containers/blob/main/bitnami/mariadb#readme) for a more secure deployment.
|
||||
|
||||
## Executing commands
|
||||
|
||||
Commands can be launched inside the `myapp` Symfony Development Container with `docker-compose` using the [exec](https://docs.docker.com/compose/reference/exec/) command.
|
||||
|
||||
> **Note**:
|
||||
>
|
||||
> The `exec` command was added to `docker-compose` in release [1.7.0](https://github.com/docker/compose/blob/master/CHANGELOG.md#170-2016-04-13). Please ensure that you're using `docker-compose` version `1.7.0` or higher.
|
||||
Commands can be launched inside the `myapp` Symfony Development Container with `docker` using the [exec](https://docs.docker.com/engine/reference/commandline/exec/) command.
|
||||
|
||||
The general structure of the `exec` command is:
|
||||
|
||||
```console
|
||||
docker-compose exec <service> <command>
|
||||
docker exec <container-name> <command>
|
||||
```
|
||||
|
||||
where `<service>` is the name of the container service as described in the `docker-compose.yml` file and `<command>` is the command you want to launch inside the service.
|
||||
where `<command>` is the command you want to launch inside the container.
|
||||
|
||||
Following are a few examples:
|
||||
## Environment variables
|
||||
|
||||
* Create a new project named `foo`:
|
||||
### Customizable environment variables
|
||||
|
||||
```console
|
||||
docker-compose run myapp nami execute symfony createProject foo
|
||||
```
|
||||
| Name | Description | Default Value |
|
||||
|--------------------------------|------------------------------|-----------------|
|
||||
| `SYMFONY_PORT_NUMBER` | Symfony server port. | `8000` |
|
||||
| `SYMFONY_SKIP_DATABASE` | Skip database configuration. | `no` |
|
||||
| `SYMFONY_DATABASE_HOST` | Database server host. | `mariadb` |
|
||||
| `SYMFONY_DATABASE_PORT_NUMBER` | Database server port. | `3306` |
|
||||
| `SYMFONY_DATABASE_NAME` | Database name. | `bitnami_myapp` |
|
||||
| `SYMFONY_DATABASE_USER` | Database user name. | `bn_myapp` |
|
||||
|
||||
* Create a new project named `bar` which uses Symfony version `2.5.0`
|
||||
### Read-only environment variables
|
||||
|
||||
```console
|
||||
docker-compose run myapp nami execute symfony createProject "bar 2.5.0"
|
||||
```
|
||||
| Name | Description | Value |
|
||||
|------------------------|---------------------------------------------|--------------------------------|
|
||||
| `SYMFONY_BASE_DIR` | Symfony installation directory. | `${BITNAMI_ROOT_DIR}/symfony` |
|
||||
| `SYMFONY_SKELETON_DIR` | Symfony default skeleton project directory. | `${SYMFONY_BASE_DIR}/skeleton` |
|
||||
|
||||
Note: In the above two examples the `docker-compose.yml` file should be updated so that the `SYMFONY_PROJECT_NAME` specifies the project name that should be served my the PHP application server.
|
||||
## Notable Changes
|
||||
|
||||
### Starting January 16, 2024
|
||||
|
||||
* The `docker-compose.yaml` file has been removed, as it was solely intended for internal testing purposes.
|
||||
|
||||
## Issues
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue