Skip to content

Commit 986425f

Browse files
committed
removing aws stuff
1 parent e608d0d commit 986425f

File tree

7 files changed

+2
-145
lines changed

7 files changed

+2
-145
lines changed

Dockerfile

-6
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,19 @@ RUN apt-get update && \
2121
php7.0-zip \
2222
php7.0-soap \
2323
php7.0-opcache \
24-
composer \
2524
curl
2625

2726
COPY apache-config.conf /etc/apache2/sites-available/000-default.conf
2827
COPY run /usr/local/bin/run
2928
RUN chmod +x /usr/local/bin/run
3029
RUN a2enmod rewrite
3130

32-
RUN cd /tmp && curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
33-
3431
# Update the PHP.ini file, enable <? ?> tags and quieten logging.
3532
RUN sed -i "s/short_open_tag = Off/short_open_tag = On/" /etc/php/7.0/apache2/php.ini
3633
RUN sed -i "s/error_reporting = .*$/error_reporting = E_ERROR | E_WARNING | E_PARSE/" /etc/php/7.0/apache2/php.ini
3734

3835
ADD src /var/www/
3936
WORKDIR /var/www/
40-
RUN /usr/local/bin/composer update
41-
42-
ADD awsconfig /.aws/credentials
4337

4438
EXPOSE 80
4539
CMD ["/usr/local/bin/run"]

README.md

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
## PHP-APACHE-DOCKER
22

3-
For demo this source code list the S3 buckets and the Objects in the bucket. You can have your own codes in `./src`
3+
You can have your own codes in `./src`
44

5-
6-
To test the demo create aws config with name `awsconfig` in this cloned directory
7-
```
8-
[default]
9-
aws_access_key_id = XXXXXXXXXXXXX
10-
aws_secret_access_key = XXXXXXXXXXXXXXXXXX
11-
```
12-
13-
14-
Now, you can build the docker image by running following command:
155
```
166
$> docker build -t phpapp:latest .
177
```
@@ -21,4 +11,4 @@ Once, image is sucessfully build you can run start the container with the build
2111
$> docker run --rm -p 8080:80 -it phpapp:latest
2212
```
2313

24-
You can access the app by going to `http://localhost:8080/aws.php`
14+
You can access the app by going to `http://localhost:8080/`

src/aws.php

-36
This file was deleted.

src/composer.json

-14
This file was deleted.

src/s3_describe.php

-32
This file was deleted.

src/templates/s3list.twig

-21
This file was deleted.

src/templates/s3listbucket.twig

-24
This file was deleted.

0 commit comments

Comments
 (0)