-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca6a58b
commit 90e53a5
Showing
17 changed files
with
87 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export enum ManifestFormat { | ||
json = "json", | ||
yml = "yml", | ||
yaml = "yaml" | ||
} | ||
|
||
export interface ManifestPaths { | ||
/** './folder', [optional] directory to load the manifest from */ | ||
dir?: string; | ||
/** 'manifest-admin.json', [optional] name of the manifest file */ | ||
manifestFileName?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Architecture } from "@dappnode/types"; | ||
|
||
/** | ||
* Returns the image path for the given container name, version and architecture | ||
* @param name Container name | ||
* @param version Container version | ||
* @param arch Container architecture in the format <os>/<arch> | ||
* @returns Image path in the format <name>_<version>_<os>-<arch>.txz | ||
*/ | ||
export const getImagePath = ( | ||
name: string, | ||
version: string, | ||
arch: Architecture | ||
): string => `${name}_${version}_${getArchTag(arch)}.txz`; | ||
|
||
/** | ||
* Returns the arch tag for the given architecture | ||
* @param arch Architecture in the format <os>/<arch> | ||
* @returns Arch tag in the format <os>-<arch> | ||
*/ | ||
const getArchTag = (arch: Architecture): string => arch.replace(/\//g, "-"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Returns the legacy image path for the given container name and version | ||
* @param name Container name | ||
* @param version Container version | ||
* @returns Legacy image path in the format <name>_<version>.tar.xz | ||
*/ | ||
export const getLegacyImagePath = (name: string, version: string): string => | ||
`${name}_${version}.tar.xz`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,16 +85,16 @@ | |
semver "^7.5.0" | ||
yaml "^2.2.2" | ||
|
||
"@dappnode/[email protected]": | ||
version "0.1.17" | ||
resolved "https://registry.yarnpkg.com/@dappnode/types/-/types-0.1.17.tgz#b15fba7356acae7f2751f0cfe4db08eccb004993" | ||
integrity sha512-XfMYmF/b/p9a24YB2b6D7LWS/wQzPMYEklTAvVRRmJbVgwklIE+j02O90Qhc9RXxqxL9gB+WnpPEiXie2EUhIw== | ||
|
||
"@dappnode/types@^0.1.19": | ||
version "0.1.20" | ||
resolved "https://registry.yarnpkg.com/@dappnode/types/-/types-0.1.20.tgz#7ac75c1fdf13b4eb85ec60c3794199755d14ac22" | ||
integrity sha512-r8688eUOJzZAJzwWWTdijIJF3NrvPo6y8N4Akqtb+Ehi8mn+xg52RHo8CVSaIcx+z+W5UEQOjXhLdhZY5lwF4Q== | ||
|
||
"@dappnode/types@^0.1.33": | ||
version "0.1.33" | ||
resolved "https://registry.yarnpkg.com/@dappnode/types/-/types-0.1.33.tgz#0b054b4c527c7f0ffe122c42c6b986da4f38a620" | ||
integrity sha512-wORHHoM1ep7oCdhQ5rHN7R0qvlecdNh9z+6Hde0kilzL/jo9OX/vl4CKCxZq0JlhsJixcQx42cd418UZ/AKzog== | ||
|
||
"@dappnode/types@^0.1.9": | ||
version "0.1.9" | ||
resolved "https://registry.yarnpkg.com/@dappnode/types/-/types-0.1.9.tgz#23d13181ab077b33e23b929bd32cc6b2b618ec4a" | ||
|