From 31c3def98cc6b3b4ee480080d09a0c6d739f551e Mon Sep 17 00:00:00 2001
From: Ahmet Ozisik <ozisikahmet@gmail.com>
Date: Wed, 30 Sep 2020 14:25:10 +0300
Subject: [PATCH 1/4] set php version to 7.4, install bcmath

---
 Dockerfile        | 18 +++++++++---------
 README.md         |  4 ++--
 build-and-push.sh |  6 +++---
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 2c20fe2..753e7b4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,17 +1,17 @@
-FROM php:7.2
+FROM php:7.4
 
 ARG BUILD_DATE
 ARG VCS_REF
 ENV COMPOSER_ALLOW_SUPERUSER 1
 
 LABEL Maintainer="Swiftmade <hello@swiftmade.co>" \
-      Description="A simple PHP 7.2 image which contain just the minimum required to run Dusk on bitbucket pipelines." \
-      org.label-schema.name="swiftmade/laravel-test-container:7.2" \
-      org.label-schema.description="A simple PHP 7.2 image which contain just the minimum required to run Dusk on CI/CD pipelines." \
-      org.label-schema.build-date=$BUILD_DATE \
-      org.label-schema.vcs-url="https://github.com/swiftmade/laravel-test-container" \
-      org.label-schema.vcs-ref=$VCS_REF \
-      org.label-schema.schema-version="1.0.0"
+    Description="A simple PHP 7.4 image which contain just the minimum required to run Dusk on bitbucket pipelines." \
+    org.label-schema.name="swiftmade/laravel-test-container:7.4" \
+    org.label-schema.description="A simple PHP 7.2 image which contain just the minimum required to run Dusk on CI/CD pipelines." \
+    org.label-schema.build-date=$BUILD_DATE \
+    org.label-schema.vcs-url="https://github.com/swiftmade/laravel-test-container" \
+    org.label-schema.vcs-ref=$VCS_REF \
+    org.label-schema.schema-version="1.0.0"
 
 ENV COMPOSER_ALLOW_SUPERUSER 1
 
@@ -31,7 +31,7 @@ RUN docker-php-source extract \
     && docker-php-source delete \
     && docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
     && docker-php-ext-configure gd --with-jpeg \
