Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,26 @@ doctrine:
money: Tbbc\MoneyBundle\Type\MoneyType
```

## Development

TbbcMoneybundle comes with docker compose to ease development, to build dev docker containers, run:
```bash
docker compose up --build -d
```

And once it is built, enter the php 8.1, 8.2, 8.3 or 8.4 container:
```bash
docker exec -it tbbc-moneybundle-php81 bash
docker exec -it tbbc-moneybundle-php82 bash
docker exec -it tbbc-moneybundle-php83 bash
docker exec -it tbbc-moneybundle-php84 bash
```

All the tooling is added as composer scripts, start by installing deps:
```bash
composer install
```


Usage
-----
Expand Down
6 changes: 6 additions & 0 deletions change-log-6.0-and-versions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Versions from 6.0
-----------------

### TBD

**Internal Developer things**
- Added docker compose with images for all supported PHP versions for easier development


### 2024-06-19 : updates for 6.0.0 version

**New features**
Expand Down
40 changes: 40 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
services:
tbbc-moneybundle-php81:
container_name: tbbc-moneybundle-php81
build:
context: .
dockerfile: ./docker/dockerfile-tbbc-moneybundle-php81
tty: true
stdin_open: true
volumes:
- .:/docker:rw,delegated

tbbc-moneybundle-php82:
container_name: tbbc-moneybundle-php82
build:
context: .
dockerfile: ./docker/dockerfile-tbbc-moneybundle-php82
tty: true
stdin_open: true
volumes:
- .:/docker:rw,delegated

tbbc-moneybundle-php83:
container_name: tbbc-moneybundle-php83
build:
context: .
dockerfile: ./docker/dockerfile-tbbc-moneybundle-php83
tty: true
stdin_open: true
volumes:
- .:/docker:rw,delegated

tbbc-moneybundle-php84:
container_name: tbbc-moneybundle-php84
build:
context: .
dockerfile: ./docker/dockerfile-tbbc-moneybundle-php84
tty: true
stdin_open: true
volumes:
- .:/docker:rw,delegated
10 changes: 10 additions & 0 deletions docker/dockerfile-tbbc-moneybundle-php81
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM php:8.1
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get update && apt-get install -y git curl nano zip libicu-dev
RUN docker-php-ext-install intl bcmath
RUN pecl install mongodb
RUN docker-php-ext-enable mongodb
WORKDIR /docker

CMD ["bash"]
10 changes: 10 additions & 0 deletions docker/dockerfile-tbbc-moneybundle-php82
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM php:8.2
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get update && apt-get install -y git curl nano zip libicu-dev
RUN docker-php-ext-install intl bcmath
RUN pecl install mongodb
RUN docker-php-ext-enable mongodb
WORKDIR /docker

CMD ["bash"]
10 changes: 10 additions & 0 deletions docker/dockerfile-tbbc-moneybundle-php83
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM php:8.3
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get update && apt-get install -y git curl nano zip libicu-dev
RUN docker-php-ext-install intl bcmath
RUN pecl install mongodb
RUN docker-php-ext-enable mongodb
WORKDIR /docker

CMD ["bash"]
10 changes: 10 additions & 0 deletions docker/dockerfile-tbbc-moneybundle-php84
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM php:8.4
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get update && apt-get install -y git curl nano zip libicu-dev
RUN docker-php-ext-install intl bcmath
RUN pecl install mongodb
RUN docker-php-ext-enable mongodb
WORKDIR /docker

CMD ["bash"]