No Branch/Tag Specified
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Help wanted
3
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Issue tracking
Backlog
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/garage#5
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
how could something like this could be achieved via
.envandgarage.toml.templ? or include/concatenate an external file with custom configurations?https://garagehq.deuxfleurs.fr/documentation/operations/multi-hdd/
If you put
data_dir = [{{ env "UGLY_DATA_DIR_DUMP" }}]and then your.tmplfile and then just dump a super ugly'{ path = "/path/to/old_data", read_only = true }, { path = "/path/to/new_hdd1", capacity = "2T" }, { path = "/path/to/new_hdd2", capacity = "4T" },'then you're done? This might be guaranteed to cause further headaches 😬 I can't quite think of a recipe that deals with a complex config setup like this 🤔thanks! but yeah we'll be dealing with quote-escaping issues then, no?
Yes, you'd need to check the usage of
'and". You could potentially escape\"on the.envside. There might be some obscure functionality in Golang templating to help you out here but I wouldn't know. Good luck!@decentral1se what's the templating called? i seem to find a lot of these for golang and never the official reference
It's a disaster in terms of docs: https://pkg.go.dev/text/template#hdr-Actions I just search online and read what other people did. Looking at other recipes... there are even features which are only implemented in swarms version of the templating which aren't even supported in the compose spec. Dog bless us all.
besides templating issues, i'm thinking disks could be mounted on
$LOCAL_FOLDER_DATA/diskXso they example config would be like this:but i'm not sure if docker will show the nested mount points to the container.
reference:
https://git.coopcloud.tech/coop-cloud/garage/src/branch/main/compose.yml#L33
looks like it would work, so no changes needed to
compose.yml:I'm confused about the purpose of this script, what is the suggested change to the recipe to support multi-hdd?
I was thinking through this, what do people think about a syntax like:
Where disks are set with a defined format and assumed to be relative to the set root, this way there's not a ton of complex changes to compose.yml
I'm still working on it but I believe that I have a working tmpl file that can ingest this syntax.
looks great @Brooke! the script was an experiment to see if bind mounting partitions into a volume would make them available to the container, which seemed to be the case and you can render a template like this #5 (comment) without changes to the compose file