{"id":21405366,"url":"https://github.com/karimsa/postsec-docker","last_synced_at":"2026-01-03T15:04:03.228Z","repository":{"id":149731033,"uuid":"98328508","full_name":"karimsa/postsec-docker","owner":"karimsa","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-26T21:11:08.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T21:04:00.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karimsa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-25T16:38:21.000Z","updated_at":"2017-07-26T15:44:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"c95c8385-ce7a-4b7a-9c9f-73b06111ffd7","html_url":"https://github.com/karimsa/postsec-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fpostsec-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fpostsec-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fpostsec-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fpostsec-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karimsa","download_url":"https://codeload.github.com/karimsa/postsec-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902293,"owners_count":20366259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T16:24:47.595Z","updated_at":"2026-01-03T15:03:58.197Z","avatar_url":"https://github.com/karimsa.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postsec-docker\n\nDocker image definitions for the Post-Secondary Database Registration\napplication.\n\n - [Environment](#environment)\n  - [Development Environment](#development-environment)\n  - [Production Environment](#production-environment)\n - [Available images](#available-images)\n - [Usage](#usage)\n\n## Environment\n\n - OS: Ubuntu Xenial (16.04)\n - Apache / v2.4.18\n - PHP / v5.6.31-1\n - MariaDB / v10.1.25\n\n### Development Environment\n\n - Defines public directory as a *volume* so that it is container-specific and not image-specific.\n\n### Production Environment\n\n - Defines public directory as a directory copied from host to image.\n\n## Available images\n\n - [`postsec/base`](Dockerfile): base image that provides prerequisites.\n - [`postsec/dev`](development/Dockerfile): extends base image and sets up development environment.\n - [`postsec/prod`](production/Dockerfile): extends base image and sets up production environment.\n\n## Usage\n\nThese images are not currently part of any docker registry - neither public nor private. Due to\nthis, you will have to compile the images locally. The process is not much different but slightly\nslower.\n\n### Prerequisites\n\n - Docker (any version - probably)\n - `make` (any version)\n\n### Building\n\n - To build all images, just run `make` or `make all`.\n - To build the base image, run `make base`.\n - To build the development image, run `make development` or `make dev`.\n - To build the production image, run `make production` or `make prod`.\n\n### Running\n\nFor both versions, you will need to have a port free on the host computer to use for\nhosting the application. Within the container, apache will be running on port 80. For\nthe purposes of this README, I will assume that your host port is 8080.\n\n**Development version**\n\nThe development version requires you to mount the local application directory\nto `/var/www/html`. For the purposes of this README, let's assume that your application\nis stored locally at `/app`.\n\n*Start in detached mode (container will run in background).*\n\n```\n$ docker run -d -v /app:/var/www/html -p 8080:80 postsec/dev\n```\n\n*Start in interactive foreground mode (Ctrl+C will close the server \u0026 logs will be displayed).*\n\n```\n$ docker run -it -v /app:/var/www/html -p 8080:80 postsec/dev\n```\n\n**Production version**\n\nThe production version requires you to copy the application over to `production/www`\nbefore compiling the image. Sample build process:\n\n```\n$ rm -rf production/www\n$ cp -R /app production/www\n$ make prod\n```\n\n*Start in detached mode (container will run in background).*\n\n```\n$ docker run -d -p 8080:80 postsec/prod\n```\n\n*Start in interactive foreground mode (Ctrl+C will close the server \u0026 logs will be displayed).*\n\n```\n$ docker run -it -p 8080:80 postsec/prod\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fpostsec-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarimsa%2Fpostsec-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fpostsec-docker/lists"}