Giter Club home page Giter Club logo

task-ui's Introduction

Task UI

Run your Taskfile.yml from the browser.

Start the docker image with task docker:run.

Task UI is meant for Docker environments. A generic Dockerfile exists, which bundles typical dependencies like task, ttyrec, docker, docker compose.

To use, start by navigating to the docker subfolder. It contains a Taskfile, with the typical commands to build and run task-ui from a docker image. For examples with Taskfiles you could run, look into the folder examples.

The layout is somewhat responsive, supporting mobile.

Running

To set up your project to run with Task UI, it's recommended you use the example docker compose setup here:

services:
  runner:
    image: titpetric/task-ui
    restart: always
    build: .
    command:
      - --history-enable
    ports:
    - 3000:3000
    volumes:
    - $PWD/app:/app
    - /var/run/docker.sock:/var/run/docker.sock:ro

In particular, you should mount your /app folder which contains your Taskfile.yml, docker-compose.yml and other files. Task UI will run with what you provide it with.

  • If you don't want history, remove the command flags.
  • If you don't want to use docker, remove the volume for docker.sock.

The image provides an id_ecdsa key to use for ssh hops. The recommended way to deploy is to provide your own docker/root/.ssh folder with the ssh keys. You can regenerate the ssh key with task docker:gen.

Development

task: Available tasks for this project:

  • build: Build task-ui
  • fix: Fix code
  • install: Install task-ui locally
  • run: Run task-ui
  • test: Test task-ui
  • docker:build: Build task-ui docker image
  • docker:gen: Generate ssh key for docker image
  • docker:push: Push task-ui to registry
  • docker:run: Run task-ui in docker env

task: build

Build task-ui

dependencies:

  • fix

commands:

  • CGO_ENABLED=0 go build .

task: test

Test task-ui

dependencies:

  • fix

commands:

  • CGO_ENABLED=1 go test -race -count=1 -cover ./...
  • CGO_ENABLED=0 go test -count=1 -cover ./...

task: run

Run task-ui

dependencies:

  • build

commands:

  • ./task-ui --history-enable

task: install

Install task-ui locally

dependencies:

  • fix

commands:

  • go install .

task: fix

Fix code

dependencies:

  • deps:goimports

commands:

  • goimports -w .
  • go fmt ./...
  • go vet .
  • go mod tidy
  • ./README.md.sh > README.md

task-ui's People

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.