Compare commits

...

1 Commits

Author SHA1 Message Date
7f8106a64b WIP 2022-05-03 21:25:32 +00:00
7 changed files with 18 additions and 1 deletions

View File

@ -3020,6 +3020,10 @@ Use QEMU for ARM architecture emulation during the image build
Alternative Dockerfile name/path, relative to the source folder Alternative Dockerfile name/path, relative to the source folder
#### --dockercompose DOCKERCOMPOSE
Alternative docker-compose.yml name in the source root folder
#### --logs #### --logs
No-op and deprecated since balena CLI v12.0.0. Build logs are now shown by default. No-op and deprecated since balena CLI v12.0.0. Build logs are now shown by default.
@ -3244,6 +3248,10 @@ Use QEMU for ARM architecture emulation during the image build
Alternative Dockerfile name/path, relative to the source folder Alternative Dockerfile name/path, relative to the source folder
#### --dockercompose DOCKERCOMPOSE
Alternative docker-compose.yml name in the source root folder
#### --logs #### --logs
No-op and deprecated since balena CLI v12.0.0. Build logs are now shown by default. No-op and deprecated since balena CLI v12.0.0. Build logs are now shown by default.

View File

@ -114,7 +114,7 @@ ${dockerignoreHelp}
]; ];
public static usage = 'deploy <fleet> [image]'; public static usage = 'deploy <fleet> [image]';
// TODO: docker-compose naming
public static flags: flags.Input<FlagsDef> = { public static flags: flags.Input<FlagsDef> = {
source: flags.string({ source: flags.string({
description: description:

View File

@ -138,6 +138,7 @@ export default class PushCmd extends Command {
char: 'e', char: 'e',
default: false, default: false,
}), }),
// TODO: docker-compose naming
dockerfile: flags.string({ dockerfile: flags.string({
description: description:
'Alternative Dockerfile name/path, relative to the source folder', 'Alternative Dockerfile name/path, relative to the source folder',

View File

@ -61,6 +61,7 @@ export interface ComposeOpts {
export interface ComposeCliFlags { export interface ComposeCliFlags {
emulated: boolean; emulated: boolean;
dockerfile?: string; dockerfile?: string;
dockercompose?: string;
logs: boolean; logs: boolean;
nologs: boolean; nologs: boolean;
'multi-dockerignore': boolean; 'multi-dockerignore': boolean;

View File

@ -1639,6 +1639,7 @@ function truncateString(str: string, len: number): string {
return str.slice(0, str.lastIndexOf('\n')); return str.slice(0, str.lastIndexOf('\n'));
} }
// TODO: docker-compose naming
export const composeCliFlags: flags.Input<ComposeCliFlags> = { export const composeCliFlags: flags.Input<ComposeCliFlags> = {
emulated: flags.boolean({ emulated: flags.boolean({
description: description:
@ -1649,6 +1650,10 @@ export const composeCliFlags: flags.Input<ComposeCliFlags> = {
description: description:
'Alternative Dockerfile name/path, relative to the source folder', 'Alternative Dockerfile name/path, relative to the source folder',
}), }),
dockercompose: flags.string({
description:
'Alternative docker-compose.yml name in the source root folder',
}),
logs: flags.boolean({ logs: flags.boolean({
description: description:
'No-op and deprecated since balena CLI v12.0.0. Build logs are now shown by default.', 'No-op and deprecated since balena CLI v12.0.0. Build logs are now shown by default.',

View File

@ -92,6 +92,7 @@ async function readDockerIgnoreFile(projectDir: string): Promise<string> {
return dockerIgnoreStr; return dockerIgnoreStr;
} }
// TODO: docker-compose naming
/** /**
* Create an instance of '@balena/dockerignore', initialized with the contents * Create an instance of '@balena/dockerignore', initialized with the contents
* of a .dockerignore file (if any) found at the given directory argument, plus * of a .dockerignore file (if any) found at the given directory argument, plus

View File

@ -86,6 +86,7 @@ If the --registry-secrets option is not specified, and a secrets.yml or
secrets.json file exists in the balena directory (usually $HOME/.balena), secrets.json file exists in the balena directory (usually $HOME/.balena),
this file will be used instead.`; this file will be used instead.`;
// TODO: docker-compose naming
export const dockerignoreHelp = export const dockerignoreHelp =
'DOCKERIGNORE AND GITIGNORE FILES \n' + 'DOCKERIGNORE AND GITIGNORE FILES \n' +
`By default, the balena CLI will use a single ".dockerignore" file (if any) at `By default, the balena CLI will use a single ".dockerignore" file (if any) at