Skip to content

Commit e602d3e

Browse files
authored
upgrade to python-dvuploader 0.3.0 and allocate a pseudo-tty (#4)
* allocate a pseudotty for dvuploader python-dvuploader uses typer, which gives fancy progress bars, etc.; without a pseudotty, the output doesn't auto update or get the nice color formatting. * upgrade to python-dvuploader 0.3.0
1 parent 1223c92 commit e602d3e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Dataverse -> /srv/dataverse-prod
1313

1414
## Permissions
1515

16-
You don't necessarily want to give docker rights to users of this script, since docker implies root permissions. You can extend a limited ability to run the script with the following workaround:
16+
You don't necessarily want to give docker rights to users of this script, since docker implies root permissions. You can extend a limited ability to run the script with the following workaround (see [`scripts`](scripts)):
1717

1818
```sh
1919
# In system-wide profile
@@ -22,6 +22,7 @@ alias dvuploader="sudo /usr/local/sbin/dvuploader.sh"
2222
# In /usr/local/sbin/dvuploader.sh
2323
#!/bin/sh -e
2424
exec docker run \
25+
-t \
2526
--init \
2627
--rm \
2728
--volume /srv/da:/srv/da:ro \

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# once dvuploader 0.3.0 is out, point this to a proper release spec
2-
dvuploader @ https://github.com/BerkeleyLibrary/python-dvuploader/archive/refs/heads/include-tab-ingest-rebased.zip
1+
dvuploader >= 0.3.0

scripts/dvuploader.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh -e
22
exec docker run \
3+
-t \
34
--init \
45
--rm \
56
--volume /srv/da:/srv/da:ro \

0 commit comments

Comments
 (0)