use pangolin cli for container

This commit is contained in:
miloschwartz
2026-02-12 14:51:11 -08:00
parent a35586f762
commit e9d0ad6e37
3 changed files with 25 additions and 25 deletions

View File

@@ -2060,7 +2060,7 @@
"machineClientsBannerDescription": "Machine clients are for servers and automated systems that are not associated with a specific user. They authenticate with an ID and secret, and can run with Pangolin CLI, Olm CLI, or Olm as a container.", "machineClientsBannerDescription": "Machine clients are for servers and automated systems that are not associated with a specific user. They authenticate with an ID and secret, and can run with Pangolin CLI, Olm CLI, or Olm as a container.",
"machineClientsBannerPangolinCLI": "Pangolin CLI", "machineClientsBannerPangolinCLI": "Pangolin CLI",
"machineClientsBannerOlmCLI": "Olm CLI", "machineClientsBannerOlmCLI": "Olm CLI",
"machineClientsBannerOlmContainer": "Olm Container", "machineClientsBannerOlmContainer": "Container",
"clientsTableUserClients": "User", "clientsTableUserClients": "User",
"clientsTableMachineClients": "Machine", "clientsTableMachineClients": "Machine",
"licenseTableValidUntil": "Valid Until", "licenseTableValidUntil": "Valid Until",

View File

@@ -18,11 +18,11 @@ export type CommandItem = string | { title: string; command: string };
const PLATFORMS = [ const PLATFORMS = [
"unix", "unix",
"windows",
"docker", "docker",
"kubernetes", "kubernetes",
"podman", "podman",
"nixos" "nixos",
"windows"
] as const; ] as const;
type Platform = (typeof PLATFORMS)[number]; type Platform = (typeof PLATFORMS)[number];

View File

@@ -14,7 +14,7 @@ import { Button } from "./ui/button";
export type CommandItem = string | { title: string; command: string }; export type CommandItem = string | { title: string; command: string };
const PLATFORMS = ["unix", "windows", "docker"] as const; const PLATFORMS = ["unix", "docker", "windows"] as const;
type Platform = (typeof PLATFORMS)[number]; type Platform = (typeof PLATFORMS)[number];
@@ -51,6 +51,27 @@ export function OlmInstallCommands({
} }
] ]
}, },
docker: {
"Docker Compose": [
`services:
pangolin-cli:
image: fosrl/pangolin-cli
container_name: pangolin-cli
restart: unless-stopped
network_mode: host
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- PANGOLIN_ENDPOINT=${endpoint}
- CLIENT_ID=${id}
- CLIENT_SECRET=${secret}`
],
"Docker Run": [
`docker run -dit --network host --cap-add NET_ADMIN --device /dev/net/tun:/dev/net/tun fosrl/pangolin-cli up client --id ${id} --secret ${secret} --endpoint ${endpoint} --attach`
]
},
windows: { windows: {
x64: [ x64: [
{ {
@@ -63,27 +84,6 @@ export function OlmInstallCommands({
command: `olm.exe --id ${id} --secret ${secret} --endpoint ${endpoint}` command: `olm.exe --id ${id} --secret ${secret} --endpoint ${endpoint}`
} }
] ]
},
docker: {
"Docker Compose": [
`services:
olm:
image: fosrl/olm
container_name: olm
restart: unless-stopped
network_mode: host
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- PANGOLIN_ENDPOINT=${endpoint}
- OLM_ID=${id}
- OLM_SECRET=${secret}`
],
"Docker Run": [
`docker run -dit --network host --cap-add NET_ADMIN --device /dev/net/tun:/dev/net/tun fosrl/olm --id ${id} --secret ${secret} --endpoint ${endpoint}`
]
} }
}; };