Comments (5)
Here's a simple example for you:
Dockerfile
# This stage sets up tools to build the project, clones it, and creates an executable named `tt`.
FROM golang:alpine AS build
ENV CGO_ENABLED=0
WORKDIR /app
RUN apk add --no-cache git \
&& git clone --depth=1 https://github.com/lemnos/tt . \
&& go build -o bin/tt src/*.go
# Copies the `tt` executable and sets it as the command to run.
FROM alpine
COPY --from=build /app/bin/tt /bin/tt
ENTRYPOINT ["tt"]
How
# Build the Docker Image
docker build . -t dev:tt
# Run the Docker Container
docker run -it dev:tt
# To use `tt` with extra options
docker run -it dev:tt -h
from tt.
thank you for the steps :)
I will try to understand these step and follow
from tt.
This Go project is a TUI app. It can't turn into a web app easily. Seeing a web version of 'tt' would be intriguing. However, I think it should be a fork, not altering the original functionality. This goes beyond the project's scope.
from tt.
hi, I am able to to run the following commands
root@tt [ ~ ]# curl -L https://github.com/lemnos/tt/releases/download/v0.4.2/tt-osx -o /usr/local/bin/tt && sudo chmod +x /usr/local/bin/tt
root@tt [ ~ ]# curl -o /usr/share/man/man1/tt.1.gz -L https://github.com/lemnos/tt/releases/download/v0.4.2/tt.1.gz
root@tt [ ~ ]# tt -quotes en
I am able to use the application on the local system using SSH but I would like to run it as a container (and port) so that I can use it from a Web Browser. If you have any steps that would be very useful.
System: Photon OS
from tt.
yes, even a fork version. A web based application keeping the size minimal would be great :)
from tt.
Related Issues (20)
- some of the quotes have missing symbols (�) that can't be displayed. Ubuntu 22.04, tt v0.4.2 HOT 1
- hey
- Add a quotes option based on the monkeytype quotes list
- request a new release HOT 2
- [Feature Request] Add Options to change the font size HOT 2
- Add `md` with theme preview
- Auto Scroll support
- Support disabling red color when typing wrong characters; and only show those wrong characters at the end of the test.
- "ERROR: failed to read /Users/username/en" on macOSX arm64 HOT 2
- 1000en does not appear to be a valid word list
- [Feature Request] Show word count and the duration of the test in the report. HOT 2
- Feature Request: Support Multiline
- pip install failing on Windows HOT 1
- option-backspace or control-backspace does not work on macos
- HOME environment variable should be USERPROFILE Windows HOT 2
- Add sound effect
- [Feature Request] Disable Randomness
- [Bug]: Doesn't strip newlines from typos list
- Endless wordlists
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tt.