Sign inSign up

mtahv3/oberd-webapp

By mtahv3

Updated over 9 years ago

Oberd-webapp

Image
0

933

mtahv3/oberd-webapp repository overview

Oberd Webapp Docker Container

This container is a good starting point if you want to create a PHP web application using apache as the webserver. The image is built ontop of Alpine Linux which is a lightweight, security oriented Linux distro.

What's Included

The container is meant to be small and lightweight, so in turn is fairly minimal by design. However, the container should have everything contained that you would need to create a project that is PHP based and served by Apache.

Installed PHP Modules
PHP 5.6.14
JSON
GD
Common
SOAP
MCrypt
PDO
MySQLi
XML
CURL
Phar
Pear
Cli
OpenSSL
DOM
PDO
ctype
posix
Installed Apache Modules
Apache 2.4.16
SSL
Proxy

Working With the Image

While you're highly unlikely to use this image as you entire container, and are more likely to use this as your base image, below are some commands that you can use to make additions and changes to the image.

Typical usage
FROM mtahv3/oberd-webapp:0.1
Starting the container

To start the container, you would use the following command

$ docker run --name app1 -d -P mtahv3/oberd-webapp:0.1
Verify the container is running
$ docker ps

CONTAINER ID        IMAGE                     COMMAND                  CREATED             STATUS              PORTS                                           NAMES
7a3e6c2cc5a6        mtahv3/oberd-webapp:0.1   "apachectl -D FOREGRO"   4 seconds ago       Up 3 seconds        0.0.0.0:32775->80/tcp, 0.0.0.0:32774->443/tcp   app1
Logging into the container

While the containers should more or less be treated as immutable servers, you can access the container and get a command line with the following command.

$ docker exec -it app1 sh
Alpine Linux Commands

While you should add any packages to the container via the Dockerfile and submitting a Pull Request on this repo, if you need to play around with a container to get what you need before you edit the Dockerfile the following commands may help

Updating the repository indexes

$ apk update

Searching the repos

$ apk search [term]

Adding a package

$ apk add [package]

Tag summary

Content type

Image

Digest

Size

20.7 MB

Last updated

over 9 years ago

docker pull mtahv3/oberd-webapp:0.8