Skip to content

Commit 9dffc57

Browse files
authored
Merge pull request #341 from dappnode/logging-driver
Explicitly set default logging driver
2 parents d05897a + 97add2a commit 9dffc57

File tree

4 files changed

+3
-26
lines changed

4 files changed

+3
-26
lines changed

build/src/src/modules/release/parsers/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ export function sanitizeCompose(
177177
...(env_file.length ? { env_file } : {}),
178178
// Add logging options to prevent huge log files
179179
logging: service.logging || {
180+
driver: "json-file",
180181
options: {
181182
"max-size": "10m",
182183
"max-file": "3"

build/src/test/modules/installer/createCustomVolumeDevicePaths.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ describe("Module > installer > createCustomVolumeDevicePaths", () => {
1616
"raiden.dnp.dappnode.eth": {
1717
volumes: ["data:/root/.raiden"],
1818
container_name: "DAppNodePackage-raiden.dnp.dappnode.eth",
19-
image: "raiden.dnp.dappnode.eth:0.0.2",
20-
logging: {
21-
options: {
22-
"max-size": "10m",
23-
"max-file": "3"
24-
}
25-
}
19+
image: "raiden.dnp.dappnode.eth:0.0.2"
2620
}
2721
},
2822
volumes: {

build/src/test/testUtils.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,7 @@ export const mockDirectoryDnp: DirectoryDnp = {
200200
export const mockComposeService: ComposeService = {
201201
image: `${mockDnpName}:${mockDnpVersion}`,
202202
/* eslint-disable-next-line @typescript-eslint/camelcase */
203-
container_name: `DAppNodePackage-${mockDnpName}`,
204-
logging: {
205-
options: {
206-
"max-size": "10m",
207-
"max-file": "3"
208-
}
209-
}
203+
container_name: `DAppNodePackage-${mockDnpName}`
210204
};
211205

212206
export const mockCompose: Compose = {

build/src/test/utils/dockerComposeParsers.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ const polkadotNewCompose = {
4747
],
4848
restart: "always",
4949
container_name: "DAppNodePackage-polkadot-kusama.public.dappnode.eth",
50-
logging: {
51-
options: {
52-
"max-size": "10m",
53-
"max-file": "3"
54-
}
55-
},
5650
dns: "172.33.1.2",
5751
networks: ["dncore_network"]
5852
}
@@ -362,12 +356,6 @@ describe("Util: dockerComposeParsers", () => {
362356
network: {
363357
ipv4_address: "172.33.1.6"
364358
}
365-
},
366-
logging: {
367-
options: {
368-
"max-size": "10m",
369-
"max-file": "3"
370-
}
371359
}
372360
}
373361
}

0 commit comments

Comments
 (0)