Skip to content

Commit

Permalink
Upgrade to Codeigniter 4.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
atsanna committed Jan 10, 2022
1 parent 35aa314 commit 5cd2062
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN chmod +x /startScript.sh

RUN cd /var/www/html

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

RUN mv codeigniter4 /
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-php7.4
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN chmod +x /startScript.sh

RUN cd /var/www/html

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

RUN mv codeigniter4 /
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-php8.0
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN chmod +x /startScript.sh

RUN cd /var/www/html

RUN composer create-project codeigniter4/appstarter codeigniter4 v4.1.6
RUN composer create-project codeigniter4/appstarter codeigniter4 v4.1.7
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.6?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.7?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.6
docker build . -t codeigniter:4.1.7
```

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

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

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

## 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.6 #
# C O D E I G N I T E R v4.1.7 #
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
codeigniter4:
image: atsanna/codeigniter4:latest
# image: atsanna/codeigniter4:v4.1.6-php7.4
# image: atsanna/codeigniter4:v4.1.6-php8.0
# image: atsanna/codeigniter4:v4.1.7-php7.4
# image: atsanna/codeigniter4:v4.1.7-php8.0
container_name: 'codeigniter4'
ports:
- 80:80
Expand Down

0 comments on commit 5cd2062

Please sign in to comment.