Skip to content

Commit 330dc71

Browse files
authored
added LICENSE.md, updated dockerfile to fetch armv7 correctly
1 parent 639511c commit 330dc71

3 files changed

Lines changed: 37 additions & 4 deletions

File tree

Dockerfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,25 @@ ARG PB_VERSION=0.29.2
44

55
ARG TARGETARCH
66

7+
# Set ARCH from TARGETARCH (default to amd64)
8+
# Pocketbase uses "amd64" or "arm64" in their asset names
9+
ARG ARCH
10+
RUN if [ -z "$ARCH" ]; then \
11+
case "$TARGETARCH" in \
12+
amd64) export ARCH=amd64 ;; \
13+
arm64) export ARCH=arm64 ;; \
14+
arm) export ARCH=armv7 ;; \
15+
*) echo "Unsupported arch: $TARGETARCH" && exit 1 ;; \
16+
esac && \
17+
echo "Detected ARCH=$ARCH"; \
18+
fi
19+
720
RUN apk add --no-cache \
821
unzip \
922
ca-certificates
1023

1124
# download and unzip PocketBase x86 64-bit
12-
ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_${TARGETARCH}.zip /tmp/pb.zip
25+
ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_${ARCH}.zip /tmp/pb.zip
1326
RUN unzip /tmp/pb.zip -d /pb/
1427

1528
# uncomment to copy the local pb_migrations dir into the image

LICENSE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The MIT License (MIT) Copyright (c) 2022 - present, Gani Georgiev
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22

33
Unoffical Pocketbase Docker Container
44

5-
This Repo sets up the Github Actions to build and deploy to Dockerhub the `azatecas/pocketbase` image.
6-
I do not build pocketbase from scratch, but rather pull the official release from the original Pocketbase Repo and containarize it.
7-
85
Support the original project: https://github.com/pocketbase/pocketbase
96

7+
8+
This Repo sets up the Github Actions to build and deploy to Dockerhub the `azatecas/pocketbase` multiarch image.
9+
It does not build pocketbase from scratch, but rather pull the official release from the original Pocketbase Repo and containarize it.
10+
11+
Current pocketbase architecture supported by this repo:
12+
- amd64
13+
- arm64
14+
- armv7
15+
16+
This image is being used in production, so we will do our best to build after each new Pocketbase release, although it may take a few days.
17+
1018
Suggested `docker-compose.yml` configuration
1119

1220
```yml
@@ -29,3 +37,8 @@ services:
2937
timeout: 5s
3038
retries: 5
3139
```
40+
41+
`ENCRYPTION` - OPTIONAL is used to encrypt settings in the current pocketbase instance.
42+
`COMMON_PATH` - refers to the root of the project.
43+
44+
for more read the offical Pocketbase documentation: https://pocketbase.io/docs

0 commit comments

Comments
 (0)