├── run_gotty.sh ├── docker-compose.yml ├── Dockerfile ├── LICENSE └── README.md /run_gotty.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | /usr/local/bin/gotty --permit-write --reconnect /bin/bash 5 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | my-gotty: 2 | hostname: mygotty 3 | ports: 4 | - 8989:8080 5 | tty: true 6 | image: modenaf360/gotty:latest 7 | stdin_open: true 8 | tty: true #using bash TTY mode (pseudo-TTY) 9 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | LABEL maintainer="wingnut0310 " 3 | 4 | ENV LANG en_US.UTF-8 5 | ENV LANGUAGE en_US:en 6 | ENV GOTTY_TAG_VER v1.0.1 7 | 8 | RUN apt-get -y update && \ 9 | apt-get install -y curl && \ 10 | curl -sLk https://github.com/yudai/gotty/releases/download/${GOTTY_TAG_VER}/gotty_linux_amd64.tar.gz \ 11 | | tar xzC /usr/local/bin && \ 12 | apt-get purge --auto-remove -y curl && \ 13 | apt-get clean && \ 14 | rm -rf /var/lib/apt/lists* 15 | 16 | 17 | COPY /run_gotty.sh /run_gotty.sh 18 | 19 | RUN chmod 744 /run_gotty.sh 20 | 21 | EXPOSE 8080 22 | 23 | CMD ["/bin/bash","/run_gotty.sh"] 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 foxytouxxx 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Gotty-Remake 2 | 3 | Welcome to Gotty-Remake, a project by Foxytouxxx that takes the classic Gotty tool to the next level! 🚀 4 | 5 | ## How it Works 6 | 7 | Gotty-Remake transforms your command-line tools into interactive web applications. Here's a quick breakdown of how it works: 8 | 9 | 1. **Docker Setup:** 10 | - Pulls the Ubuntu 20.04 base image. 11 | - Installs necessary dependencies and tools, including curl. 12 | - Downloads and extracts the Gotty binary from the specified release using the provided tag version. 13 | 14 | 2. **Script Execution:** 15 | - Copies the `run_gotty.sh` script into the Docker image. 16 | - Grants executable permissions to the script. 17 | 18 | 3. **Expose Port:** 19 | - Exposes port 8080 to make the web interface accessible. 20 | 21 | 4. **Command Execution:** 22 | - Sets the default command to run the `/run_gotty.sh` script when the container starts. 23 | 24 | ## Getting Started 25 | 26 | To get started with Gotty-Remake, follow these simple steps: 27 | 28 | 1. **Clone the Repository:** 29 | ```bash 30 | git clone https://github.com/Foxytouxxx/Gotty-Remake.git 31 | ``` 32 | 33 | 2. **Build the Docker Image:** 34 | ```bash 35 | cd Gotty-Remake 36 | docker build -t gotty-remake . 37 | ``` 38 | 39 | 3. **Run the Container:** 40 | ```bash 41 | docker run -p 8080:8080 gotty-remake 42 | ``` 43 | 44 | 4. **Access the Web Interface:** 45 | Open your browser and go to [http://localhost:8080](http://localhost:8080) to interact with your command-line tools in a fun and interactive way! 46 | 47 | ## Contribute and Have Fun! 🎉 48 | 49 | We welcome contributions, bug reports, and suggestions to make Gotty-Remake even more awesome. Join the fun, and let's turn command-line tools into a web party! 50 | 51 | - Fork the repository. 52 | - Make your changes. 53 | - Submit a pull request. 54 | - Share your ideas in the [Issues](https://github.com/Foxytouxxx/Gotty-Remake/issues) section. 55 | 56 | Let's code, have fun, and make the command line cool again! 🤖🎉 57 | --------------------------------------------------------------------------------