-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* php8.3 * use PHP_VERSION env * upgrade to latest ubuntu LTS * goss update * node update * update goss file
- Loading branch information
Showing
3 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
FROM ubuntu:22.04 | ||
LABEL maintainer="Luis Dalmolin <[email protected]>" | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
ENV PHP_VERSION="8.3" | ||
ENV GOSS_VERSION="0.4.4" | ||
ENV NODE_MAJOR="20" | ||
|
||
RUN apt-get update && apt-get install -y software-properties-common curl ca-certificates gnupg | ||
RUN add-apt-repository ppa:ondrej/php -y | ||
RUN add-apt-repository ppa:git-core/ppa -y | ||
RUN apt-get update -y | ||
RUN apt-get install -y \ | ||
unzip \ | ||
php${PHP_VERSION}-cli \ | ||
php${PHP_VERSION}-gd \ | ||
php${PHP_VERSION}-ldap \ | ||
php${PHP_VERSION}-mbstring \ | ||
php${PHP_VERSION}-mysql \ | ||
php${PHP_VERSION}-pgsql \ | ||
php${PHP_VERSION}-sqlite3 \ | ||
php${PHP_VERSION}-xml \ | ||
php${PHP_VERSION}-xsl \ | ||
php${PHP_VERSION}-zip \ | ||
php${PHP_VERSION}-curl \ | ||
php${PHP_VERSION}-soap \ | ||
php${PHP_VERSION}-gmp \ | ||
php${PHP_VERSION}-bcmath \ | ||
php${PHP_VERSION}-intl \ | ||
php${PHP_VERSION}-imap \ | ||
php${PHP_VERSION}-phpdbg \ | ||
php${PHP_VERSION}-bz2 \ | ||
php${PHP_VERSION}-redis | ||
|
||
# composer | ||
ENV COMPOSER_HOME=/composer | ||
ENV PATH=./vendor/bin:/composer/vendor/bin:/root/.yarn/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
# mysql client | ||
RUN apt-get install -y mysql-client | ||
|
||
# git | ||
RUN apt-get install -y git | ||
|
||
# node | ||
RUN mkdir -p /etc/apt/keyrings | ||
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg | ||
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list | ||
RUN apt-get update && apt-get install nodejs -y | ||
|
||
|
||
# yarn | ||
RUN npm install -g yarn | ||
|
||
# goss | ||
RUN curl -fsSL https://goss.rocks/install | GOSS_VER=v${GOSS_VERSION} sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
command: | ||
node --version: | ||
exit-status: 0 | ||
stdout: | ||
- "v20" | ||
yarn --version: | ||
exit-status: 0 | ||
npm --version: | ||
exit-status: 0 | ||
stdout: | ||
- "10" | ||
git --version: | ||
exit-status: 0 | ||
composer --version: | ||
exit-status: 0 | ||
php --version: | ||
exit-status: 0 | ||
stdout: | ||
- 8.3 | ||
php -m: | ||
exit-status: 0 | ||
stdout: | ||
- bcmath | ||
- calendar | ||
- exif | ||
- gd | ||
- iconv | ||
- imap | ||
- intl | ||
- ldap | ||
- mbstring | ||
- mysqli | ||
- pcntl | ||
- pdo_mysql | ||
- pdo_pgsql | ||
- pgsql | ||
- soap | ||
- xml | ||
- zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Laravel Test Runner - PHP 8.3 | ||
|
||
Docker Container with PHP 8.3 and extensions to be compatible with most Laravel applications. Also installed on this container we have Composer and NodeJS/NPM/Yarn. | ||
|
||
## Building and pushing the image | ||
|
||
**Build**: | ||
|
||
``` | ||
docker build --pull -t kirschbaumdevelopment/laravel-test-runner . | ||
``` | ||
|
||
**Tag**: | ||
|
||
``` | ||
docker tag kirschbaumdevelopment/laravel-test-runner:latest kirschbaumdevelopment/laravel-test-runner:8.3 | ||
``` | ||
|
||
**Push**: | ||
|
||
``` | ||
docker push kirschbaumdevelopment/laravel-test-runner:8.3 | ||
``` | ||
|
||
## Credits | ||
|
||
- [Pushpak Chhajed](https://github.com/pushpak1300) | ||
|
||
## Sponsorship | ||
|
||
Development of this package is sponsored by Kirschbaum Development Group, a developer driven company focused on problem solving, team building, and community. Learn more [about us](https://kirschbaumdevelopment.com) or [join us](https://careers.kirschbaumdevelopment.com)! |