Skip to content

Commit

Permalink
add php calendar functions
Browse files Browse the repository at this point in the history
Upgrade to Codeigniter 4.1.9
  • Loading branch information
atsanna committed Apr 22, 2022
1 parent e4ed984 commit a38f8d6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt-get install --fix-missing -y libpq-dev
RUN apt-get install --no-install-recommends -y libpq-dev
RUN apt-get install -y libxml2-dev libbz2-dev zlib1g-dev
RUN apt-get -y install libsqlite3-dev libsqlite3-0 mariadb-client curl exif ftp
RUN docker-php-ext-install calendar
RUN docker-php-ext-install intl
RUN docker-php-ext-install mysqli pdo pdo_mysql
RUN docker-php-ext-enable mysqli
Expand Down Expand Up @@ -44,7 +45,7 @@ RUN chmod +x /startScript.sh

RUN cd /var/www/html

RUN composer create-project codeigniter4/appstarter codeigniter4 v4.1.8
RUN composer create-project codeigniter4/appstarter codeigniter4 v4.1.9
RUN chmod -R 0777 /var/www/html/codeigniter4/writable

RUN mv codeigniter4 /
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-php7.4
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt-get install --fix-missing -y libpq-dev
RUN apt-get install --no-install-recommends -y libpq-dev
RUN apt-get install -y libxml2-dev libbz2-dev zlib1g-dev
RUN apt-get -y install libsqlite3-dev libsqlite3-0 mariadb-client curl exif ftp
RUN docker-php-ext-install calendar
RUN docker-php-ext-install intl
RUN docker-php-ext-install mysqli pdo pdo_mysql
RUN docker-php-ext-enable mysqli
Expand Down Expand Up @@ -44,7 +45,7 @@ RUN chmod +x /startScript.sh

RUN cd /var/www/html

RUN composer create-project codeigniter4/appstarter codeigniter4 v4.1.8
RUN composer create-project codeigniter4/appstarter codeigniter4 v4.1.9
RUN chmod -R 0777 /var/www/html/codeigniter4/writable

RUN mv codeigniter4 /
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-php8.0
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt-get install --fix-missing -y libpq-dev
RUN apt-get install --no-install-recommends -y libpq-dev
RUN apt-get install -y libxml2-dev libbz2-dev zlib1g-dev
RUN apt-get -y install libsqlite3-dev libsqlite3-0 mariadb-client curl exif ftp
RUN docker-php-ext-install calendar
RUN docker-php-ext-install intl
RUN docker-php-ext-install mysqli pdo pdo_mysql
RUN docker-php-ext-enable mysqli
Expand Down Expand Up @@ -44,7 +45,7 @@ RUN chmod +x /startScript.sh

RUN cd /var/www/html

RUN composer create-project codeigniter4/appstarter codeigniter4 v4.1.8
RUN composer create-project codeigniter4/appstarter codeigniter4 v4.1.9
RUN chmod -R 0777 /var/www/html/codeigniter4/writable

RUN mv codeigniter4 /
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Docker Image for CodeIgniter4 development
[![Docker Build Status](https://img.shields.io/docker/cloud/build/atsanna/codeigniter4?style=for-the-badge)](https://hub.docker.com/r/atsanna/codeigniter4/)
[![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/atsanna/codeigniter4/v4.1.8?style=for-the-badge)](https://hub.docker.com/r/atsanna/codeigniter4/)
[![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/atsanna/codeigniter4/v4.1.9?style=for-the-badge)](https://hub.docker.com/r/atsanna/codeigniter4/)
![Docker Pulls](https://img.shields.io/docker/pulls/atsanna/codeigniter4?style=for-the-badge)

This repository provides you a development environment without requiring you to install PHP, a web server, and any other server software on your local machine. For this, it requires Docker and Docker Compose.
Expand All @@ -26,22 +26,22 @@ cd codeigniter

build the image:<br>
```
docker build . -t codeigniter:4.1.8
docker build . -t codeigniter:4.1.9
```

start the container:
```
docker container run -it --publish 80:80 --name ci4 -v /localfolder:/var/www/html codeigniter:4.1.8
docker container run -it --publish 80:80 --name ci4 -v /localfolder:/var/www/html codeigniter:4.1.9
```

## Build image with PHP 7.4
```
docker build -f Dockerfile-php7.4 -t codeigniter:4.1.8 .
docker build -f Dockerfile-php7.4 -t codeigniter:4.1.9 .
```

## Build image with PHP 8.0
```
docker build -f Dockerfile-php8.0 -t codeigniter:4.1.8 .
docker build -f Dockerfile-php8.0 -t codeigniter:4.1.9 .
```

## Installation
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ version: "3"
services:
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
# C O D E I G N I T E R v4.1.8 #
# C O D E I G N I T E R v4.1.9 #
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
codeigniter4:
image: atsanna/codeigniter4:latest
# image: atsanna/codeigniter4:v4.1.8-php7.4
# image: atsanna/codeigniter4:v4.1.8-php8.0
# image: atsanna/codeigniter4:v4.1.9-php7.4
# image: atsanna/codeigniter4:v4.1.9-php8.0
container_name: 'codeigniter4'
ports:
- 80:80
Expand Down

0 comments on commit a38f8d6

Please sign in to comment.