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

Commit

Permalink
Merge pull request #361 from jdeathe/centos-6-develop
Browse files Browse the repository at this point in the history
Release changes for 1.7.2
  • Loading branch information
jdeathe authored Sep 16, 2016
2 parents 337abab + cd0977e commit 5bda63a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ RUN mkdir -p \
/etc/services-config/supervisor/supervisord.conf \
/etc/supervisord.conf \
&& ln -sf \
/etc/services-config/supervisor/supervisord.d/sshd.conf \
/etc/supervisord.d/sshd.conf \
/etc/services-config/supervisor/supervisord.d/sshd-wrapper.conf \
/etc/supervisord.d/sshd-wrapper.conf \
&& ln -sf \
/etc/services-config/supervisor/supervisord.d/sshd-bootstrap.conf \
/etc/supervisord.d/sshd-bootstrap.conf \
&& chmod 700 \
/usr/sbin/{scmi,sshd-bootstrap}
/usr/sbin/{scmi,sshd-{bootstrap,wrapper}}

# -----------------------------------------------------------------------------
# Purge
Expand Down Expand Up @@ -165,7 +165,7 @@ ENV SSH_AUTHORIZED_KEYS="" \
# -----------------------------------------------------------------------------
# Set image metadata
# -----------------------------------------------------------------------------
ARG RELEASE_VERSION="1.7.1"
ARG RELEASE_VERSION="1.7.2"
LABEL \
install="docker run \
--rm \
Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ $ sftp -p 2021 -i id_rsa_insecure \

### Running

To run the a docker container from this image you can use the standard docker commands. Alternatively, you can use the embedded (Service Container Manager Interface) [scmi](https://github.com/jdeathe/centos-ssh/blob/centos-7/usr/sbin/scmi) that is included in the image since `centos-6-1.7.1`|`centos-7-2.1.1` or, if you have a checkout of the [source repository](https://github.com/jdeathe/centos-ssh), and have make installed the Makefile provides targets to build, install, start, stop etc. where environment variables can be used to configure the container options and set custom docker run parameters.
To run the a docker container from this image you can use the standard docker commands. Alternatively, you can use the embedded (Service Container Manager Interface) [scmi](https://github.com/jdeathe/centos-ssh/blob/centos-7/usr/sbin/scmi) that is included in the image since `centos-6-1.7.2`|`centos-7-2.1.2` or, if you have a checkout of the [source repository](https://github.com/jdeathe/centos-ssh), and have make installed the Makefile provides targets to build, install, start, stop etc. where environment variables can be used to configure the container options and set custom docker run parameters.

#### SCMI Installation Examples

Expand All @@ -101,10 +101,10 @@ $ docker run \
--rm \
--privileged \
--volume /:/media/root \
jdeathe/centos-ssh:centos-6-1.7.1 \
jdeathe/centos-ssh:centos-6-1.7.2 \
/sbin/scmi install \
--chroot=/media/root \
--tag=centos-6-1.7.1 \
--tag=centos-6-1.7.2 \
--name=ssh.pool-1.1.1 \
--setopt="--volume {{NAME}}.config-ssh:/etc/ssh"
```
Expand All @@ -118,10 +118,10 @@ $ docker run \
--rm \
--privileged \
--volume /:/media/root \
jdeathe/centos-ssh:centos-6-1.7.1 \
jdeathe/centos-ssh:centos-6-1.7.2 \
/sbin/scmi uninstall \
--chroot=/media/root \
--tag=centos-6-1.7.1 \
--tag=centos-6-1.7.2 \
--name=ssh.pool-1.1.1 \
--setopt="--volume {{NAME}}.config-ssh:/etc/ssh"
```
Expand All @@ -135,10 +135,10 @@ $ docker run \
--rm \
--privileged \
--volume /:/media/root \
jdeathe/centos-ssh:centos-6-1.7.1 \
jdeathe/centos-ssh:centos-6-1.7.2 \
/sbin/scmi install \
--chroot=/media/root \
--tag=centos-6-1.7.1 \
--tag=centos-6-1.7.2 \
--name=ssh.pool-1.1.1 \
--manager=systemd \
--register \
Expand All @@ -153,15 +153,15 @@ If your docker host has systemd, fleetd (and optionally etcd) installed then `sc

##### SCMI Image Information

Since release tags `centos-6-1.7.1` and `centos-7-2.1.1` the install template has been added to the image metadata. Using docker inspect you can access `scmi` to simplify install/uninstall tasks.
Since release tags `centos-6-1.7.2` and `centos-7-2.1.2` the install template has been added to the image metadata. Using docker inspect you can access `scmi` to simplify install/uninstall tasks.

To see detailed information about the image run `scmi` with the `--info` option. To see all available `scmi` options run with the `--help` option.

```
$ eval "sudo -E $(
docker inspect \
-f "{{.ContainerConfig.Labels.install}}" \
jdeathe/centos-ssh:centos-6-1.7.1
jdeathe/centos-ssh:centos-6-1.7.2
) --info"
```

Expand All @@ -171,7 +171,7 @@ To perform an installation using the docker name `ssh.pool-1.2.1` simply use the
$ eval "sudo -E $(
docker inspect \
-f "{{.ContainerConfig.Labels.install}}" \
jdeathe/centos-ssh:centos-6-1.7.1
jdeathe/centos-ssh:centos-6-1.7.2
) --name=ssh.pool-1.2.1"
```

Expand All @@ -181,7 +181,7 @@ To uninstall use the *same command* that was used to install but with the `unins
$ eval "sudo -E $(
docker inspect \
-f "{{.ContainerConfig.Labels.uninstall}}" \
jdeathe/centos-ssh:centos-6-1.7.1
jdeathe/centos-ssh:centos-6-1.7.2
) --name=ssh.pool-1.2.1"
```

Expand All @@ -194,7 +194,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
```
$ sudo -E atomic install \
-n ssh.pool-1.3.1 \
jdeathe/centos-ssh:centos-6-1.7.1 \
jdeathe/centos-ssh:centos-6-1.7.2 \
--info
```

Expand All @@ -203,14 +203,14 @@ To perform an installation using the docker name `ssh.pool-1.3.1` simply use the
```
$ sudo -E atomic install \
-n ssh.pool-1.3.1 \
jdeathe/centos-ssh:centos-6-1.7.1
jdeathe/centos-ssh:centos-6-1.7.2
```

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

```
$ sudo -E atomic install \
jdeathe/centos-ssh:centos-6-1.7.1 \
jdeathe/centos-ssh:centos-6-1.7.2 \
--name ssh.pool-1.3.1
```

Expand All @@ -219,7 +219,7 @@ To uninstall use the *same command* that was used to install but with the `unins
```
$ sudo -E atomic uninstall \
-n ssh.pool-1.3.1 \
jdeathe/centos-ssh:centos-6-1.7.1
jdeathe/centos-ssh:centos-6-1.7.2
```

#### Using environment variables
Expand Down

0 comments on commit 5bda63a

Please sign in to comment.