You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-16
Original file line number
Diff line number
Diff line change
@@ -14,31 +14,31 @@ See the following references for more information on how to build these template
14
14
### Workflow Templates
15
15
Workflow Templates consist of YAML definitions and Docker images that define a DAG in Onepanel.
16
16
17
-
-[Albumentations data pre-processing](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/albumentations-preprocessing) - This Workflow is included in [TFOD](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/tf-object-detection-training) and [MaskRCNN](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/maskrcnn-training) training Workflows and allows you to apply different augmentations to your data before training.
18
-
-[Auto CVAT](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/auto-cvat) - Allows you to automate your annotation workflow by creating CVAT instances and pre-populating them with data to be annotated.
19
-
-[Hyperparameter tuning](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/hyperparameter-tuning) - Hyperparameter tuning Workflow using [NNI](https://github.com/microsoft/nni). Included in Onepanel deployment.
20
-
-[MaskRCNN training](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/maskrcnn-training) - Workflow for semantic segmentation model training fully integrated with CVAT and included in Onepanel deployment.
21
-
-[PyTorch training](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/pytorch-mnist-training) - Simple MNIST training example using PyTorch.
22
-
-[TensorFlow training](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/tensorflow-mnist-training) - Simple MNIST training example using TensorFlow.
23
-
-[TensorFlow Object Detection training](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/tf-object-detection-training) - Workflow for object detection model training fully integrated with CVAT and included in Onepanel deployment.
17
+
-[Albumentations data pre-processing](https://github.com/onepanelio/templates/blob/master/workflows/albumentations-preprocessing) - This Workflow is included in [TFOD](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/tf-object-detection-training) and [MaskRCNN](https://github.com/onepanelio/templates/tree/release-v0.18.0/workflows/maskrcnn-training) training Workflows and allows you to apply different augmentations to your data before training.
18
+
-[Auto CVAT](https://github.com/onepanelio/templates/blob/master/workflows/auto-cvat) - Allows you to automate your annotation workflow by creating CVAT instances and pre-populating them with data to be annotated.
19
+
-[Hyperparameter tuning](https://github.com/onepanelio/templates/blob/master/workflows/hyperparameter-tuning) - Hyperparameter tuning Workflow using [NNI](https://github.com/microsoft/nni). Included in Onepanel deployment.
20
+
-[MaskRCNN training](https://github.com/onepanelio/templates/blob/master/workflows/maskrcnn-training) - Workflow for semantic segmentation model training fully integrated with CVAT and included in Onepanel deployment.
21
+
-[PyTorch training](https://github.com/onepanelio/templates/blob/master/workflows/pytorch-mnist-training) - Simple MNIST training example using PyTorch.
22
+
-[TensorFlow training](https://github.com/onepanelio/templates/blob/master/workflows/tensorflow-mnist-training) - Simple MNIST training example using TensorFlow.
23
+
-[TensorFlow Object Detection training](https://github.com/onepanelio/templates/blob/master/workflows/tf-object-detection-training) - Workflow for object detection model training fully integrated with CVAT and included in Onepanel deployment.
24
24
25
25
### Workspace Templates
26
26
Workspace Templates consist of YAML definitions and Docker images that define stateful instances like JupyterLab, CVAT and any other IDE.
27
27
28
-
-[CVAT](https://github.com/onepanelio/templates/tree/release-v0.18.0/workspaces/cvat) - An interactive video and image annotation tool for computer vision.
29
-
-[JupyterLab](https://github.com/onepanelio/templates/tree/release-v0.18.0/workspaces/jupyterlab) - An extensible environment for interactive and reproducible computing, based on Jupyter Notebook.
30
-
-[Eclipse Theia](https://github.com/onepanelio/templates/tree/release-v0.18.0/workspaces/theia) - An extensible platform to develop multi-language cloud and desktop IDEs with state-of-the-art web technologies.
31
-
-[Ubuntu VNC](https://github.com/onepanelio/templates/tree/release-v0.18.0/workspaces/vnc) (alpha) - A full Ubuntu instance accessible in your web browser.
32
-
-[Visual Studio Code](https://github.com/onepanelio/templates/tree/release-v0.18.0/workspaces/vscode) - A lightweight but powerful source code editor which has support for just about everything.
28
+
-[CVAT](https://github.com/onepanelio/templates/blob/master/workspaces/cvat) - An interactive video and image annotation tool for computer vision.
29
+
-[JupyterLab](https://github.com/onepanelio/templates/blob/master/workspaces/jupyterlab) - An extensible environment for interactive and reproducible computing, based on Jupyter Notebook.
30
+
-[Eclipse Theia](https://github.com/onepanelio/templates/blob/master/workspaces/theia) - An extensible platform to develop multi-language cloud and desktop IDEs with state-of-the-art web technologies.
31
+
-[Ubuntu VNC](https://github.com/onepanelio/templates/blob/master/workspaces/vnc) (alpha) - A full Ubuntu instance accessible in your web browser.
32
+
-[Visual Studio Code](https://github.com/onepanelio/templates/blob/master/workspaces/vscode) - A lightweight but powerful source code editor which has support for just about everything.
33
33
34
34
### Sidecars
35
35
Sidecars are components that extend your Workspace or Workflow Tasks.
36
36
37
-
-[FileSyncer](https://github.com/onepanelio/templates/tree/release-v0.18.0/sidecars/filesyncer) - Provides the APIs to sync files between Workspaces and default object storage.
38
-
-[NNI Web UI](https://github.com/onepanelio/templates/tree/release-v0.18.0/sidecars/nni-web-ui) - Provides a proxy to NNI Web UI so that you can see the experiments in your hyperparameter tuning Workflows.
37
+
-[FileSyncer](https://github.com/onepanelio/templates/blob/master/sidecars/filesyncer) - Provides the APIs to sync files between Workspaces and default object storage.
38
+
-[NNI Web UI](https://github.com/onepanelio/templates/blob/master/sidecars/nni-web-ui) - Provides a proxy to NNI Web UI so that you can see the experiments in your hyperparameter tuning Workflows.
39
39
40
40
### Tasks
41
41
Tasks are the individual tasks in your Workflow (nodes in your DAG).
42
42
43
-
-[Metrics writer](https://github.com/onepanelio/templates/tree/release-v0.18.0/tasks/metrics-writer) - Task you can include to any Workflow Template to persist final metrics.
44
-
-[Slack notifications](https://github.com/onepanelio/templates/tree/release-v0.18.0/tasks/slack-notify) - Task you can add to any Workflow or Workspace Template to send notifications to Slack.
43
+
-[Metrics writer](https://github.com/onepanelio/templates/blob/master/tasks/metrics-writer) - Task you can include to any Workflow Template to persist final metrics.
44
+
-[Slack notifications](https://github.com/onepanelio/templates/blob/master/tasks/slack-notify) - Task you can add to any Workflow or Workspace Template to send notifications to Slack.
Sidecar container for syncing files from multiple object storage providers.
3
+
Sidecar container for syncing files from the storage providers supported by Onepanel.
4
4
5
-
Currently supports:
5
+
## How to run locally
6
6
7
-
- S3
8
-
- GCS
9
-
- Azure blob storage
7
+
`filesyncer` is meant to run in Onepanel as a sidecar container. For development, you can run it as follows.
10
8
9
+
### Server mode
11
10
12
-
## How to run locally
11
+
In this mode, you can send HTTP requests to `filesyncer` to sync down from an object storage prefix to a local path or sync up from a local path to an object storage prefix.
12
+
13
+
To run `filesyncer` in server mode:
14
+
15
+
```bash
16
+
go run main.go server -server-prefix /sys/filesyncer
17
+
```
13
18
14
-
`file-syncer` is meant to run in Onepanel as a sidecar container.
19
+
To test the endpoints:
15
20
16
-
For development, you can run as follows:
21
+
```bash
22
+
# Sync down
23
+
curl localhost:8888/sys/filesyncer/api/sync -X POST --data '{"action": "download", "path":"/tmp", "prefix":"artifacts/my-namespace/"}'
24
+
25
+
# Sync up
26
+
curl localhost:8888/sys/filesyncer/api/sync -X POST --data '{"action": "upload", "path":"/tmp", "prefix":"artifacts/my-namespace/"}'
27
+
```
28
+
29
+
### Automatic syncing mode
17
30
18
31
```bash
19
32
FS_PATH=./files FS_PREFIX=data go run main.go upload
Note that also indicate `FS_PROVIDER`, `FS_PATH` and `FS_PREFIX` as environment variables in the Docker commands, or you can mount the secret mocks like so:
0 commit comments