Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/labor-digital/docker-base-images
The docker base images used for our projects
https://github.com/labor-digital/docker-base-images
docker
Last synced: about 1 month ago
JSON representation
The docker base images used for our projects
- Host: GitHub
- URL: https://github.com/labor-digital/docker-base-images
- Owner: labor-digital
- License: apache-2.0
- Created: 2020-02-15T09:15:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T02:47:01.000Z (3 months ago)
- Last Synced: 2024-10-21T05:59:13.482Z (3 months ago)
- Topics: docker
- Language: Shell
- Size: 279 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# LABOR.digital - Docker Base Images
This is a mono-repository for all our docker base images we use in our projects. Currently, we have multiple tech-stacks for NODE.js and PHP.
We have a unique tag for each minor release of those stacks. The base images come with a bunch of extensions already preconfigured.Note: As we are a company based in Germany, the locale and timezone are already preconfigured for Germany!
## Image Variants
We have multiple variants for each tech stack. By default, each stack has a base variant and
a dev variant. The "-dev" variant is used for local development and for installing / building dependencies (composer/npm) in the CI pipeline.
The production image, on the other hand, only inherits from the base image, so only the required code ends up in your prod environment.- stackxx: ```labordigital/docker-base-images:phpxx```
The root image the other variants inherit from
- stackxx-dev: ```labordigital/docker-base-images:phpxx-dev```
The base image with additional helpers for the development environment like composer already installed.### PHP - Extended Versions
For some PHP Versions, we provide an "extended" version, which includes Imagick, SOAP and poppler-utils (PDF-to-text) already pre-installed
- stackxx-ext: ```labordigital/docker-base-images:phpxx-ext```
The base image with imagick, SOAP and poppler-utils (PDF-to-text) already pre-installed
- stackxx-ext-dev: ```labordigital/docker-base-images:phpxx-ext-dev```
The extended base image with additional helpers for the development environment### Legacy Versions
All packages starting from PHP >= 7.2 and NODE >= 10 have a different shell file setup
than the older images. To provide a smooth transition for existing projects, the PHP images for
versions 7.2 and 7.3, will have an additional "-legacy" variant
that still has the same .sh file setup. **PHP >= 7.4 will NO LONGER get those legacy versions, so
update your scripts to match before migrating**## Environment Variables
All environment variables that are inherited from the base image ([PHP](https://hub.docker.com/_/php) | [NODE](https://hub.docker.com/_/node))In addition we have those two environment variables for the packages
- PROJECT_ENV ("prod") Helper to define the environment for your application. SHOULD BE "dev", "staging" or "prod";
- APACHE_WEBROOT ("/var/www/html") Defines the apache webroot directory## Boilerplate
In some stack directories, you will find a "boilerplate" folder, containing a basic project implementation using the images.
To use them, clone them to your device, search and replace "§PROJECT_NAME§" in the sources, with a name of your liking and start the development environment using docker-compose up.If you want more convenience, you can use our [CLI tool](https://github.com/labor-digital/lab-cli).
## Postcardware
You're free to use these images, but if it makes it to your production environment, we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.Our address is: LABOR.digital - Fischtorplatz 21 - 55116 Mainz, Germany.
We publish all received postcards on our [company website](https://labor.digital).