Skip to content

Commit b5dd513

Browse files
committed
Make Docker injected data folder hidden
Not very well hidden, but might avoid issues or confusion (and seem more like swish magic) by not appearing in a simple 'ls /' listing.
1 parent be15c8d commit b5dd513

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/interceptors/docker/docker-build-injection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getDeferred } from '../../util/promise';
1212
import { getDockerHostAddress } from './docker-commands';
1313
import { packOverrideFiles } from './docker-data-injection';
1414

15-
const HTTP_TOOLKIT_INJECTED_PATH = '/http-toolkit-injections';
15+
const HTTP_TOOLKIT_INJECTED_PATH = '/.http-toolkit-injections';
1616
const HTTP_TOOLKIT_INJECTED_OVERRIDES_PATH = path.posix.join(HTTP_TOOLKIT_INJECTED_PATH, 'overrides');
1717
const HTTP_TOOLKIT_INJECTED_CA_PATH = path.posix.join(HTTP_TOOLKIT_INJECTED_PATH, 'ca.pem');
1818

src/interceptors/docker/docker-commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const DOCKER_CONTAINER_LABEL = "tech.httptoolkit.docker.proxy";
1414
* The path inside the container where injected files will be stored, and so the paths that
1515
* env vars injected into the container need to reference.
1616
*/
17-
const HTTP_TOOLKIT_INJECTED_PATH = '/http-toolkit-injections';
17+
const HTTP_TOOLKIT_INJECTED_PATH = '/.http-toolkit-injections';
1818
const HTTP_TOOLKIT_INJECTED_OVERRIDES_PATH = path.posix.join(HTTP_TOOLKIT_INJECTED_PATH, 'overrides');
1919
const HTTP_TOOLKIT_INJECTED_CA_PATH = path.posix.join(HTTP_TOOLKIT_INJECTED_PATH, 'ca.pem');
2020

0 commit comments

Comments
 (0)