Skip to content

Commit

Permalink
Boilerplate streamlit UI
Browse files Browse the repository at this point in the history
  • Loading branch information
KenwoodFox committed Mar 25, 2024
1 parent 334c281 commit 5cbe0cb
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions MC-UI/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pipfile*
27 changes: 27 additions & 0 deletions MC-UI/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM python:3.12

# Setup home
ARG HOME="/app"
ENV HOME=${HOME}

# Set the working directory to app home
WORKDIR ${HOME}

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# Install deps
# RUN apt update \
# && apt install -y gcc python3-dev python3-pip ffmpeg

# Python deps
RUN pip install --upgrade pip
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

COPY . .

EXPOSE 5000

ENTRYPOINT ./entrypoint.sh
17 changes: 17 additions & 0 deletions MC-UI/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# Kitsune Robotics
# 2020-2024
#

ROOT := $(PWD)
STAGEDIR := $(ROOT)/dist/
HASH := $(shell git describe --tags --always)

all: help
help: # List all commands and their descriptions
@echo
@cat Makefile | grep ': #' --color=never | sed '/^\t/d' | sed 's/: / /' | column -t -s '#'
@echo

setup: # Setup your local dev enviroment
pipenv install -r requirements.txt
8 changes: 8 additions & 0 deletions MC-UI/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Mission Controller UI

Everything here is a WIP!

The goal in here, is to package up a docker container that will serve a UI, and connect both to the database
(for long term display graphs and stuff) as well as show some live info.

It just needs to serve a simple web page, and generally doesn't have any way to actually input new commands/data (yet)
1 change: 1 addition & 0 deletions MC-UI/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
streamlit==1.32.2

0 comments on commit 5cbe0cb

Please sign in to comment.