GithubHelp home page GithubHelp logo

mmastrac / docker-wetty-alpine-rpi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from svenihoney/docker-wetty-alpine

2.0 3.0 0.0 5 KB

(Raspberry Pi port) Wetty = Web + tty on Docker and Alpine

Dockerfile 66.14% Shell 33.86%

docker-wetty-alpine-rpi's Introduction

Dockerized Wetty

This is a dockerized version of Wetty krishnasrinivas (https://github.com/krishnasrinivas/wetty), with additional ideas from Robert Szymczak (https://github.com/m451/docker-wetty). Both docker images available in these repositories are node base, with sized up to 1G. This one is based on alpine-node, which gives a docker image of around 100G with all npm modules.

This project is linked to the docker hub, so you may always pull the latest build from any docker environment.

docker pull svenihoney/wetty

Then you can run the application using:

docker run -dt -e REMOTE_SSH_SERVER=10.10.10.10 -e REMOTE_SSH_PORT=22 -e REMOTE_SSH_USER=root -p 3000 --name term  svenihoney/wetty

The environment parameters

  • REMOTE_SSH_SERVER
  • REMOTE_SSH_PORT
  • REMOTE_SSH_USER

are optional and will be used to configure wetty. If not set, a connection to 127.0.0.1:22 using root will be performed. In order to access the web application, you have to get the IP and PORT it is hosted at within your docker environment. You may use "docker ps" or "docker inspect" to get the informations. The following command will return the external PORT back the container is mapped back to you.

docker port term 3000

You may then access the application using http://DockerHostIP:PORT. You may dynamicly change the login-user by utilizing wetty's HTTP GET syntax, e.g.:

http://DockerHostIP:PORT/wetty/ssh/your-ssh-user

Reverse Proxy

I recommend running the image behind a nginx proxy. Please have a look at https://github.com/jwilder/nginx-proxy, which is used by the included docker compose file.

docker-wetty-alpine-rpi's People

Contributors

cardil avatar mmastrac avatar svenihoney avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.