diff options
| author | Ericky Thierry <[email protected]> | 2023-05-27 21:39:23 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-27 17:39:23 -0700 |
| commit | 5a4ae60009bd72cd0c753c7b42346b2d301f7e1e (patch) | |
| tree | b8ce8fbcf10b56b800939a411388526183d4aa74 /public | |
| parent | 576149de097c87b7009c9193922ce3dbea3beaaa (diff) | |
| download | caprover-one-click-apps-5a4ae60009bd72cd0c753c7b42346b2d301f7e1e.tar.gz caprover-one-click-apps-5a4ae60009bd72cd0c753c7b42346b2d301f7e1e.zip | |
Update pocketbase.yml to work on ARM (#940)
I made some simple changes to the template so that it is possible to choose the cpu architecture when installing
I also modified the volume mount point so that it is possible to update the pocketbase binary without having to delete and recreate the app
I also updated the default installation version to the most current one
Diffstat (limited to 'public')
| -rw-r--r-- | public/v4/apps/pocketbase.yml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/public/v4/apps/pocketbase.yml b/public/v4/apps/pocketbase.yml index 6bb727f..30d6e1d 100644 --- a/public/v4/apps/pocketbase.yml +++ b/public/v4/apps/pocketbase.yml @@ -6,20 +6,25 @@ services: dockerfileLines: - FROM alpine:3.16.2 - RUN apk add --no-cache unzip openssh - - ADD https://github.com/pocketbase/pocketbase/releases/download/v$$cap_version/pocketbase_$$cap_version_linux_amd64.zip /tmp/pb.zip + - ADD https://github.com/pocketbase/pocketbase/releases/download/v$$cap_version/pocketbase_$$cap_version_$$cap_architecture.zip /tmp/pb.zip - RUN unzip /tmp/pb.zip -d /pb/ - EXPOSE 8080 - CMD ["/pb/pocketbase", "serve", "--http=0.0.0.0:8080"] containerHttpPort: '8080' volumes: - - '$$cap_appname-data:/pb/pb_data' + - '$$cap_appname-data:/pb' caproverOneClickApp: variables: - id: '$$cap_version' label: PocketBase Version - defaultValue: '0.10.0' - description: Check out their Docker page for the valid tags https://github.com/pocketbase/pocketbase/releases + defaultValue: '0.16.3' + description: Check out their github page for the valid tags https://github.com/pocketbase/pocketbase/releases + validRegex: "/^([^\\s^\\/])+$/" + - id: '$$cap_architecture' + label: System Host CPU Architecture + defaultValue: 'linux_amd64' + description: Check out their github page for the valid tags like 'linux_arm64' or 'darwin_arm64' https://github.com/pocketbase/pocketbase/releases validRegex: "/^([^\\s^\\/])+$/" instructions: start: |- |
