Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit fe44618

Browse files
committed
ISSUE 114: Adds support for semantic release version numbers.
1 parent 0e3c9dd commit fe44618

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ LABEL \
5252
--rm \
5353
--privileged \
5454
--volume /:/media/root \
55-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-${RELEASE_VERSION} \
55+
jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION} \
5656
/usr/sbin/scmi install \
5757
--chroot=/media/root \
5858
--name=\${NAME} \
59-
--tag=centos-6-${RELEASE_VERSION}" \
59+
--tag=${RELEASE_VERSION}" \
6060
uninstall="docker run \
6161
--rm \
6262
--privileged \
6363
--volume /:/media/root \
64-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-${RELEASE_VERSION} \
64+
jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION} \
6565
/usr/sbin/scmi uninstall \
6666
--chroot=/media/root \
6767
--name=\${NAME} \
68-
--tag=centos-6-${RELEASE_VERSION}" \
68+
--tag=${RELEASE_VERSION}" \
6969
org.deathe.name="centos-ssh-apache-php-fcgi" \
7070
org.deathe.version="${RELEASE_VERSION}" \
71-
org.deathe.release="jdeathe/centos-ssh-apache-php-fcgi:centos-6-${RELEASE_VERSION}" \
71+
org.deathe.release="jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION}" \
7272
org.deathe.license="MIT" \
7373
org.deathe.vendor="jdeathe" \
7474
org.deathe.url="https://github.com/jdeathe/centos-ssh-apache-php-fcgi" \

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Apache PHP web server, loading only a minimal set of Apache modules by default.
77

88
## Overview & links
99

10-
The latest CentOS-6 based release can be pulled from the centos-6 Docker tag. For a specific release tag the convention is `centos-6-1.7.0` for the [1.7.0](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/tree/1.7.0) release tag.
10+
The latest CentOS-6 based release can be pulled from the centos-6 Docker tag. For a specific release tag the convention is `centos-6-1.8.0` or `1.8.0` for the [1.8.0](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/tree/1.7.0) release tag.
1111

12-
- centos-6 [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/blob/centos-6/Dockerfile)
12+
- centos-6, `centos-6-1.8.0`, `1.8.0` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/blob/centos-6/Dockerfile)
1313

1414
This build of [Apache](https://httpd.apache.org/), (httpd CentOS package), uses the [mod_fcgid](https://httpd.apache.org/mod_fcgid/) module to run [PHP](http://php.net/) as a [FastCGI](http://www.fastcgi.com/) process.
1515

@@ -85,10 +85,10 @@ $ docker run \
8585
--rm \
8686
--privileged \
8787
--volume /:/media/root \
88-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-1.7.1 \
88+
jdeathe/centos-ssh-apache-php-fcgi:1.8.0 \
8989
/usr/sbin/scmi install \
9090
--chroot=/media/root \
91-
--tag=centos-6-1.7.1 \
91+
--tag=1.8.0 \
9292
--name=apache-php.pool-1.1.1
9393
```
9494

@@ -101,10 +101,10 @@ $ docker run \
101101
--rm \
102102
--privileged \
103103
--volume /:/media/root \
104-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-1.7.1 \
104+
jdeathe/centos-ssh-apache-php-fcgi:1.8.0 \
105105
/usr/sbin/scmi uninstall \
106106
--chroot=/media/root \
107-
--tag=centos-6-1.7.1 \
107+
--tag=1.8.0 \
108108
--name=apache-php.pool-1.1.1
109109
```
110110

@@ -117,10 +117,10 @@ $ docker run \
117117
--rm \
118118
--privileged \
119119
--volume /:/media/root \
120-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-1.7.1 \
120+
jdeathe/centos-ssh-apache-php-fcgi:1.8.0 \
121121
/usr/sbin/scmi install \
122122
--chroot=/media/root \
123-
--tag=centos-6-1.7.1 \
123+
--tag=1.8.0 \
124124
--name=apache-php.pool-1.1.1 \
125125
--manager=systemd \
126126
--register \
@@ -142,7 +142,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
142142
$ eval "sudo -E $(
143143
docker inspect \
144144
-f "{{.ContainerConfig.Labels.install}}" \
145-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-1.7.1
145+
jdeathe/centos-ssh-apache-php-fcgi:1.8.0
146146
) --info"
147147
```
148148

@@ -152,7 +152,7 @@ To perform an installation using the docker name `apache-php.pool-1.2.1` simply
152152
$ eval "sudo -E $(
153153
docker inspect \
154154
-f "{{.ContainerConfig.Labels.install}}" \
155-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-1.7.1
155+
jdeathe/centos-ssh-apache-php-fcgi:1.8.0
156156
) --name=apache-php.pool-1.2.1"
157157
```
158158

@@ -162,7 +162,7 @@ To uninstall use the *same command* that was used to install but with the `unins
162162
$ eval "sudo -E $(
163163
docker inspect \
164164
-f "{{.ContainerConfig.Labels.uninstall}}" \
165-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-1.7.1
165+
jdeathe/centos-ssh-apache-php-fcgi:1.8.0
166166
) --name=apache-php.pool-1.2.1"
167167
```
168168

@@ -175,7 +175,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
175175
```
176176
$ sudo -E atomic install \
177177
-n apache-php.pool-1.3.1 \
178-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-1.7.1 \
178+
jdeathe/centos-ssh-apache-php-fcgi:1.8.0 \
179179
--info
180180
```
181181

@@ -184,14 +184,14 @@ To perform an installation using the docker name `apache-php.pool-1.3.1` simply
184184
```
185185
$ sudo -E atomic install \
186186
-n apache-php.pool-1.3.1 \
187-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-1.7.1
187+
jdeathe/centos-ssh-apache-php-fcgi:1.8.0
188188
```
189189

190190
Alternatively, you could use the `scmi` options `--name` or `-n` for naming the container.
191191

192192
```
193193
$ sudo -E atomic install \
194-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-1.7.1 \
194+
jdeathe/centos-ssh-apache-php-fcgi:1.8.0 \
195195
--name apache-php.pool-1.3.1
196196
```
197197

@@ -200,7 +200,7 @@ To uninstall use the *same command* that was used to install but with the `unins
200200
```
201201
$ sudo -E atomic uninstall \
202202
-n apache-php.pool-1.3.1 \
203-
jdeathe/centos-ssh-apache-php-fcgi:centos-6-1.7.1
203+
jdeathe/centos-ssh-apache-php-fcgi:1.8.0
204204
```
205205

206206
#### Environment Variables

etc/systemd/system/centos-ssh-apache-php-fcgi@.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Environment="DOCKER_USER=jdeathe"
5252
Environment="DOCKER_CONTAINER_OPTS="
5353
Environment="DOCKER_IMAGE_PACKAGE_PATH=/var/opt/scmi/packages"
5454
Environment="DOCKER_IMAGE_NAME=centos-ssh-apache-php-fcgi"
55-
Environment="DOCKER_IMAGE_TAG=centos-6-1.8.0"
55+
Environment="DOCKER_IMAGE_TAG=1.8.0"
5656
Environment="DOCKER_PORT_MAP_TCP_80=8080"
5757
Environment="DOCKER_PORT_MAP_TCP_443=9443"
5858
Environment="DOCKER_PORT_MAP_TCP_8443=NULL"

0 commit comments

Comments
 (0)