Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: bookworm, Arm64, (geo)Bundle, improved tagging #356

Draft
wants to merge 165 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
d038f6a
total refactoring ;
ImreSamu Oct 7, 2023
47c76c7
Merge remote-tracking branch 'upstream/master'
ImreSamu Oct 7, 2023
86e9bbb
refactoring, updates, ...
ImreSamu Oct 14, 2023
081a098
refactoring, fixing, updates...
ImreSamu Oct 21, 2023
6f17cba
fix bundle
ImreSamu Oct 21, 2023
c4ef5c3
updates ...
ImreSamu Oct 30, 2023
e59f748
update ...
ImreSamu Oct 30, 2023
c8df76b
update ...
ImreSamu Nov 2, 2023
c5ff4f1
update templates, add netcdf to gdal, etc ..
ImreSamu Nov 4, 2023
4b5f545
fixes, refactoring, updates ...
ImreSamu Nov 5, 2023
35324a0
fix shellcheck error, etc..
ImreSamu Nov 5, 2023
bb0534c
update README.md
ImreSamu Nov 5, 2023
45f4142
fix localtest ..
ImreSamu Nov 5, 2023
05a3554
update bundle0, refresh
ImreSamu Nov 6, 2023
32eeb6f
update ..
ImreSamu Nov 8, 2023
8ed64fe
update ...
ImreSamu Nov 8, 2023
661379e
update ... fix master ..
ImreSamu Nov 11, 2023
ee09e50
remove 14-3.4-bundle0 and improve bundle0
ImreSamu Nov 11, 2023
534f2d6
improvements, update ...
ImreSamu Nov 11, 2023
a7f1518
update to geos 3.12.1
ImreSamu Nov 11, 2023
30eb331
update ..
ImreSamu Nov 12, 2023
a9a1a0b
locking geos + update )
ImreSamu Nov 15, 2023
f6610f8
fix recent - geos lock
ImreSamu Nov 15, 2023
a243c1a
improve CircleCI
ImreSamu Nov 16, 2023
e43b433
update postgis 3.4.1
ImreSamu Nov 20, 2023
5aa415e
multiple improvements
ImreSamu Dec 3, 2023
e0d82e3
only Warning if README.md size >= 25000 char
ImreSamu Dec 3, 2023
63e614f
remove PG 11 EOL
ImreSamu Dec 18, 2023
c7bdb50
change to ISO week starts on a Monday; ISO 8601
ImreSamu Dec 18, 2023
482833f
fix workflows ..
ImreSamu Dec 19, 2023
36e793d
fix CI/CD workflow
ImreSamu Dec 19, 2023
dcde121
fix CI/CD workflow
ImreSamu Dec 19, 2023
c43ac53
add manifest insecure options to connect locahost registy
ImreSamu Dec 19, 2023
6ebd717
fix lint error
ImreSamu Dec 19, 2023
642a5ec
improve recent tags
ImreSamu Dec 19, 2023
4e4194d
update ..
ImreSamu Dec 19, 2023
dce0a91
add update_dockerfile workflow
ImreSamu Dec 20, 2023
0c18154
update
ImreSamu Dec 20, 2023
429de55
CI fix
ImreSamu Dec 20, 2023
89ce4f7
update
ImreSamu Dec 20, 2023
64715b8
update; sfcgal 1.5.1
ImreSamu Dec 22, 2023
03974b1
update ..
ImreSamu Dec 23, 2023
5be1cc8
update
ImreSamu Jan 1, 2024
140194e
fix ...
ImreSamu Jan 5, 2024
23edd00
add run time: perl to alpine versions
ImreSamu Jan 5, 2024
5c0110f
update.sh
ImreSamu Jan 5, 2024
8086562
update.sh, small fixes in the bundle0
ImreSamu Jan 12, 2024
0c65c07
add trivy and dive check
ImreSamu Jan 13, 2024
7845661
update.sh
ImreSamu Jan 13, 2024
f75ddf9
fix ci
ImreSamu Jan 13, 2024
4e8f2d9
refactor scan,dive
ImreSamu Jan 14, 2024
b747a07
update.sh
ImreSamu Jan 16, 2024
b4d4d04
update.sh
ImreSamu Jan 18, 2024
d38ba74
update.sh
ImreSamu Jan 22, 2024
9138066
update.sh
ImreSamu Jan 23, 2024
8c5c29b
add locked, and old postgis-alpine versions
ImreSamu Jan 28, 2024
7ece984
fix - alpine template
ImreSamu Jan 29, 2024
294fda3
fix alpine; update
ImreSamu Jan 29, 2024
d0b0b41
small fixes,bundle update, fixing README, etc
ImreSamu Feb 5, 2024
9e54e51
lint, formatting
ImreSamu Feb 5, 2024
3d2b599
update ...
ImreSamu Feb 5, 2024
18afb41
change master
ImreSamu Feb 6, 2024
7a69f64
fix bunlde
ImreSamu Feb 6, 2024
62fa868
update postgis
ImreSamu Feb 8, 2024
94b30d8
check ratelimit
ImreSamu Feb 8, 2024
d672149
add more rate-limit info
ImreSamu Feb 10, 2024
82df8ae
small changes ...
ImreSamu Feb 10, 2024
13c8cbb
fix circleci
ImreSamu Feb 10, 2024
1428634
fix circleci
ImreSamu Feb 10, 2024
e27f59d
add arrow,parquet to gdal (master template)
ImreSamu Feb 11, 2024
9b8b6d5
add GDAL_BUILD minimal options - to avoid GDAL build errors, fix 4-l3…
ImreSamu Feb 11, 2024
4d456b7
add more GDAL config
ImreSamu Feb 11, 2024
a4b9cff
update.sh
ImreSamu Feb 18, 2024
8d59d2f
update.sh - update CGAL
ImreSamu Feb 28, 2024
e1a0a7a
update.sh; Proj 9.4
ImreSamu Mar 1, 2024
741feb2
fix master in arm64, update mobilitydb
ImreSamu Mar 5, 2024
cfa3eb3
fix master.template Arrow install, detecting correct dependency.
ImreSamu Mar 11, 2024
2dabc6e
add auto update
ImreSamu Mar 23, 2024
2aa34e0
add auto update v2.
ImreSamu Mar 23, 2024
59f6246
add auto update v3.
ImreSamu Mar 23, 2024
b6c0030
add auto update v4.
ImreSamu Mar 23, 2024
869d292
Update versions.json and related Dockerfiles
ImreSamu Mar 24, 2024
83b4464
Merge pull request #2 from ImreSamu/updates/20240324_2000
ImreSamu Mar 25, 2024
60d9ba3
improve workflow - for auto-upgrade compatible
ImreSamu Apr 8, 2024
8c9c1f6
improve master template
ImreSamu Apr 8, 2024
cf6a839
fix lint
ImreSamu Apr 8, 2024
cfe5050
Update versions.json and related Dockerfiles
ImreSamu Apr 9, 2024
d247630
Merge pull request #4 from ImreSamu/updates/20240409_2000
ImreSamu Apr 10, 2024
a522cb6
Update versions.json and related Dockerfiles
ImreSamu Apr 17, 2024
b82ad77
Merge pull request #5 from ImreSamu/updates/20240417_2000
ImreSamu Apr 18, 2024
522178d
Update versions.json and related Dockerfiles
ImreSamu May 7, 2024
9df65a0
Merge pull request #6 from ImreSamu/updates/20240507_2000
ImreSamu May 8, 2024
f9cd300
Update versions.json and related Dockerfiles
ImreSamu May 10, 2024
99db4f2
Merge pull request #7 from ImreSamu/updates/20240510_2000
ImreSamu May 11, 2024
447f67c
fix locked images documentation
ImreSamu May 23, 2024
cf730db
Alpine 3.20 update and temporary keep some alpine3.18 image.
ImreSamu May 24, 2024
976a6a8
Merge pull request #10 from ImreSamu/alpine3.20_update
ImreSamu May 24, 2024
f1f2637
Update versions.json and related Dockerfiles
ImreSamu May 29, 2024
dce894b
Merge pull request #11 from ImreSamu/updates/20240529_2000
ImreSamu May 29, 2024
50afbf2
Update versions.json and related Dockerfiles
ImreSamu Jun 1, 2024
06f6f15
Merge pull request #12 from ImreSamu/updates/20240601_2000
ImreSamu Jun 1, 2024
3cd6a69
- remove alpine3.18
ImreSamu Jun 25, 2024
cf2fa49
remove pg_quack from bundle
ImreSamu Jun 25, 2024
0c6110b
temp fix bundle error
ImreSamu Jun 25, 2024
578c4f0
17beta2 + update.sh
ImreSamu Jul 3, 2024
8de5930
fix readme group categorisation
ImreSamu Jul 3, 2024
009635e
improve update workflow
ImreSamu Jul 3, 2024
c0c41ad
🤖 Bump versions: SFCGAL:v1.5.2
ImreSamu Jul 25, 2024
4e004e8
Merge pull request #42 from ImreSamu/updates/20240725_2000
ImreSamu Jul 28, 2024
d1faa13
🤖 Bump versions: TIMESCALEDB:2.16.0
ImreSamu Jul 31, 2024
96b4b3a
Merge pull request #43 from ImreSamu/updates/20240731_2000
ImreSamu Aug 1, 2024
6d6a775
🤖 Bump versions: TIMESCALEDB:2.16.1
ImreSamu Aug 6, 2024
b96bde4
Merge pull request #44 from ImreSamu/updates/20240806_2000
ImreSamu Aug 6, 2024
27956ca
🤖 Bump versions: GDAL:v3.9.2
ImreSamu Aug 16, 2024
528507e
Merge pull request #45 from ImreSamu/updates/20240816_2000
ImreSamu Aug 16, 2024
297c807
Upgrade to 17beta3, locking to the geos3.12 branch
ImreSamu Aug 20, 2024
833a19c
🤖 Bump versions: PG_HINT_PLAN:REL15_1_5_2,PG_HINT_PLAN:REL16_1_6_1
ImreSamu Aug 29, 2024
a5514e7
Merge pull request #46 from ImreSamu/updates/20240829_2000
ImreSamu Aug 29, 2024
1e70747
🤖 Bump versions: POSTGIS:3.4.3rc1
ImreSamu Sep 3, 2024
3e15f15
Merge pull request #47 from ImreSamu/updates/20240903_2000
ImreSamu Sep 3, 2024
1878445
Revert "🤖 Bump versions: POSTGIS:3.4.3rc1" (#48)
ImreSamu Sep 4, 2024
a8e6ba0
fix postgis version detection
ImreSamu Sep 4, 2024
7146fe2
Merge pull request #49 from ImreSamu/fix_20240904_postgis_version
ImreSamu Sep 4, 2024
296ab26
update postgis 3.4.3
ImreSamu Sep 4, 2024
81f1ce7
Merge pull request #51 from ImreSamu/update_postgis_343
ImreSamu Sep 4, 2024
68b6cfc
🤖 Bump versions: GEOS:3.13.0,POSTGIS:3.3.7
ImreSamu Sep 6, 2024
89a4372
Merge pull request #52 from ImreSamu/updates/20240906_2000
ImreSamu Sep 6, 2024
5a781d4
upgrade to 17rc1
ImreSamu Sep 7, 2024
036ebd3
Merge pull request #53 from ImreSamu/update_17rc1
ImreSamu Sep 7, 2024
ffafc96
🤖 Bump versions: DUCKDB:v1.1.0
ImreSamu Sep 9, 2024
25d04b1
Merge pull request #55 from ImreSamu/updates/20240909_2000
ImreSamu Sep 9, 2024
b959538
🤖 Bump versions: PROJ:9.5.0
ImreSamu Sep 15, 2024
56a211b
Merge pull request #57 from ImreSamu/updates/20240915_1231
ImreSamu Sep 15, 2024
153719e
add postgis 3.5.0beta1 images
ImreSamu Sep 17, 2024
b965da6
limit parallel build jobs
ImreSamu Sep 17, 2024
75ed703
fix some descriptions ...
ImreSamu Sep 17, 2024
80703b0
temporary postgis 3.5.0beta1 build -j1 workaround
ImreSamu Sep 18, 2024
32f99f5
revert 3.5.0beta1 workaround
ImreSamu Sep 18, 2024
158c89e
arm64 test cases
ImreSamu Sep 18, 2024
fd8bd6a
fix arm circle-ci
ImreSamu Sep 18, 2024
31df64c
update README.md
ImreSamu Sep 19, 2024
126fccb
update to postgis 3.5.0rc1
ImreSamu Sep 23, 2024
ddc6ece
🤖 Bump versions: DUCKDB:v1.1.1,MOBILITYDB:v1.1.2
ImreSamu Sep 24, 2024
253e3bb
Merge pull request #59 from ImreSamu/updates/20240924_2001
ImreSamu Sep 24, 2024
b2e7114
update Postgres17, Postgis 3.5, etc
ImreSamu Sep 28, 2024
0cd66e4
Merge pull request #61 from ImreSamu/_20240928_update
ImreSamu Sep 28, 2024
707c43e
🤖 Bump versions: CGAL:v6.0,PGSQL_HTTP:v1.6.1,SFCGAL:v2.0.0,TIMESCALED…
ImreSamu Oct 11, 2024
d0ee01d
Merge pull request #62 from ImreSamu/updates/20241011_0949
ImreSamu Oct 11, 2024
782c348
🤖 Bump versions: DUCKDB:v1.1.2,GDAL:v3.9.3
ImreSamu Oct 14, 2024
e1dad87
Merge pull request #63 from ImreSamu/updates/20241014_1527
ImreSamu Oct 14, 2024
bbd17c6
update debian postgis 3.5
ImreSamu Oct 14, 2024
ee79a78
fix debian postgis3.5
ImreSamu Oct 14, 2024
4dfa578
Merge pull request #64 from ImreSamu/20241014_pgis3.4_debian
ImreSamu Oct 14, 2024
f1047e9
remove 17-bundle0, some packages is not updated
ImreSamu Oct 15, 2024
737ea76
Merge pull request #65 from ImreSamu/20241015-remove-17bundle
ImreSamu Oct 15, 2024
f01e853
🤖 Bump versions: MOBILITYDB:v1.2.0
ImreSamu Oct 17, 2024
8dd60d9
Merge pull request #66 from ImreSamu/updates/20241017_2000
ImreSamu Oct 18, 2024
ab9eded
🤖 Bump versions: (#67)
github-actions[bot] Oct 18, 2024
8d1c4ed
🤖 Bump versions: CGAL:v6.0.1,TIMESCALEDB:2.17.1
ImreSamu Oct 21, 2024
af20e37
Merge pull request #68 from ImreSamu/updates/20241021_2000
ImreSamu Oct 21, 2024
421c273
🤖 Bump versions: DUCKDB:v1.1.3
ImreSamu Nov 4, 2024
4df42ad
Merge pull request #69 from ImreSamu/updates/20241104_2000
ImreSamu Nov 4, 2024
49bcc1c
🤖 Bump versions: GDAL:v3.10.0 (#70)
github-actions[bot] Nov 6, 2024
22666c3
🤖 Bump versions: TIMESCALEDB:2.17.2 (#71)
github-actions[bot] Nov 6, 2024
1624f77
🤖 Bump versions: (#72)
github-actions[bot] Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 176 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
# .circleci/config.yml

# Circle CI arm64 builder
version: 2.1

orbs:
# https://circleci.com/developer/orbs/orb/circleci/docker
docker: circleci/[email protected]
# https://circleci.com/developer/orbs/orb/circleci/python
python: circleci/[email protected]
# https://circleci.com/developer/orbs/orb/circleci/shellcheck
shellcheck: circleci/[email protected]

jobs:
build-arm64:
# We limit this to prevent overloading external servers (e.g., OSGeo, PROJ).
# Note: Include parallel GitHub CI jobs when calculating the total load, as they run simultaneously!
parallelism: 8
machine:
image: ubuntu-2204:current
resource_class: arm.large
environment:
BUILDX_PLATFORMS: linux/arm64v8
DOCKER_BUILDKIT: '1'
PLATFORM: linux/arm64v8
parameters:
target-version-variant:
type: string
steps:
- checkout

- run:
name: Display pipeline.* values
command: |
echo 'pipeline.git.branch: <<pipeline.git.branch>>'
echo 'pipeline.git.revision: <<pipeline.git.revision>>'
echo 'pipeline.id: <<pipeline.id>>'
echo 'pipeline.project.git_url: <<pipeline.project.git_url>>'
echo 'pipeline.trigger_source: <<pipeline.trigger_source>>'
echo 'pipeline.schedule.name:<< pipeline.schedule.name >>'
echo 'pipeline.schedule.id:<< pipeline.schedule.id >>'

- docker/check:
registry: docker.io
docker-username: DOCKERHUB_USERNAME
docker-password: DOCKERHUB_ACCESS_TOKEN

- run:
name: Docker Ratelimit Check - before
# https://docs.docker.com/docker-hub/download-rate-limit/
command: |
TOKEN=$(curl --user "$DOCKERHUB_USERNAME:$DOCKERHUB_ACCESS_TOKEN" "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)
HEADERS=$(curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest)
echo "Rate Limit Info:"
echo "$HEADERS" | grep ratelimit

- run: uname -a
- run: docker --version
- run: docker info
- run: pip3 install --upgrade pip
- run: pip3 install --upgrade lastversion
- run: tools/install_manifest-tool.sh
- run: tools/install_dive.sh
- run: tools/environment_init.sh
- run: make check_version

- run:
name: Conditional Docker Check - Halt if not on master branch or if it's a PR or Weekly image exists
command: |
# Check if the current branch is 'master' and the weekly image is not extis
# If weekly image exists, skip docker build and push
source tools/environment_init.sh
echo "check: << parameters.target-version-variant >>${IMAGE_VERSION_ID}"
check_image_exists "<< parameters.target-version-variant >>${IMAGE_VERSION_ID}" || true
if [ "$CIRCLE_BRANCH" == "master" ] && check_image_exists "<< parameters.target-version-variant >>${IMAGE_VERSION_ID}"; then
circleci-agent step halt
fi

- run: make -n test-<< parameters.target-version-variant >>
- run: make test-<< parameters.target-version-variant >>
- run: make scan-<< parameters.target-version-variant >> || true
- run: make dive-<< parameters.target-version-variant >> || true
- run: docker images

- run:
name: Conditional Docker Check - Halt if not on master branch or if it's a PR
command: |
# Check if the current branch is NOT 'master' or if the build is triggered by a pull request.
# If either of these conditions is met, halt the workflow.
if [ "$CIRCLE_BRANCH" != "master" ] || [ -n "$CIRCLE_PULL_REQUEST" ]; then
circleci-agent step halt
fi

- run:
name: "Push docker image : make push-<< parameters.target-version-variant >>"
command: |
if [ "$CIRCLE_BRANCH" == "master" ] && [ -z "$CIRCLE_PULL_REQUEST" ]; then
make push-<< parameters.target-version-variant >>
make manifest-<< parameters.target-version-variant >>
echo "...push and manifest done..."
fi

- run:
name: Docker Ratelimit Check - after
# https://docs.docker.com/docker-hub/download-rate-limit/
command: |
TOKEN=$(curl --user "$DOCKERHUB_USERNAME:$DOCKERHUB_ACCESS_TOKEN" "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)
HEADERS=$(curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest)
echo "Rate Limit Info:"
echo "$HEADERS" | grep ratelimit


workflows:
build-deploy:
# AND triggered by the app.circleci.com UI
# daily run : Repeats everyday every month ; 6:00am UTC, 1 (once per hour).
jobs:
- build-arm64:
matrix:
parameters:
target-version-variant: [
#
# They are created using the ./apply-ci.sh script based on the version.json file,
# where the architecture is defined as "arm64".
# These "--skip--" images serve as inputs for the "*-bundle" images,
# hence they must be generated within the bundle JOB.
#
#circleci-targets-start
"12-3.3-alpine3.20",
"12-3.4-alpine3.19",
"12-3.4-alpine3.20",
"12-3.5-alpine3.19",
"12-3.5-alpine3.20",
"12-3.5-bookworm",
"12-3.5-bullseye",
"13-3.3-alpine3.20",
"13-3.4-alpine3.19",
"13-3.4-alpine3.20",
"13-3.5-alpine3.19",
"13-3.5-alpine3.20",
"13-3.5-bookworm",
"13-3.5-bullseye",
"14-3.3-alpine3.20",
"14-3.4-alpine3.19",
"14-3.4-alpine3.20",
"14-3.5-alpine3.19",
"14-3.5-alpine3.20",
"14-3.5-bookworm",
"14-3.5-bullseye",
"14-l3.1.9gcp-bookworm",
"15-3.3-alpine3.20",
"15-3.4-alpine3.19",
"15-3.4-alpine3.20",
"15-3.5-alpine3.19",
"15-3.5-alpine3.20",
"15-3.5-bookworm",
"15-3.5-bullseye",
"16-3.3-alpine3.20",
"16-3.4-alpine3.19",
"16-3.4-alpine3.20",
"16-3.5-alpine3.19",
"16-3.5-alpine3.20",
# --skip-- "16-3.5-bookworm", --> generated with the related bundle job!
"16-3.5-bullseye",
"16-3.5-bundle0-bookworm",
"16-master-bookworm",
"16-recent-bookworm",
"17-3.4-alpine3.20",
"17-3.5-alpine3.19",
"17-3.5-alpine3.20",
"17-3.5-bookworm",
"17-3.5-bullseye",
"17-master-bookworm",
"17-recent-bookworm",
#circleci-targets-end
]
36 changes: 36 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
# see - https://docs.coderabbit.ai/configure-coderabbit/

language: "en-US"

early_access: true

# we(docker-postgis) always need a human to approve (and merge), we don't use this,
reviews:
profile: "chill"
request_changes_workflow: false
high_level_summary: false
poem: false
review_status: false
collapse_walkthrough: true
auto_review:
enabled: false
drafts: false

# chat is allowed
chat:
auto_reply: true


# https://docs.coderabbit.ai/guides/commands
#
# The following commands are available (invoked as PR comments):
# @coderabbitai pause : to pause the reviews on a PR.
# @coderabbitai resume : to resume the paused reviews.
# @coderabbitai review : to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
# @coderabbitai full review : to do a full review from scratch and review all the files again.
# @coderabbitai summary : to regenerate the summary of the PR.
# @coderabbitai resolve : resolve all the CodeRabbit review comments.
# @coderabbitai configuration : to show the current CodeRabbit configuration for the repository.
# @coderabbitai help : to get help.

20 changes: 19 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
Dockerfile
.git
_*
.jq-template.awk
.template-helper-functions.jq
.vscode/

.git/
.github/
.gitignore
.circleci/

docs/
README.md
version.json

Dockerfile.*.template
localetest.sh
apply-*.sh

trivy_cache
tmp/
22 changes: 22 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# PROD setup
#
# Setup info, used by:
# ./update.sh and other scripts ( ./apply-*.sh )
# ./Makefile
# ./.github/workflows/main.yml
# ./.circleci/config.yml
#
# IF your are changing the values, please run ./update.sh
# to update some hard coded values in the Dockerfiles or README.md
#

REGISTRY=docker.io
REPO_NAME=imresamu
IMAGE_NAME=postgis
DOCKERHUB_README_REPOSITORY=imresamu/postgis

dockerhublink='https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name='
githubrepolink='https://github.com/imresamu/docker-postgis/blob/master'

ENABLE_IMAGE_ARCH=true
ENABLE_IMAGE_VERSION_ID=true
23 changes: 23 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Test Setup ; if TEST=true
#
# Setup info, used by:
# ./update.sh and other scripts ( ./apply-*.sh )
# ./Makefile
# ./.github/workflows/main.yml
# ./.circleci/config.yml
#
# IF your are changing the values, please run ./update.sh
# to update some hard coded values in the Dockerfiles or README.md
#

REGISTRY=localhost:5000
REPO_NAME=testrepo
IMAGE_NAME=testpostgisimage
DOCKERHUB_README_REPOSITORY=testrepo/testpostgisimage

dockerhublink='https://registry.hub.docker.com/r/postgis/postgis/tags?page=1&name='
githubrepolink='https://github.com/postgis/docker-postgis/blob/master'

ENABLE_IMAGE_ARCH=true
ENABLE_IMAGE_VERSION_ID=true

11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# https://github.com/actions/checkout/issues/135#issuecomment-613361104
* text eol=lf

/*/**/Dockerfile linguist-generated
/*/**/initdb-postgis.sh linguist-generated
/*/**/update-postgis.sh linguist-generated
/*/**/tags linguist-generated
.github/workflows/main.yml linguist-generated
versions.json linguist-generated
README.md linguist-generated
/Dockerfile*.template linguist-language=Dockerfile
21 changes: 21 additions & 0 deletions .github/workflows/localtest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Localtest"
# testing the workflow
on:
push:
pull_request:
schedule:
- cron: '15 5 * * 1'

jobs:
localtest:
name: "testing ./localtest.sh ( update.sh and build test and push to local registry )"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: docker ps -a
- run: pip3 install --upgrade pip
- run: pip3 install --upgrade lastversion
- run: tools/install_manifest-tool.sh
- run: tools/environment_init.sh
- run: ./localtest.sh
- run: docker images
Comment on lines +1 to +21
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider specifying a version for the checkout action.

Using a specific version (e.g., a tag or commit SHA) instead of v4 for actions/checkout ensures consistent and predictable behavior, as changes to v4 could introduce unexpected issues.

- uses: actions/checkout@v3  # Example: Replace with the latest stable version

Loading