Skip to content

Commit

Permalink
✨ allow execution of local files (#137)
Browse files Browse the repository at this point in the history
* ✨ allow execution of local files

* Update .additional_bashrc.sh

* 🔥 remove php 7 from pipeline
  • Loading branch information
Kanti authored Feb 11, 2025
1 parent d222027 commit 84a1f74
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .additional_bashrc.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export LS_COLORS="${LS_COLORS}di=1;34:"
alias ll='ls -alh'
export PATH=$PATH:~/.config/composer/vendor/bin:~/.composer/vendor/bin:./bin:./vendor/bin:./node_modules/.bin
# add some PATHS for development
export PATH=$PATH:~/.config/composer/vendor/bin:~/.composer/vendor/bin:./bin:./vendor/bin:./node_modules/.bin:.

# only enable docker aliases if docker-socket is mounted
CONTAINER_ID=$(basename $(findmnt /etc/hosts -o SOURCE | grep -o 'containers\/.\+\/'))
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: ci

on:
schedule:
# build every first of the month
- cron: '0 0 1 * *'
# build every Monday at 7:00
- cron: '0 7 * * 1'
push:
workflow_dispatch:

Expand All @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
php: [ '8.0', '8.1', '8.2', '8.3' ]
webserver: [ 'apache', 'nginx' ]
distroAddon: [ '', '-alpine' ]
steps:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ARG FROM=webdevops/php-nginx-dev:8.2-alpine
ARG DIST_ADDON=-alpine
FROM $FROM as base-alpine
FROM $FROM AS base-alpine
# Install additional software Alpine:
RUN apk add --no-cache sudo vim nano git-perl less tree bash-completion mariadb-client iputils sshpass gdb tzdata findmnt jq docker-cli file && \
echo "application ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

FROM $FROM as base
FROM $FROM AS base
# Install additional software Debian:
RUN apt-get update && \
apt-get install -y sudo vim nano less tree bash-completion mariadb-client iputils-ping sshpass gdb jq && \
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ We recommend using [pluswerk/docker-global](https://github.com/pluswerk/docker-g

# Tags

- php versions supported: `7.1`-`8.3`
- php versions supported: `8.0`-`8.3`
- php versions unsupported: `5.6`-`7.4`
- webserver supported: `nginx` and `apache`
- alpine images: `-alpine`
- examples
- `ghcr.io/pluswerk/php-dev:nginx-8.3-alpine`
- `ghcr.io/pluswerk/php-dev:apache-7.1-alpine`
- `ghcr.io/pluswerk/php-dev:nginx-8.0`
- `pluswerk/php-dev:nginx-8.3-alpine`
- `pluswerk/php-dev:apache-8.0-alpine`
- `pluswerk/php-dev:nginx-8.2`
- list of [all Tags](https://github.com/pluswerk/php-dev/pkgs/container/php-dev/versions?filters%5Bversion_type%5D=tagged)

## Setup
Expand Down Expand Up @@ -55,7 +56,7 @@ Example file: compose/Development/docker-compose.yml
```yaml
services:
web:
image: ghcr.io/pluswerk/php-dev:nginx-8.3-alpine
image: pluswerk/php-dev:nginx-8.3-alpine

volumes:
- .:/app
Expand Down

0 comments on commit 84a1f74

Please sign in to comment.