https://github.com/mrc-ide/outpack.orderly
https://github.com/mrc-ide/outpack.orderly
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrc-ide/outpack.orderly
- Owner: mrc-ide
- License: other
- Created: 2022-04-04T14:53:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T14:34:17.000Z (over 1 year ago)
- Last Synced: 2025-02-16T03:16:09.542Z (5 months ago)
- Language: R
- Homepage: https://mrc-ide.github.io/outpack.orderly/
- Size: 227 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# outpack.orderly
[](https://www.repostatus.org/#concept)
[](https://github.com/mrc-ide/outpack.orderly/actions)
[](https://codecov.io/github/mrc-ide/outpack.orderly?branch=main)A temporary package to play around with outpack migration etc.
## Installation
To install `outpack.orderly`:
```r
remotes::install_github("mrc-ide/outpack.orderly", upgrade = FALSE)
```## Usage from docker
```
Usage:
mrcide/outpack.orderly [--once] [--minutes=] [--custom=]Options:
--once Perform migration once.
--minutes= Schedule migration every x minutes.
--custom= Schedule migration using cron.```
You will have to first mount the `orderly` and `outpack` directories as volumes.
`orderly` can be readonly.```
docker run -v orderly:/orderly:ro \
-v outpack:/outpack \
mrcide/outpack.orderly /orderly /outpack --once
```If running on a schedule, you most likely want to run in detached mode:
```
docker run -v orderly:/orderly:ro \
-v outpack:/outpack \
-d \
mrcide/outpack.orderly /orderly /outpack --custom="* * * * *"
```If not using named volumes, you probably want to run as the host user to avoid
root owned files being created:```
docker run -v /some/path/orderly:/orderly:ro \
-v /another/path/outpack:/outpack \
-d \
-u $UID \
mrcide/outpack.orderly /orderly /outpack --custom="* * * * *"
```## Usage without docker
Recommended usage is from docker but to run a one-off migration on metal,
first install this package from source and then use `./orderly2outpack.R`:```
Usage:
./orderly2outpack.R```
## License
MIT © Imperial College of Science, Technology and Medicine