Skip to content

Commit aab007a

Browse files
authored
Revert "Develop"
1 parent 35c69d9 commit aab007a

2 files changed

Lines changed: 104 additions & 104 deletions

File tree

Dockerfile

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
FROM php:7.3-apache
2-
3-
LABEL maintainer="Antonio Sanna <[email protected]>"
4-
5-
RUN apt-get update
6-
RUN apt-get upgrade -y
7-
8-
RUN apt-get install --fix-missing -y libpq-dev
9-
RUN apt-get install --no-install-recommends -y libpq-dev
10-
RUN apt-get install -y libxml2-dev libbz2-dev zlib1g-dev
11-
RUN apt-get -y install libsqlite3-dev libsqlite3-0 mariadb-client curl exif ftp php-mysqli
12-
RUN docker-php-ext-install intl
13-
RUN apt-get -y install --fix-missing zip unzip
14-
15-
# Composer
16-
RUN curl -sS https://getcomposer.org/installer | php
17-
RUN mv composer.phar /usr/local/bin/composer
18-
RUN chmod +x /usr/local/bin/composer
19-
RUN composer self-update
20-
21-
ADD conf/apache.conf /etc/apache2/sites-available/000-default.conf
22-
23-
RUN a2enmod rewrite
24-
25-
ADD startScript.sh /startScript.sh
26-
RUN chmod +x /startScript.sh
27-
28-
RUN cd /var/www/html
29-
30-
RUN composer create-project codeigniter4/appstarter codeigniter4 v4.0.4
31-
RUN chmod -R 0777 /var/www/html/codeigniter4/writable
32-
33-
RUN mv codeigniter4 /
34-
35-
RUN apt-get clean \
36-
&& rm -r /var/lib/apt/lists/*
37-
38-
EXPOSE 80
39-
VOLUME ["/var/www/html", "/var/log/apache2", "/etc/apache2"]
40-
41-
CMD ["bash", "/startScript.sh"]
1+
FROM php:7.3-apache
2+
3+
LABEL maintainer="Antonio Sanna <[email protected]>"
4+
5+
RUN apt-get update
6+
RUN apt-get upgrade -y
7+
8+
RUN apt-get install --fix-missing -y libpq-dev
9+
RUN apt-get install --no-install-recommends -y libpq-dev
10+
RUN apt-get install -y libxml2-dev libbz2-dev zlib1g-dev
11+
RUN apt-get -y install libsqlite3-dev libsqlite3-0 mariadb-client curl exif ftp
12+
RUN docker-php-ext-install intl
13+
RUN apt-get -y install --fix-missing zip unzip
14+
15+
# Composer
16+
RUN curl -sS https://getcomposer.org/installer | php
17+
RUN mv composer.phar /usr/local/bin/composer
18+
RUN chmod +x /usr/local/bin/composer
19+
RUN composer self-update
20+
21+
ADD conf/apache.conf /etc/apache2/sites-available/000-default.conf
22+
23+
RUN a2enmod rewrite
24+
25+
ADD startScript.sh /startScript.sh
26+
RUN chmod +x /startScript.sh
27+
28+
RUN cd /var/www/html
29+
30+
RUN composer create-project codeigniter4/appstarter codeigniter4 v4.0.4
31+
RUN chmod -R 0777 /var/www/html/codeigniter4/writable
32+
33+
RUN mv codeigniter4 /
34+
35+
RUN apt-get clean \
36+
&& rm -r /var/lib/apt/lists/*
37+
38+
EXPOSE 80
39+
VOLUME ["/var/www/html", "/var/log/apache2", "/etc/apache2"]
40+
41+
CMD ["bash", "/startScript.sh"]

README.md

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
1-
## Docker Image for CodeIgniter4 development
2-
[![Docker Build Status](https://img.shields.io/docker/cloud/build/atsanna/codeigniter4?style=for-the-badge)](https://hub.docker.com/r/atsanna/codeigniter4/)
3-
[![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/atsanna/codeigniter4/v4.0.4?style=for-the-badge)](https://hub.docker.com/r/atsanna/codeigniter4/)
4-
![Docker Pulls](https://img.shields.io/docker/pulls/atsanna/codeigniter4?style=for-the-badge)
5-
6-
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.
7-
8-
Basic example to create your container (tested on Ubuntu 18.04 - Docker version 19.03.5, build 633a0ea838):
9-
10-
**NOTE: This package is under early development and is not ready for prime-time.**
11-
12-
## Build Image
13-
14-
create this structure:
15-
```
16-
codeigniter/
17-
- conf/apache.conf
18-
- Dockerfile
19-
- startScript.sh
20-
```
21-
22-
Go to the codeigniter folder:
23-
```
24-
cd codeigniter
25-
```
26-
27-
build the image:<br>
28-
```
29-
docker build . -t codeginiter:4.0.4
30-
```
31-
32-
start the container:
33-
```
34-
docker container run --publish 80:80 --name ci4 -v /localfolder:/var/www/html codeginiter:4.0.4
35-
```
36-
37-
## Installation
38-
39-
1. Install [docker](https://docs.docker.com/engine/installation/) and [docker-compose](https://docs.docker.com/compose/install/) ;
40-
41-
2. Copy `docker-compose.yml` file to your project root path, and edit it according to your needs ;
42-
43-
3. From your project directory, start up your application by running:
44-
45-
```sh
46-
docker-compose up -d
47-
```
48-
49-
4. From your project directory, stop your application by running:
50-
51-
```sh
52-
docker-compose down --volumes
53-
```
54-
55-
## Contributing
56-
57-
Contributions are welcome!
58-
Leave an issue on Github, or create a Pull Request.
59-
60-
61-
## Licence
62-
63-
This work is under [MIT](LICENSE) licence.
1+
## Docker Image for CodeIgniter4 development
2+
[![Docker Build Status](https://img.shields.io/docker/cloud/build/atsanna/codeigniter4?style=for-the-badge)](https://hub.docker.com/r/atsanna/codeigniter4/)
3+
[![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/atsanna/codeigniter4/v4.0.4?style=for-the-badge)](https://hub.docker.com/r/atsanna/codeigniter4/)
4+
![Docker Pulls](https://img.shields.io/docker/pulls/atsanna/codeigniter4?style=for-the-badge)
5+
6+
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.
7+
8+
Basic example to create your container (tested on Ubuntu 18.04 - Docker version 19.03.5, build 633a0ea838):
9+
10+
**NOTE: This package is under early development and is not ready for prime-time.**
11+
12+
## Build Image
13+
14+
create this structure:
15+
```
16+
codeigniter/
17+
- conf/apache.conf
18+
- Dockerfile
19+
- startScript.sh
20+
```
21+
22+
Go to the codeigniter folder:
23+
```
24+
cd codeigniter
25+
```
26+
27+
build the image:<br>
28+
```
29+
docker build . -t codeginiter:4.0.4
30+
```
31+
32+
start the container:
33+
```
34+
docker container run --publish 80:80 --name ci4 -v /localfolder:/var/www/html codeginiter:4.0.4
35+
```
36+
37+
## Installation
38+
39+
1. Install [docker](https://docs.docker.com/engine/installation/) and [docker-compose](https://docs.docker.com/compose/install/) ;
40+
41+
2. Copy `docker-compose.yml` file to your project root path, and edit it according to your needs ;
42+
43+
3. From your project directory, start up your application by running:
44+
45+
```sh
46+
docker-compose up -d
47+
```
48+
49+
4. From your project directory, stop your application by running:
50+
51+
```sh
52+
docker-compose down --volumes
53+
```
54+
55+
## Contributing
56+
57+
Contributions are welcome!
58+
Leave an issue on Github, or create a Pull Request.
59+
60+
61+
## Licence
62+
63+
This work is under [MIT](LICENSE) licence.

0 commit comments

Comments
 (0)