Skip to content

Commit 70b5cbe

Browse files
committed
chore: update shebangs, add new scripts
1 parent ce5b284 commit 70b5cbe

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

docker-build.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
3+
docker buildx create --name multiarch-builder --use
4+
5+
docker buildx build \
6+
--platform=linux/arm64 \
7+
--build-arg TARGETARCH=arm64 \
8+
--build-arg TARGETPLATFORM=linux/arm64 \
9+
--load \
10+
-t pgvectortest \
11+
.
212

3-
docker build -t pgvectortest .

docker-run-published.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
# This script just runs the latest published image and does not build it locally.
4+
5+
docker pull ghcr.io/payloadcms/postgis-vector:latest && docker run --rm \
6+
-e POSTGRES_USER=devuser \
7+
-e POSTGRES_PASSWORD=devpassword \
8+
-e POSTGRES_DB=mydb \
9+
-e PAYLOAD_DATABASE=postgres \
10+
-p 5433:5432 \
11+
ghcr.io/payloadcms/postgis-vector:latest

docker-run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
docker run --rm \
24
-e POSTGRES_USER=devuser \
35
-e POSTGRES_PASSWORD=devpassword \

initdb-extensions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

0 commit comments

Comments
 (0)