mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-19 03:29:37 +02:00
Update frontend to allow custom docker socket on host
This commit is contained in:
parent
b180983872
commit
490c109b01
6 changed files with 832 additions and 293 deletions
1106
client/package-lock.json
generated
1106
client/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -57,7 +57,7 @@ export const DockerSettings = (): JSX.Element => {
|
||||||
return (
|
return (
|
||||||
<form onSubmit={(e) => formSubmitHandler(e)}>
|
<form onSubmit={(e) => formSubmitHandler(e)}>
|
||||||
<SettingsHeadline text="Docker" />
|
<SettingsHeadline text="Docker" />
|
||||||
{/* CUSTOM DOCKER SOCKET HOST */}
|
{/* CUSTOM DOCKER REMOTE HOST */}
|
||||||
<InputGroup>
|
<InputGroup>
|
||||||
<label htmlFor="dockerHost">Docker host</label>
|
<label htmlFor="dockerHost">Docker host</label>
|
||||||
<input
|
<input
|
||||||
|
@ -100,6 +100,19 @@ export const DockerSettings = (): JSX.Element => {
|
||||||
</select>
|
</select>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
|
|
||||||
|
{/* CUSTOM DOCKER SOCKET */}
|
||||||
|
<InputGroup>
|
||||||
|
<label htmlFor="dockerSocket">Docker socket</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
id="dockerSocket"
|
||||||
|
name="dockerSocket"
|
||||||
|
placeholder="/path/to/socket.sock"
|
||||||
|
value={formData.dockerSocket}
|
||||||
|
onChange={(e) => inputChangeHandler(e)}
|
||||||
|
/>
|
||||||
|
</InputGroup>
|
||||||
|
|
||||||
{/* KUBERNETES SETTINGS */}
|
{/* KUBERNETES SETTINGS */}
|
||||||
<SettingsHeadline text="Kubernetes" />
|
<SettingsHeadline text="Kubernetes" />
|
||||||
{/* USE KUBERNETES */}
|
{/* USE KUBERNETES */}
|
||||||
|
|
|
@ -20,6 +20,7 @@ export interface Config {
|
||||||
secondarySearchProvider: string;
|
secondarySearchProvider: string;
|
||||||
dockerApps: boolean;
|
dockerApps: boolean;
|
||||||
dockerHost: string;
|
dockerHost: string;
|
||||||
|
dockerSocket: string;
|
||||||
kubernetesApps: boolean;
|
kubernetesApps: boolean;
|
||||||
unpinStoppedApps: boolean;
|
unpinStoppedApps: boolean;
|
||||||
useAmericanDate: boolean;
|
useAmericanDate: boolean;
|
||||||
|
|
|
@ -37,6 +37,7 @@ export interface UISettingsForm {
|
||||||
export interface DockerSettingsForm {
|
export interface DockerSettingsForm {
|
||||||
dockerApps: boolean;
|
dockerApps: boolean;
|
||||||
dockerHost: string;
|
dockerHost: string;
|
||||||
|
dockerSocket: string;
|
||||||
kubernetesApps: boolean;
|
kubernetesApps: boolean;
|
||||||
unpinStoppedApps: boolean;
|
unpinStoppedApps: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ export const configTemplate: Config = {
|
||||||
secondarySearchProvider: 'd',
|
secondarySearchProvider: 'd',
|
||||||
dockerApps: false,
|
dockerApps: false,
|
||||||
dockerHost: 'localhost',
|
dockerHost: 'localhost',
|
||||||
|
dockerSocket: '/var/run/docker.sock',
|
||||||
kubernetesApps: false,
|
kubernetesApps: false,
|
||||||
unpinStoppedApps: false,
|
unpinStoppedApps: false,
|
||||||
useAmericanDate: false,
|
useAmericanDate: false,
|
||||||
|
|
|
@ -44,6 +44,7 @@ export const generalSettingsTemplate: GeneralForm = {
|
||||||
export const dockerSettingsTemplate: DockerSettingsForm = {
|
export const dockerSettingsTemplate: DockerSettingsForm = {
|
||||||
dockerApps: true,
|
dockerApps: true,
|
||||||
dockerHost: 'localhost',
|
dockerHost: 'localhost',
|
||||||
|
dockerSocket: '/var/run/docker.sock',
|
||||||
kubernetesApps: true,
|
kubernetesApps: true,
|
||||||
unpinStoppedApps: true,
|
unpinStoppedApps: true,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue