Files
documentdb/.github/containers/Build-Ubuntu
yangqiaoandroot 3217a57219 Add prebuild image tasks in GH action (#212)
* first commit

* update action

* fix

* fix

* test push

* test push

* test push

* test push

* test push

* test push

* add lables

* update tag

* clean up

* try to resolve unknown/unknown

* clean up

* test sign

* clean up

* update action name

* fix bug

* clean up

---------

Co-authored-by: root <root@CPC-yangq-FRSGK>
2025-06-10 11:15:45 +08:00
..
2025-04-23 10:48:40 +08:00

To Build Ubuntu prebuild image

E.g. to build for Ubuntu 22.04, PostgreSQL 16, amd64 and documentdb_0.103.0, run:

docker build -t <image-tag> -f .github/containers/Build-Ubuntu/Dockerfile_prebuild \ 
    --platform=linux/amd64 --build-arg BASE_IMAGE=ubuntu:22.04 --build-arg POSTGRES_VERSION=16 \ 
    --build-arg DEB_PACKAGE_REL_PATH=packaging/packages/ubuntu22.04-postgresql-16-documentdb_0.103.0_amd64.deb .

To use the image

Step 1: Running the container in detached mode

docker run -dt <image-tag>
docker exec -it <container-id> bash

Step 2: Connect to psql shell

psql -p 9712 -d postgres