Skip to content

Commit

Permalink
Provide docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
zix99 committed Jul 16, 2019
1 parent b50a0f6 commit 41188e8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist/
SshSysMon.egg-info/
*.pyc
test.yml
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3.6-alpine as build

RUN apk add --no-cache g++
COPY requirements.txt .
RUN pip install -r requirements.txt

FROM python:3.6-alpine

COPY --from=build /usr/local/lib/python3.6/site-packages /usr/local/lib/python3.6/site-packages

WORKDIR /opt/sshsysmon
COPY . .

ENTRYPOINT ["python3", "sshmon"]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ pip install sshsysmon
sshmon --help
```

#### Via Docker

There is a docker image available on dockerhub based on alpine.

It can be run with the following:

```bash
docker run -it zix99/sshsysmon summary examples/starter.yml
```

If you have a config you wish to pass in, you can do so via a volume or swarm config.

```bash
docker run -it -v config.yml:config.yml zix99/sshsysmon summary config.yml
```

#### Manually (No Install)

```bash
Expand Down

0 comments on commit 41188e8

Please sign in to comment.