comp2unraid

command module
v0.0.0-...-c183874 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

Docker Go

comp2unraid

Convert docker compose templates to unraid template

Usage

  • Have your docker-compose.yml ready, as an URL https://...docker-compose.yml or a local file on your server
  • SSH to your Unraid server or open a shell terminal in your browser
  • Execute it without installing using docker run, download the binary or compile from source, whatever you prefer.
Run using docker

Preview the xml first, using the -n (dry run) flag

docker run ghcr.io/ogglord/comp2unraid -n "https://raw.githubusercontent.com/user/r/docker-compose.yml"

Then; pipe the output to an xml file

docker run ghcr.io/ogglord/comp2unraid -n "https://raw.githubusercontent.com/user/r/docker-compose.yml" > my-template.xml

Note: if your docker-compose contains multiple services, you will have to split the xml manually, or run the binary, see below, which generates one xml file per service

Download binary
  • Download the latest release from Github
  • ./comp2unraid "https://raw.githubusercontent.com/user/r/docker-compose.yml"
Compile from source
  • Install go v1.23.1
  • Clone this repo
  • Compile binaries using make this will cross-compile to ./bin folder by default
  • ./comp2unraid "https://raw.githubusercontent.com/user/r/docker-compose.yml"

You may also build the docker image locally using make docker and run using docker run local/comp2unraid

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL