|
| 1 | +## PHP-APACHE-DOCKER |
| 2 | + |
| 3 | +For demo this source code list the S3 buckets and the Objects in the bucket. You can have your own codes in `./src` |
| 4 | + |
| 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: |
| 15 | +``` |
| 16 | +$> docker build -t phpapp:latest . |
| 17 | +``` |
| 18 | + |
| 19 | +Once, image is sucessfully build you can run start the container with the build image |
| 20 | +``` |
| 21 | +$> docker run --rm -p 8080:80 -it phpapp:latest |
| 22 | +``` |
| 23 | + |
| 24 | +You can access the app by going to `http://localhost:8080/aws.php` |
0 commit comments