mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-07-21 13:04:30 +02:00
commit
4ff000da42
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM golang:1.3.3
|
||||||
|
MAINTAINER Alvin Lai <al@alvinlai.com>
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y openssh-client
|
||||||
|
|
||||||
|
RUN go get github.com/shazow/ssh-chat
|
||||||
|
RUN ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
|
||||||
|
|
||||||
|
EXPOSE 2022
|
||||||
|
|
||||||
|
CMD ["-i", "/root/.ssh/id_rsa", "-vv", "--bind", "\":2022\""]
|
||||||
|
ENTRYPOINT ["ssh-chat"]
|
20
README.md
20
README.md
@ -38,6 +38,26 @@ $ ssh-chat --verbose --bind ":2022" --identity ~/.ssh/id_dsa
|
|||||||
To bind on port 22, you'll need to make sure it's free (move any other ssh
|
To bind on port 22, you'll need to make sure it's free (move any other ssh
|
||||||
daemons to another port) and run ssh-chat as root (or with sudo).
|
daemons to another port) and run ssh-chat as root (or with sudo).
|
||||||
|
|
||||||
|
## ssh-chat on Docker
|
||||||
|
|
||||||
|
You can run ssh-chat using a Docker image without manually installing go-lang:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker pull alvin/ssh-chat
|
||||||
|
$ docker run -d -p 0.0.0.0:(your host machine port):2022 --name ssh-chat alvin/ssh-chat
|
||||||
|
```
|
||||||
|
|
||||||
|
Or you can build your own image:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker build -t (your-docker-username)/ssh-chat .
|
||||||
|
```
|
||||||
|
|
||||||
|
then run it:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker run -d -p 0.0.0.0:(your host machine port):2022 --name ssh-chat (your-docker-username)/ssh-chat
|
||||||
|
```
|
||||||
|
|
||||||
## Developing
|
## Developing
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user