Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appuio/example-php-docker-helloworld
https://github.com/appuio/example-php-docker-helloworld
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/appuio/example-php-docker-helloworld
- Owner: appuio
- License: apache-2.0
- Created: 2016-04-12T20:10:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T22:40:27.000Z (9 months ago)
- Last Synced: 2024-04-13T08:05:13.111Z (9 months ago)
- Language: PHP
- Size: 317 KB
- Stars: 1
- Watchers: 5
- Forks: 189
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Docker Build Helloworld Example
This is an example php application, which can be deployed to APPUiO using the following commands
## How to deploy
### CLI / oc Client
#### Create New OpenShift Project
```bash
oc new-project example-php-dockerfile-helloworld
```#### Create Application and expose Service
```bash
oc new-app https://github.com/appuio/example-php-docker-helloworld.git --strategy=docker --name=appuio-php-docker-exoc expose service appuio-php-docker-ex
```## Build and run the image
Build the image:
```bash
buildah build-using-dockerfile -t appuio/example-php-docker-helloworld:latest .
```Run it locally with the following command. Beware that `--rmi` automatically removes the built image when the container stops, so you either have to rebuild it or remove the parameter from the command.
```bash
podman run --rm --rmi --interactive --publish 8080:8080 localhost/appuio/example-php-docker-helloworld
```