Skip to content

Commit

Permalink
Merge pull request #24 from natb1/data-connection-interface
Browse files Browse the repository at this point in the history
Standard Data Connection Interface & Databricks Catalog Scanning
  • Loading branch information
bradanton authored Dec 19, 2022
2 parents 699b2a0 + db58bd9 commit 07fcf59
Show file tree
Hide file tree
Showing 417 changed files with 88,116 additions and 6,973 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
**.iml
.idea
.first_run
.first_run
vocabulary-db/vocabulary
.vscode/launch.json
UI/.env
.DS_Store
buildlog.txt
2 changes: 1 addition & 1 deletion CONTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

cd perseus-api
docker build -t backend .
docker run --name backend -d -p 5000:5000 -e PERSEUS_ENV='Docker' --network=perseus-net backend
docker run --name backend -d -p 5004:5004 -e PERSEUS_ENV='Docker' --network=perseus-net backend

### User (SMTP server auth)

Expand Down
17 changes: 17 additions & 0 deletions UI/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM --platform=linux/amd64 node:14.20.0

RUN apt-get update \
&& apt-get install -y --no-install-recommends openssh-server \
&& export ROOTPASS=$(head -c 12 /dev/urandom |base64 -) && echo "root:$ROOTPASS" | chpasswd

RUN npm install -g @angular/cli

COPY nginx.conf /etc/nginx/nginx.conf
# COPY --from=build-step /usr/src/app/dist /usr/share/nginx/html
COPY sshd_config /etc/ssh/
COPY entrypoint.sh entrypoint.sh
# RUN chmod +x entrypoint.sh

EXPOSE 4200 2222

# CMD ["./entrypoint.sh"]
34 changes: 34 additions & 0 deletions UI/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/docker-existing-dockerfile
{
"name": "Modified Dockerfile",

// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",

// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerFile": "./Dockerfile",

"features": {
"ghcr.io/devcontainers/features/git:1": {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created - for example installing curl.
// "remoteUser": "root",
"postCreateCommand": "npm install -g @angular/cli ng-openapi-gen",

// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
"runArgs": [
"--network=perseus_default"
]

// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker.
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],

// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
}
15 changes: 15 additions & 0 deletions UI/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions"
],
"framework": "@storybook/angular",
"core": {
"builder": "@storybook/builder-webpack5"
}
}
14 changes: 14 additions & 0 deletions UI/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// import { setCompodocJson } from "@storybook/addon-docs/angular";
// import docJson from "../documentation.json";
// setCompodocJson(docJson);

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
docs: { inlineStories: true },
}
21 changes: 21 additions & 0 deletions UI/.storybook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": "../src/tsconfig.app.json",
"compilerOptions": {
"types": [
"node"
],
"allowSyntheticDefaultImports": true
},
"exclude": [
"../src/test.ts",
"../src/**/*.spec.ts",
"../projects/**/*.spec.ts"
],
"include": [
"../src/**/*",
"../projects/**/*"
],
"files": [
"./typings.d.ts"
]
}
4 changes: 4 additions & 0 deletions UI/.storybook/typings.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.md' {
const content: string;
export default content;
}
23 changes: 23 additions & 0 deletions UI/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm start",
"name": "Run npm start",
"request": "launch",
"type": "node-terminal",
"envFile": "${workspaceFolder}/.env",
},
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200",

"webRoot": "${workspaceFolder}"
},
]
}
23 changes: 17 additions & 6 deletions UI/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"namedChunks": true
},
"configurations": {
"dev": { "sourceMap": true, "optimization":false},
"production": {
"fileReplacements": [
{
Expand Down Expand Up @@ -132,17 +133,27 @@
]
}
},
"defaultConfiguration": ""
"defaultConfiguration": "dev"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "UI:build"
},
"configurations": {
"production": {
"browserTarget": "UI:build:production"
}
}
},
"storybook": {
"builder": "@storybook/angular:start-storybook",
"options": {
"browserTarget": "UI:build",
"port": 6006,
"compodoc": false
}
},
"build-storybook": {
"builder": "@storybook/angular:build-storybook",
"options": {
"browserTarget": "UI:build",
"compodoc": false
}
},
"extract-i18n": {
Expand Down
Loading

0 comments on commit 07fcf59

Please sign in to comment.