-    && docker-php-ext-install -j"$(nproc)" pdo pdo_mysql pdo_pgsql pgsql intl zip soap gd exif \
+    && docker-php-ext-install -j"$(nproc)" pdo pdo_mysql pdo_pgsql pgsql intl zip soap gd exif bcmath \
     && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
     && apt-get autoremove \
     && rm -rf /var/lib/apt/lists/*
diff --git a/README.md b/README.md
index b890e6f..19f9db8 100644
--- a/README.md
+++ b/README.md
@@ -4,10 +4,10 @@ Laravel Test Container
 Use this docker image to run Laravel tests, including Dusk.
 
 ```
-swiftmade/laravel-test-container:7.2
+swiftmade/laravel-test-container:7.4
 ```
 
-- 🐘 **PHP Version:** 7.2
+- 🐘 **PHP Version:** 7.4
 - 🌍 **Chromium Version:** 80
 
 #### `php -m` output
diff --git a/build-and-push.sh b/build-and-push.sh
index 99db2f8..395aa33 100755
--- a/build-and-push.sh
+++ b/build-and-push.sh
@@ -1,4 +1,4 @@
 #!/bin/sh
-docker build . -t swiftmade/laravel-test-container:7.2
-docker push swiftmade/laravel-test-container:7.2
-docker run swiftmade/laravel-test-container:7.2 php -m
\ No newline at end of file
+docker build . -t swiftmade/laravel-test-container:7.4
+docker push swiftmade/laravel-test-container:7.4
+docker run swiftmade/laravel-test-container:7.4 php -m
\ No newline at end of file

From 0cd3d815d3aebea3aa290d553c8d4f0f105bf067 Mon Sep 17 00:00:00 2001
From: Ahmet Ozisik <ozisikahmet@gmail.com>
Date: Wed, 30 Sep 2020 14:26:58 +0300
Subject: [PATCH 2/4] update readme

---
 README.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/README.md b/README.md
index 19f9db8..48fb715 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@ swiftmade/laravel-test-container:7.4
 
 ```
 [PHP Modules]
+bcmath
 Core
 ctype
 curl

From f12874cdb8f211474e9fc84ee7e2742ae6c653bd Mon Sep 17 00:00:00 2001
From: Ahmet Ozisik <ozisikahmet@gmail.com>
Date: Wed, 10 Mar 2021 21:31:13 +0200
Subject: [PATCH 3/4] update contents & build script

---
 README.md         | 14 +++++++++++---
 build-and-push.sh |  2 +-
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 48fb715..6c9a9b7 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,4 @@
-Laravel Test Container
-======================
+# Laravel Test Container
 
 Use this docker image to run Laravel tests, including Dusk.
 
@@ -10,9 +9,18 @@ swiftmade/laravel-test-container:7.4
 - 🐘 **PHP Version:** 7.4
 - 🌍 **Chromium Version:** 80
 
-#### `php -m` output
+#### What's inside?
 
 ```
+PHP 7.4.16 (cli) (built: Mar  6 2021 04:00:29) ( NTS )
+Copyright (c) The PHP Group
+Zend Engine v3.4.0, Copyright (c) Zend Technologies
+    with Xdebug v3.0.3, Copyright (c) 2002-2021, by Derick Rethans
+
+
+Composer version 2.0.11 2021-02-24 14:57:23
+
+
 [PHP Modules]
 bcmath
 Core
diff --git a/build-and-push.sh b/build-and-push.sh
index 395aa33..30f3097 100755
--- a/build-and-push.sh
+++ b/build-and-push.sh
@@ -1,4 +1,4 @@
 #!/bin/sh
 docker build . -t swiftmade/laravel-test-container:7.4
 docker push swiftmade/laravel-test-container:7.4
-docker run swiftmade/laravel-test-container:7.4 php -m
\ No newline at end of file
+docker run --rm swiftmade/laravel-test-container:7.4 /bin/bash -c "php -v && echo $'\n' && composer --version && echo $'\n' && php -m"
\ No newline at end of file

From b07d2e17209ca166293bcc2b9661f9413d0e8ed3 Mon Sep 17 00:00:00 2001
From: Ahmet Ozisik <ozisikahmet@gmail.com>
Date: Thu, 8 Jul 2021 14:44:10 +0300
Subject: [PATCH 4/4] build and publish for php8.0

---
 Dockerfile        |  6 +++---
 README.md         | 12 ++++++------
 build-and-push.sh |  6 +++---
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 753e7b4..a49c900 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM php:7.4
+FROM php:8.0
 
 ARG BUILD_DATE
 ARG VCS_REF
@@ -6,8 +6,8 @@ ENV COMPOSER_ALLOW_SUPERUSER 1
 
 LABEL Maintainer="Swiftmade <hello@swiftmade.co>" \
     Description="A simple PHP 7.4 image which contain just the minimum required to run Dusk on bitbucket pipelines." \
-    org.label-schema.name="swiftmade/laravel-test-container:7.4" \
-    org.label-schema.description="A simple PHP 7.2 image which contain just the minimum required to run Dusk on CI/CD pipelines." \
+    org.label-schema.name="swiftmade/laravel-test-container:8.0" \
+    org.label-schema.description="Laravel test container w/ all necessary extensions to run PHPUnit and Laravel Dusk tests." \
     org.label-schema.build-date=$BUILD_DATE \
     org.label-schema.vcs-url="https://github.com/swiftmade/laravel-test-container" \
     org.label-schema.vcs-ref=$VCS_REF \
diff --git a/README.md b/README.md
index 6c9a9b7..38ec9e9 100644
--- a/README.md
+++ b/README.md
@@ -3,22 +3,22 @@
 Use this docker image to run Laravel tests, including Dusk.
 
 ```
-swiftmade/laravel-test-container:7.4
+swiftmade/laravel-test-container:8.0
 ```
 
-- 🐘 **PHP Version:** 7.4
+- 🐘 **PHP Version:** 8.0
 - 🌍 **Chromium Version:** 80
 
 #### What's inside?
 
 ```
-PHP 7.4.16 (cli) (built: Mar  6 2021 04:00:29) ( NTS )
+PHP 8.0.8 (cli) (built: Jul  1 2021 22:23:42) ( NTS )
 Copyright (c) The PHP Group
-Zend Engine v3.4.0, Copyright (c) Zend Technologies
-    with Xdebug v3.0.3, Copyright (c) 2002-2021, by Derick Rethans
+Zend Engine v4.0.8, Copyright (c) Zend Technologies
+    with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans
 
 
-Composer version 2.0.11 2021-02-24 14:57:23
+Composer version 2.1.3 2021-06-09 16:31:20
 
 
 [PHP Modules]
diff --git a/build-and-push.sh b/build-and-push.sh
index 30f3097..163bdab 100755
--- a/build-and-push.sh
+++ b/build-and-push.sh
@@ -1,4 +1,4 @@
 #!/bin/sh
-docker build . -t swiftmade/laravel-test-container:7.4
-docker push swiftmade/laravel-test-container:7.4
-docker run --rm swiftmade/laravel-test-container:7.4 /bin/bash -c "php -v && echo $'\n' && composer --version && echo $'\n' && php -m"
\ No newline at end of file
+docker build . -t swiftmade/laravel-test-container:8.0
+docker push swiftmade/laravel-test-container:8.0
+docker run --rm swiftmade/laravel-test-container:8.0 /bin/bash -c "php -v && echo $'\n' && composer --version && echo $'\n' && php -m"
\ No newline at end of file