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

Commit

Permalink
Release changes for 1.10.0 and 2.5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeathe committed Jan 28, 2019
1 parent 0576f28 commit 1b3fb4f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Summary of release changes for Version 2 - CentOS-7

### 2.5.0 - Unreleased
### 2.5.0 - 2019-01-28

- Updates `openssl` package to 1.0.2k-16.el7.
- Updates `sudo` package to 1.8.23-3.el7.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:7.5.1804

ARG RELEASE_VERSION="2.4.1"
ARG RELEASE_VERSION="2.5.0"

# -----------------------------------------------------------------------------
# - Import the RPM GPG keys for repositories
Expand Down
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ Includes public key authentication, Automated password generation and supports c

## Overview & links

The latest CentOS-6 / CentOS-7 based releases can be pulled from the `centos-6` / `centos-7` Docker tags respectively. For production use it is recommended to select a specific release tag - the convention is `centos-6-1.9.1` OR `1.9.1` for the [1.9.1](https://github.com/jdeathe/centos-ssh/tree/1.9.1) release tag and `centos-7-2.4.1` OR `2.4.1` for the [2.4.1](https://github.com/jdeathe/centos-ssh/tree/2.4.1) release tag.
The latest CentOS-6 / CentOS-7 based releases can be pulled from the `centos-6` / `centos-7` Docker tags respectively. For production use it is recommended to select a specific release tag - the convention is `centos-6-1.10.0` OR `1.10.0` for the [1.10.0](https://github.com/jdeathe/centos-ssh/tree/1.10.0) release tag and `centos-7-2.5.0` OR `2.5.0` for the [2.5.0](https://github.com/jdeathe/centos-ssh/tree/2.5.0) release tag.

### Tags and respective `Dockerfile` links

- `centos-7`,`centos-7-2.4.1`,`2.4.1` [(centos-7/Dockerfile)](https://github.com/jdeathe/centos-ssh/blob/centos-7/Dockerfile)
- `centos-6`,`centos-6-1.9.1`,`1.9.1` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh/blob/centos-6/Dockerfile)
- `centos-7`,`centos-7-2.5.0`,`2.5.0` [(centos-7/Dockerfile)](https://github.com/jdeathe/centos-ssh/blob/centos-7/Dockerfile)
- `centos-6`,`centos-6-1.10.0`,`1.10.0` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh/blob/centos-6/Dockerfile)

The Dockerfile can be used to build a base image that is the bases for several other docker images.

Expand Down Expand Up @@ -42,7 +42,7 @@ Run up an SSH container named 'ssh.1' from the docker image 'jdeathe/centos-ssh'
$ docker run -d \
--name ssh.1 \
-p 2020:22 \
jdeathe/centos-ssh:2.4.1
jdeathe/centos-ssh:2.5.0
```

Check the logs for the password (required for sudo).
Expand Down Expand Up @@ -76,7 +76,7 @@ $ docker run -d \
--name sftp.1 \
-p 2021:22 \
-e SSH_USER_FORCE_SFTP=true \
jdeathe/centos-ssh:2.4.1
jdeathe/centos-ssh:2.5.0
```

Connect using the `sftp` command line client with the [insecure private key](https://github.com/mitchellh/vagrant/blob/master/keys/vagrant).
Expand Down Expand Up @@ -106,10 +106,10 @@ $ docker run \
--rm \
--privileged \
--volume /:/media/root \
jdeathe/centos-ssh:2.4.1 \
jdeathe/centos-ssh:2.5.0 \
/usr/sbin/scmi install \
--chroot=/media/root \
--tag=2.4.1 \
--tag=2.5.0 \
--name=ssh.1 \
--setopt="--volume {{NAME}}.config-ssh:/etc/ssh"
```
Expand All @@ -123,10 +123,10 @@ $ docker run \
--rm \
--privileged \
--volume /:/media/root \
jdeathe/centos-ssh:2.4.1 \
jdeathe/centos-ssh:2.5.0 \
/usr/sbin/scmi uninstall \
--chroot=/media/root \
--tag=2.4.1 \
--tag=2.5.0 \
--name=ssh.1 \
--setopt="--volume {{NAME}}.config-ssh:/etc/ssh"
```
Expand All @@ -140,10 +140,10 @@ $ docker run \
--rm \
--privileged \
--volume /:/media/root \
jdeathe/centos-ssh:2.4.1 \
jdeathe/centos-ssh:2.5.0 \
/usr/sbin/scmi install \
--chroot=/media/root \
--tag=2.4.1 \
--tag=2.5.0 \
--name=ssh.1 \
--manager=systemd \
--register \
Expand All @@ -159,7 +159,7 @@ Since release tags `1.7.2` / `2.1.2` the install template has been added to the
_NOTE:_ A prerequisite of the following examples is that the image has been pulled (or loaded from the release package).

```
$ docker pull jdeathe/centos-ssh:2.4.1
$ docker pull jdeathe/centos-ssh:2.5.0
```

To see detailed information about the image run `scmi` with the `--info` option. To see all available `scmi` options run with the `--help` option.
Expand All @@ -168,7 +168,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
$ eval "sudo -E $(
docker inspect \
-f "{{.ContainerConfig.Labels.install}}" \
jdeathe/centos-ssh:2.4.1
jdeathe/centos-ssh:2.5.0
) --info"
```

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

Expand All @@ -188,7 +188,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:2.4.1
jdeathe/centos-ssh:2.5.0
) --name=ssh.2"
```

Expand All @@ -201,7 +201,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
```
$ sudo -E atomic install \
-n ssh.3 \
jdeathe/centos-ssh:2.4.1 \
jdeathe/centos-ssh:2.5.0 \
--info
```

Expand All @@ -210,14 +210,14 @@ To perform an installation using the docker name `ssh.3` simply use the `-n` opt
```
$ sudo -E atomic install \
-n ssh.3 \
jdeathe/centos-ssh:2.4.1
jdeathe/centos-ssh:2.5.0
```

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

```
$ sudo -E atomic install \
jdeathe/centos-ssh:2.4.1 \
jdeathe/centos-ssh:2.5.0 \
--name ssh.3
```

Expand All @@ -226,7 +226,7 @@ To uninstall use the *same command* that was used to install but with the `unins
```
$ sudo -E atomic uninstall \
-n ssh.3 \
jdeathe/centos-ssh:2.4.1
jdeathe/centos-ssh:2.5.0
```

#### Using environment variables
Expand All @@ -242,7 +242,7 @@ $ docker stop ssh.1 \
--name ssh.1 \
-p :22 \
--env "SSH_USER=centos" \
jdeathe/centos-ssh:2.4.1
jdeathe/centos-ssh:2.5.0
```

To identify the `SSH_USER` user's sudoer password, inspect the container's logs as follows:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# docker-compose logs ssh.1
# -----------------------------------------------------------------------------
ssh.1:
image: "jdeathe/centos-ssh:2.4.1"
image: "jdeathe/centos-ssh:2.5.0"
container_name: "ssh.1"
ports:
- "2020:22"

0 comments on commit 1b3fb4f

Please sign in to comment.