Skip to content

Commit

Permalink
Verify php & node version, add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning committed Mar 26, 2024
1 parent b9e5dad commit f57b8a0
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 24 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/push-docker-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,18 @@ jobs:
fail-fast: true
matrix:
include:
# - ubuntu-version: 20.04
# php-version: 8.1
# node-version: 12
# - ubuntu-version: 20.04
# php-version: 8.1
# node-version: 20
- ubuntu-version: 20.04
php-version: 8.1
node-version: 12
- ubuntu-version: 20.04
php-version: 8.2
node-version: 12
# - ubuntu-version: 20.04
# php-version: 8.2
# node-version: 20
# - ubuntu-version: 20.04
# php-version: 8.3
# node-version: 12
# - ubuntu-version: 20.04
# php-version: 8.3
# node-version: 20
- ubuntu-version: 22.04
php-version: 8.2
node-version: 12
- ubuntu-version: 22.04
php-version: 8.3
node-version: 12

steps:
-
Expand Down
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,14 @@ RUN apt-get update && \
apt-get clean && rm -rf /var/cache/apt/lists

# Composer
RUN curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer && \
chmod +x /usr/local/bin/composer && \
composer self-update
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN curl https://get.volta.sh | bash

# Other
RUN mkdir ~/.ssh && \
touch ~/.ssh_config

# Display versions installed
RUN php -v
RUN composer --version
RUN node -v
RUN npm -v
# verify versions installed
RUN php -v && php -r "exit((int)!version_compare(PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION, '${PHP_VERSION}', '='));"
RUN node -v && [ `node -v | sed -e "s/^v//" -e "s/\..*$//"` -eq ${NODE_VERSION} ]
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Docker image for Continuous Integration

## Available tags

See the [docker-ci-php-node package](https://github.com/justbetter/docker-ci-php-node/pkgs/container/docker-ci-php-node)
The tag format is as follows: `<branch/tag>-<ubuntu version>-<php version>-<node version>`

Missing a version? Make a PR adding this to [the version matrix](https://github.com/justbetter/docker-ci-php-node/blob/master/.github/workflows/push-docker-container.yml)

## System information
* [Ubuntu](https://ubuntu.com/)

## Installed packages
* ssh
* openssh-client
* rsync
* curl
* wget
* PHP
* mysql
* pgsql
* memcached
* sqlite
* bz2
* zip
* mbstring
* curl
* gd
* xml
* bcmath
* intl
* imap
* [Composer](https://getcomposer.org/)
* [PHPUnit](https://phpunit.de/)
* [Node.js](https://nodejs.org/)
* [npm](https://www.npmjs.com/)
* [volta](https://volta.sh/)

0 comments on commit f57b8a0

Please sign in to comment.