diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 6b64fd0..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,66 +0,0 @@ -# Setup environment -FROM python:3.10-slim - -# Developer configuration settings -ENV ENV "DEV" -ENV VERSION "dev-container" -ENV DEBUG True - -# Web-app configuration settings -ENV NAME "assemblit" -ENV HOME_PAGE_NAME "Welcome" -ENV GITHUB_REPOSITORY_URL "https://github.com/thomaseleff/assemblit" -ENV GITHUB_BRANCH_NAME "v0.1.0" - -# Streamlit configuration settings -ENV CLIENT_PORT 8501 -ENV PORT ${CLIENT_PORT} - -# Orchestration server configuration settings -ENV SERVER_TYPE "prefect" -ENV SERVER_PORT 4200 -ENV SERVER_JOB_NAME "" -ENV SERVER_JOB_ENTRYPOINT "" -ENV SERVER_DEPLOYMENT_NAME "" - -# Database configuration settings -ENV DIR "/$NAME" - -# Authentication settings -ENV REQUIRE_AUTHENTICATION False - -# Users db settings -ENV USERS_DB_NAME "users" -ENV USERS_DB_QUERY_INDEX "user_id" - -# Sessions db settings -ENV SESSIONS_DB_NAME "sessions" -ENV SESSIONS_DB_QUERY_INDEX "session_id" - -# Data db settings -ENV DATA_DB_NAME "data" -ENV DATA_DB_QUERY_INDEX "dataset_id" - -# Analysis db settings -ENV ANALYSIS_DB_NAME "analysis" -ENV ANALYSIS_DB_QUERY_INDEX "run_id" - -# Set the working directory (cannot be the root directory for Streamlit) -WORKDIR "/$NAME" - -# Update and install -RUN apt-get update && apt-get install -y \ - build-essential \ - curl \ - software-properties-common \ - nano \ - git --no-install-recommends && \ - rm -rf /var/lib/apt/lists/* -RUN pip3 install --upgrade pip setuptools - -# Configure git to automatically convert CRLF line endings -RUN git config --system core.autocrlf true - -# Expose the network port(s) -EXPOSE $CLIENT_PORT -EXPOSE $SERVER_PORT diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index f4f0de7..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "assemblit", - "build": { - "context": ".../..", - "dockerfile": "Dockerfile" - }, - "mounts": [ - "source=T:/Documents/Projects/Assemblit/analysis,target=/assemblit/analysis,type=bind,consistency=cached", - "source=T:/Documents/Projects/Assemblit/db,target=/assemblit/db,type=bind,consistency=cached" - ], - "customizations": { - "vscode": { - "settings": { - "terminal.integrated.shell.linux": "/bin/bash" - }, - "extensions": [ - "ms-python.python", - "ms-python.vscode-flake8", - "yy0931.vscode-sqlite3-editor" - ] - } - }, - "postCreateCommand": "pip3 install /workspaces/Assemblit && pip3 install -r /workspaces/Assemblit/requirements.txt" -} diff --git a/.gitignore b/.gitignore index 585f266..d5e05fe 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ __pycache__ .regression .venv .coverage +.devcontainer assemblit.egg-info build workspace diff --git a/examples/linny/.devcontainer/Dockerfile b/examples/linny/.devcontainer/Dockerfile deleted file mode 100644 index b945eea..0000000 --- a/examples/linny/.devcontainer/Dockerfile +++ /dev/null @@ -1,65 +0,0 @@ -# Setup environment -FROM python:3.10-slim - -# Developer configuration settings -ENV ENV "DEV" -ENV VERSION "v0.1.0" -ENV DEBUG True - -# Web-app configuration settings -ENV NAME "linny" -ENV HOME_PAGE_NAME "Home" -ENV GITHUB_REPOSITORY_URL "https://github.com/thomaseleff/assemblit" -ENV GITHUB_BRANCH_NAME "v0.1.0" - -# Streamlit configuration settings -ENV CLIENT_PORT 8501 - -# Orchestration server configuration settings -ENV SERVER_TYPE "prefect" -ENV SERVER_PORT 4200 -ENV SERVER_JOB_NAME "linear-regression-flow" -ENV SERVER_JOB_ENTRYPOINT "/workspaces/Assemblit/examples/linear-regression/flow.py" -ENV SERVER_DEPLOYMENT_NAME "v0_1_0" - -# Database configuration settings -ENV DIR "/$NAME" - -# Authentication settings -ENV REQUIRE_AUTHENTICATION True - -# Users db settings -ENV USERS_DB_NAME "users" -ENV USERS_DB_QUERY_INDEX "user_id" - -# Sessions db settings -ENV SESSIONS_DB_NAME "studies" -ENV SESSIONS_DB_QUERY_INDEX "study_id" - -# Data db settings -ENV DATA_DB_NAME "data" -ENV DATA_DB_QUERY_INDEX "dataset_id" - -# Analysis db settings -ENV ANALYSIS_DB_NAME "analysis" -ENV ANALYSIS_DB_QUERY_INDEX "run_id" - -# Set the working directory (cannot be the root directory for Streamlit) -WORKDIR "/$NAME" - -# Update and install -RUN apt-get update && apt-get install -y \ - build-essential \ - curl \ - software-properties-common \ - nano \ - git --no-install-recommends && \ - rm -rf /var/lib/apt/lists/* -RUN pip3 install --upgrade pip setuptools - -# Configure git to automatically convert CRLF line endings -RUN git config --system core.autocrlf true - -# Expose the network port(s) -EXPOSE $CLIENT_PORT -EXPOSE $SERVER_PORT diff --git a/examples/linny/.devcontainer/devcontainer.json b/examples/linny/.devcontainer/devcontainer.json deleted file mode 100644 index 5af63a0..0000000 --- a/examples/linny/.devcontainer/devcontainer.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "linny", - "build": { - "context": ".../..", - "dockerfile": "Dockerfile" - }, - "mounts": [ - "source=T:/Documents/Projects/Assemblit/examples/linear-regression/analysis,target=/linny/analysis,type=bind,consistency=cached", - "source=T:/Documents/Projects/Assemblit/examples/linear-regression/db,target=/linny/db,type=bind,consistency=cached" - ], - "customizations": { - "vscode": { - "settings": { - "terminal.integrated.shell.linux": "/bin/bash" - }, - "extensions": [ - "ms-python.python", - "ms-python.vscode-flake8", - "yy0931.vscode-sqlite3-editor" - ] - } - }, - "postCreateCommand": "cp -r /workspaces/Assemblit/examples/linear-regression/contract/ /linny/contract && pip3 install /workspaces/Assemblit && pip3 install -r /workspaces/Assemblit/examples/linear-regression/requirements.txt" -}