Skip to content

Commit 1dc4f73

Browse files
committed
Added README, upgrade testing image for base-python, upgrade base image to 1.0.1
1 parent 4dc21b6 commit 1dc4f73

5 files changed

Lines changed: 90 additions & 10 deletions

File tree

.drone.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kind: pipeline
22
type: docker
3-
name: build-test-build
3+
name: build-test
44

55
platform:
66
os: linux
@@ -47,13 +47,13 @@ steps:
4747
PGID: "1000"
4848

4949
- name: test image
50-
image: python:2.7.18-alpine
50+
image: fabiodcorreia/base-python:latest
5151
commands:
5252
- sleep 60
5353
- sh ./test/start.sh
5454

5555
depends_on:
56-
- build-test-build
56+
- build-test
5757

5858
---
5959
kind: pipeline

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM fabiodcorreia/base-alpine:1.0.0
1+
FROM fabiodcorreia/base-alpine:1.0.1
22

33
# set version label
44
ARG BUILD_DATE
@@ -33,7 +33,8 @@ RUN \
3333
# add local files
3434
COPY root/ /
3535

36-
# ports and volumes
36+
# ports
3737
EXPOSE 80
3838

39+
# volumes
3940
VOLUME /config

README.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Docker PHP Base Image
2+
3+
![Maintenance](https://img.shields.io/maintenance/yes/2020?style=plastic) [![Drone Status](https://img.shields.io/drone/build/fabiodcorreia/docker-base-php?style=plastic)](https://cloud.drone.io/fabiodcorreia/docker-base-php) [![Latest Release](https://img.shields.io/github/v/release/fabiodcorreia/docker-base-php?style=plastic)](https://github.com/fabiodcorreia/docker-base-php/releases/latest) [![GitHub Licence](https://img.shields.io/github/license/fabiodcorreia/docker-base-php?style=plastic)](https://github.com/fabiodcorreia/docker-base-php/blob/master/LICENSE)
4+
5+
6+
![MicroBadger Layers](https://img.shields.io/microbadger/layers/fabiodcorreia/base-php?style=plastic) [![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/fabiodcorreia/base-php?style=plastic)](https://hub.docker.com/r/fabiodcorreia/base-php) [![Docker Pulls](https://img.shields.io/docker/pulls/fabiodcorreia/base-php?style=plastic)](https://hub.docker.com/r/fabiodcorreia/base-php) ![Docker Image Version (latest semver)](https://img.shields.io/docker/v/fabiodcorreia/base-php?sort=semver&style=plastic)
7+
8+
A custom PHP base image built with Alpine Linux.
9+
10+
## Base Packages
11+
12+
- nginx
13+
- php7
14+
- php7-fpm
15+
- php7-fileinfo
16+
- php7-json
17+
- php7-mbstring
18+
- php7-openssl
19+
- php7-session
20+
- php7-simplexml
21+
- php7-xml
22+
- php7-xmlwriter
23+
- php7-zlib
24+
25+
## Versioning
26+
27+
This image follows the [Semantic Versioning](https://semver.org/) pattern.
28+
29+
- **MAJOR** version - Changes on Base Image version (1.0.0 to 2.0.0)
30+
- **MINOR** version - Changes on PHP version (7.3.19 to 7.3.20)
31+
- **PATCH** version - Package updates and other non breaking changes on the image
32+
- **DRAFT** version - Unstable build for review (Optional)
33+
34+
### Version Mapping
35+
36+
| Version | 1.0 | 1.1 | 2.0 |
37+
| :----: | --- | --- | ---- |
38+
| Base Image | 1.x.x | 1.x.x | 2.x.x |
39+
| PHP | 7.3.19 | 7.3.20 | 7.3.19 |
40+
41+
When Base Image gets upgraded the major version is incremented, when PHP gets upgraded the minor version is incremented.
42+
43+
## Tags
44+
45+
| Tag | Description |
46+
| :----: | --- |
47+
| latest | Latest version |
48+
| 1.0.0 | Specific patch version |
49+
| 1.0 | Specific minor version |
50+
| 1 | Specific major version |
51+
| 1.0.0-`arch` | Specific patch version to that `arch` |
52+
| 1.0-`arch` | Specific minor version to that `arch` |
53+
| 1-`arch` | Specific major version to that `arch` |
54+
| test | Branch version - **DO NOT USE** |
55+
56+
The version tags are the same as the repository versioning tags but without the `v`. The `test` version is only for build purposes, it should not be pulled.
57+
58+
The `arch` can be one of the supported architectures described below.
59+
60+
## Supported Architectures
61+
62+
| Architecture | Tag |
63+
| :----: | --- |
64+
| x86-64 | amd64 |
65+
| arm64 | arm64v8 |
66+
| armhf | arm32v7 |
67+
68+
69+
## Environment Variables
70+
71+
| Name | Description |
72+
| :-----------------: | ----------- |
73+
| PUID | Set the UserID - [Details](https://github.com/fabiodcorreia/docker-base-alpine#userid--groupid) |
74+
| PGID | Set the GroupID - [Details](https://github.com/fabiodcorreia/docker-base-alpine#userid--groupid) |
75+
| TZ | Set the system timezone - [Options](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) |

package_versions.txt

100644100755
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,24 @@ busybox-1.31.1-r19
77
ca-certificates-20191127-r4
88
ca-certificates-bundle-20191127-r4
99
coreutils-8.32-r0
10-
curl-7.70.0-r2
10+
curl-7.69.1-r0
1111
libacl-2.2.53-r0
1212
libattr-2.4.48-r0
1313
libc-utils-0.7.2-r3
1414
libcrypto1.1-1.1.1g-r0
15+
libcurl-7.69.1-r0
1516
libedit-20191231.3.1-r0
1617
libintl-0.20.2-r0
1718
libproc-3.3.16-r0
1819
libssl1.1-1.1.1g-r0
1920
libtls-standalone-2.9.1-r1
2021
libxml2-2.9.10-r4
2122
linux-pam-1.3.1-r4
22-
musl-1.1.24-r8
23-
musl-utils-1.1.24-r8
23+
musl-1.1.24-r9
24+
musl-utils-1.1.24-r9
2425
ncurses-libs-6.2_p20200523-r0
2526
ncurses-terminfo-base-6.2_p20200523-r0
27+
nghttp2-libs-1.41.0-r0
2628
nginx-1.18.0-r0
2729
pcre-8.44-r0
2830
pcre2-10.35-r0

packages.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22

3-
docker build . -t base-php
4-
docker run --rm --entrypoint '/bin/sh' -v ${PWD}:/tmp base-php -c '\
3+
IMAGE_NAME="base-php"
4+
docker image rm ${IMAGE_NAME}
5+
docker build . -t ${IMAGE_NAME}
6+
docker run --rm --entrypoint '/bin/sh' -v ${PWD}:/tmp ${IMAGE_NAME} -c '\
57
apk info -v | sort > /tmp/package_versions.txt && \
68
chmod 777 /tmp/package_versions.txt'

0 commit comments

Comments
 (0)