8000 13.0 by mruffie · Pull Request #1 · mruffie/docker-postgis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

13.0 #1

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 “ 8000 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

Open
wants to merge 47 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
8fb01d3
add pg-cron back with the image (#284) (#285)
Nov 14, 2020
bf143ea
Update 12.0 image tags to 13.0
zacharlie Sep 20, 2021
eba3bb3
Align 13 image with develop (#333)
Oct 10, 2021
f1a5674
added timescale DB to the 13 image (#343)
Nov 18, 2021
c1e86fb
Gh-action-fix (#349) (#352)
Dec 2, 2021
13bcf21
tunning timescale (#353)
Dec 13, 2021
4fdc74a
Ajout extension ftw
mruffie Aug 2, 2023
9751e21
Ajout d'openvpn et fichier de 8000 configuration
mruffie Aug 2, 2023
d535b34
Correction paramétrie vpn
mruffie Aug 2, 2023
5f749a3
Update Dockerfile
mruffie Aug 2, 2023
154a9c5
Modif pour le VPN
mruffie Aug 2, 2023
82eb82d
Update Dockerfile
mruffie Aug 2, 2023
9abbc6e
Update Dockerfile
mruffie Aug 3, 2023
3a6b9e1
Update Dockerfile
mruffie Aug 3, 2023
b303f47
Modifications pour OpenVPN
mruffie Aug 3, 2023
3cee410
Corrections VPN + ajout script spécifique
mruffie Aug 3, 2023
db94f25
Update Dockerfile
mruffie Aug 3, 2023
be92d8b
Update setup-vpn.sh
mruffie Aug 3, 2023
54d89e9
Update setup-vpn.sh
mruffie Aug 3, 2023
058404f
Update setup-vpn.sh
mruffie Aug 3, 2023
c7e55fd
Update docker-entrypoint.sh
mruffie Aug 3, 2023
55495ed
ajout de controles
mruffie Aug 3, 2023
1e674d0
Update docker-entrypoint.sh
mruffie Aug 3, 2023
664535e
Update docker-entrypoint.sh
mruffie Aug 3, 2023
e3daea1
MàJ
mruffie Aug 3, 2023
31742f3
MàJ
mruffie Aug 3, 2023
5cd2b1d
Update setup-vpn.sh
mruffie Aug 3, 2023
c360c6a
Update setup-vpn.sh
mruffie Aug 3, 2023
50d501d
Update setup-vpn.sh
mruffie Aug 3, 2023
76ac5fc
Update setup-vpn.sh
mruffie Aug 3, 2023
c81dab5
Update vpn.conf
mruffie Aug 3, 2023
2ae0c57
Update vpn.conf
mruffie Aug 3, 2023
b5e11c0
Update vpn.conf
mruffie Aug 3, 2023
4440779
Protection du fichier pass
mruffie Aug 3, 2023
099ebd0
Update vpn.conf
mruffie Aug 3, 2023
4298fee
Ajout insecure vpn
mruffie Aug 3, 2023
bf6b285
MaJ bug
mruffie Aug 3, 2023
7556980
Update vpn.conf
mruffie Aug 3, 2023
47fc41c
Update vpn.conf
mruffie Aug 3, 2023
d2612f5
essai
mruffie Aug 3, 2023
7969c8c
essai
mruffie Aug 3, 2023
254a181
re
mruffie Aug 3, 2023
dd9731f
Update setup-vpn.sh
mruffie Aug 3, 2023
15845a3
Update vpn.conf
mruffie Aug 3, 2023
6d6c3f1
Update vpn.conf
mruffie Aug 3, 2023
0c8fb7d
Update setup-vpn.sh
mruffie Aug 3, 2023
286c2a1
Update docker-compose.yml
mruffie Sep 14, 2023
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
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.github
.venv
venv
.docs
sample
.env
18 changes: 18 additions & 0 deletions .example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Example environment file for docker-compose and builders

COMPOSE_PROJECT_NAME=postgis

## For build arguments
DISTRO=debian
IMAGE_VERSION=bullseye
IMAGE_VARIANT=slim
# Set GENERATE_ALL_LOCALE to empty value or 0 to build just default LOCALE: en_US.UTF-8
GENERATE_ALL_LOCALE=1
# Set the language if you need to specify LANG locale at build time
LANG=en_US.UTF-8
# locale filter to include in the locale generator
LANGS="en_US.UTF-8,id_ID.UTF-8"

POSTGRES_MAJOR_VERSION=13
POSTGIS_MAJOR_VERSION=3
POSTGIS_MINOR_RELEASE=1
144 changes: 144 additions & 0 deletions .github/workflows/build-latest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
name: build-latest
on:
# workflow_dispatch:
# inputs:
# distro:
# description: Base image distro
# required: true
# default: debian
# imageVersion:
# description: Base distro image version/release
# required: true
# default: bullseye
# imageVariant:
# description: Base image variant
# required: true
# default: slim
workflow_dispatch:
pull_request:
branches:
- 13.0
push:
branches:
- 13.0
jobs:
run-scenario-tests:
runs-on: ubuntu-latest
strategy:
matrix:
postgresMajorVersion:
- 13
po F438 stgisMajorVersion:
- 3
postgisMinorRelease:
- 1
scenario:
- datadir_init
- streaming_replication
- collations
- extensions
- logical_replication
include:
- distro: debian
imageVersion: bullseye
imageVariant: slim
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build image for testing
id: docker_build_testing_image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: false
load: true
tags: kartoza/postgis:manual-build
build-args: |
DISTRO=${{ matrix.distro }}
IMAGE_VERSION=${{ matrix.imageVersion }}
IMAGE_VARIANT=${{ matrix.imageVariant }}
LANGS=en_US.UTF-8,id_ID.UTF-8
GENERATE_ALL_LOCALE=0
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }}
POSTGIS_MINOR_VERSION=${{ matrix.postgresMinorVersion }}
cache-from: |
type=gha,scope=test
type=gha,scope=prod
type=gha,scope=base
cache-to: type=gha,scope=test
target: postgis-test

- name: Run scenario test ${{ matrix.scenario }}
working-directory: scenario_tests/${{ matrix.scenario }}
env:
COMPOSE_INTERACTIVE_NO_CLI: 1
PRINT_TEST_LOGS: 1
run: |
bash ./test.sh

push-internal-pr-images:
if: github.event_name == 'pull_request' && github.event.pull_request.base.repo.url == github.event.pull_request.head.repo.url
runs-on: ubuntu-latest
needs: [ run-scenario-tests ]
strategy:
matrix:
postgresMajorVersion:
- 13
postgisMajorVersion:
- 3
postgisMinorRelease:
- 1
include:
- distro: debian
imageVersion: bullseye
imageVariant: slim
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v3
with:
images: ${{ secrets.DOCKERHUB_REPO}}/postgis
tags: |
type=semver,pattern=\d-\d.\d
type=ref,event=branch
type=ref,event=pr

- name: Build image for testing
id: docker_build_testing_image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: |
${{ steps.docker_meta.outputs.tags }}-${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}
build-args: |
DISTRO=${{ matrix.distro }}
IMAGE_VERSION=${{ matrix.imageVersion }}
IMAGE_VARIANT=${{ matrix.imageVariant }}
LANGS=en_US.UTF-8,id_ID.UTF-8
GENERATE_ALL_LOCALE=0
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }}
POSTGIS_MINOR_VERSION=${{ matrix.postgresMinorVersion }}
cache-from: |
type=gha,scope=test
type=gha,scope=prod
type=gha,scope=base
cache-to: type=gha,scope=test
10000 target: postgis-test
114 changes: 114 additions & 0 deletions .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: deploy-image
on:
workflow_dispatch:
# inputs:
# distro:
# description: Base image distro
# required: true
# default: debian
# imageVersion:
# description: Base distro image version/release
# required: true
# default: bullseye
# imageVariant:
# description: Base image variant
# required: true
# default: slim
workflow_run:
workflows:
- build-latest
branches:
- 13.0
types:
- completed
jobs:
deploy-image:
runs-on: ubuntu-latest
env:
latest-ref: refs/heads/develop
strategy:
matrix:
postgresMajorVersion:
- 13
postgisMajorVersion:
- 3
postgisMinorRelease:
- 1
include:
- distro: debian
imageVersion: bullseye
imageVariant: slim
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Get Current Date
id: current_date
shell: python
run: |
import datetime
now = datetime.datetime.utcnow()
print(f'::set-output name=formatted::{now:%Y.%m.%d}')

- name: Build base image
id: docker_build_base
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
file: Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_REPO }}/postgis:base
${{ secrets.DOCKERHUB_REPO }}/postgis:base-${{ matrix.distro }}-${{ matrix.imageVersion }}-${{ matrix.imageVariant }}
build-args: |
DISTRO=${{ matrix.distro }}
IMAGE_VERSION=${{ matrix.imageVersion }}
IMAGE_VARIANT=${{ matrix.imageVariant }}
GENERATE_ALL_LOCALE=1
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }}
POSTGIS_MINOR_VERSION=${{ matrix.postgresMinorVersion }}
cache-from: |
type=gha,scope=test
type=gha,scope=prod
type=gha,scope=base
cache-to: type=gha,scope=base
target: postgis-base

- name: Build prod image
id: docker_build_prod
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
file: Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_REPO }}/postgis:${{ matrix.postgresMajorVersion }}
${{ secrets.DOCKERHUB_REPO }}/postgis:${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}
${{ secrets.DOCKERHUB_REPO }}/postgis:${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}
${{ secrets.DOCKERHUB_REPO }}/postgis:${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}--v${{ steps.current_date.outputs.formatted }}
build-args: |
DISTRO=${{ matrix.distro }}
IMAGE_VERSION=${{ matrix.imageVersion }}
IMAGE_VARIANT=${{ matrix.imageVariant }}
GENERATE_ALL_LOCALE=1
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }}
POSTGIS_MINOR_VERSION=${{ matrix.postgresMinorVersion }}
cache-from: |
type=gha,scope=test
type=gha,scope=prod
type=gha,scope=base
cache-to: type=gha,scope=prod
target: postgis-prod
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
.idea
.vscode
*.*~
*/replication/pg-*
*/replication/docker-compose.override.yml
.DS_Store
.python-version
venv
.venv
__pycache__

.env
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

Loading
0