Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinvanschoren committed Jan 12, 2024
2 parents 064c8db + 1177d6b commit c87c21b
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FLASK_APP=autoapp.py
FLASK_ENV=development
SMTP_SERVER=smtp.mailtrap.io
SMTP_PORT=2525
DATABASE_URI=sqlite:///openml.db
EMAIL_SENDER=[email protected]
SMTP_LOGIN=
SMTP_PASS=
APP_SECRET_KEY=abcd
JWT_SECRET_KEY=abcd
TESTING=True

URL_API=http://localhost:8002

# REACT
# React env variables are fixed when building the app.
# React env variables need to be prefixed with "REACT_APP", otherwise the variables are ignored for
# security reasons.
REACT_APP_URL_SITE_BACKEND=http://localhost:5000/
REACT_APP_URL_API=http://localhost:8002/
REACT_APP_URL_ELASTICSEARCH=http://localhost:9200/
REACT_APP_ELASTICSEARCH_VERSION_MAYOR=8
REACT_APP_URL_MINIO=http://localhost:9000
23 changes: 23 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FLASK_APP=autoapp.py
FLASK_ENV=development
SMTP_SERVER=smtp.mailtrap.io
SMTP_PORT=2525
DATABASE_URI=sqlite:///openml.db
EMAIL_SENDER=[email protected]
SMTP_LOGIN=
SMTP_PASS=
APP_SECRET_KEY=abcd
JWT_SECRET_KEY=abcd
TESTING=True

URL_API=https://test.openml.org/k8sapi

# REACT
# React env variables are fixed when building the app.
# React env variables need to be prefixed with "REACT_APP", otherwise the variables are ignored for
# security reasons.
REACT_APP_URL_SITE_BACKEND=https://localhost:5000/
REACT_APP_URL_API=https://test.openml.org/k8sapi
REACT_APP_URL_ELASTICSEARCH=https://test.openml.org/k8ses/
REACT_APP_ELASTICSEARCH_VERSION_MAYOR=8
REACT_APP_URL_MINIO=https://test.openml.org/minio
5 changes: 5 additions & 0 deletions app/src/pages/f/[flowId].js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { CollapsibleDataTable, StringLimiter } from "../api/sizeLimiter";

import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCogs, faTags } from "@fortawesome/free-solid-svg-icons";
import Wrapper from "../../components/Wrapper";

export async function getStaticPaths() {
// No paths are pre-rendered
Expand Down Expand Up @@ -49,6 +50,9 @@ function Flow({ data }) {
let parameterCols = ["Name", "Description", "Type", "Default Value"];

return (
<Wrapper>
<Helmet title="OpenML Flows" />

<React.Fragment>
<Grid container spacing={6}>
<Grid item xs={12}>
Expand Down Expand Up @@ -169,6 +173,7 @@ function Flow({ data }) {
{shortenName(data.name)}
</Typography> */}
</React.Fragment>
</Wrapper>
);
}

Expand Down
4 changes: 4 additions & 0 deletions app/src/pages/r/[runId].js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { faTags, faTrophy } from "@fortawesome/free-solid-svg-icons";
import { MetaTag } from "../../components/MetaItems";
import { CollapsibleDataTable } from "../api/sizeLimiter";
import { EvaluationDetail, FlowDetail, TagChip } from "../api/itemDetail";
import Wrapper from "../../components/Wrapper";

export async function getStaticPaths() {
// No paths are pre-rendered
Expand Down Expand Up @@ -48,6 +49,8 @@ function Run({ data }) {
//ID counter for evaluations
var evaluationID = 0;
return (
<Wrapper>
<Helmet title="OpenML Runs" />
<React.Fragment>
<Grid container spacing={6}>
<Grid item xs={12}>
Expand Down Expand Up @@ -140,6 +143,7 @@ function Run({ data }) {
</Grid>
</Grid>
</React.Fragment>
</Wrapper>
);
}

Expand Down
4 changes: 4 additions & 0 deletions app/src/pages/t/[taskId].js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
} from "@mui/material";
import { green } from "@mui/material/colors";
import { updateTag, TagChip } from "../api/itemDetail";
import Wrapper from "../../components/Wrapper";

export async function getStaticPaths() {
// No paths are pre-rendered
Expand Down Expand Up @@ -64,6 +65,8 @@ function Task({ data }) {
},
];
return (
<Wrapper>
<Helmet title="OpenML Tasks" />
<React.Fragment>
<Grid container spacing={6}>
<Grid item xs={12}>
Expand Down Expand Up @@ -137,6 +140,7 @@ function Task({ data }) {
</Grid>
</Grid>
</React.Fragment>
</Wrapper>
);
}

Expand Down
4 changes: 3 additions & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ For k8s:
./server/src/client/app/node_modules/.bin/env-cmd -f ./.env.k8s npm run build --prefix server/src/client/app/
docker build -f docker/Dockerfile --tag openml/frontend:k8s .
docker push openml/frontend:k8s
```
```

Similarly, builds can be made for local development and test.

0 comments on commit c87c21b

Please sign in to comment.