Skip to content

Commit 4a7db4c

Browse files
authored
built-in package infrastructure (#418)
[PR #418] built-in package infrastructure
1 parent ce32d19 commit 4a7db4c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+3656
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
/make_dockerfile.sh
5555
/backup_restore.sh
5656

57+
# Packaging
58+
/build
59+
/packaging/pkg/tarballs/pgpro.tar.bz2
60+
/packaging/repo/pg_probackup
61+
/packaging/repo/pg_probackup-forks
62+
5763
# Misc
5864
.python-version
5965
.vscode

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
PROGRAM = pg_probackup
2+
WORKDIR ?= $(CURDIR)
3+
BUILDDIR = $(WORKDIR)/build/
4+
PBK_GIT_REPO = http://github.com/postgrespro/pg_probackup
25

36
# utils
47
OBJS = src/utils/configuration.o src/utils/json.o src/utils/logger.o \
@@ -80,3 +83,7 @@ src/walmethods.h: $(srchome)/src/bin/pg_basebackup/walmethods.h
8083
ifeq ($(PORTNAME), aix)
8184
CC=xlc_r
8285
endif
86+
87+
include packaging/Makefile.pkg
88+
include packaging/Makefile.repo
89+
include packaging/Makefile.test
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM alt:p8
2+
RUN ulimit -n 1024 && apt-get update -y && apt-get install -y tar wget rpm-build
3+
RUN ulimit -n 1024 && apt-get install -y make perl libicu-devel glibc-devel bison flex
4+
RUN ulimit -n 1024 && apt-get install -y git perl-devel readline-devel libxml2-devel libxslt-devel python-devel zlib-devel openssl-devel libkrb5 libkrb5-devel
5+
RUN ulimit -n 1024 && apt-get upgrade -y
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM alt:p9
2+
RUN ulimit -n 1024 && apt-get update -y && apt-get install -y tar wget rpm-build
3+
RUN ulimit -n 1024 && apt-get install -y make perl libicu-devel glibc-devel bison flex
4+
RUN ulimit -n 1024 && apt-get install -y git perl-devel readline-devel libxml2-devel libxslt-devel python-devel zlib-devel openssl-devel libkrb5 libkrb5-devel
5+
RUN ulimit -n 1024 && apt-get dist-upgrade -y
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM pgpro/astra:1.11
2+
RUN apt-get update -y
3+
RUN apt-get install -y devscripts
4+
RUN apt-get install -y dpkg-dev lsb-release git equivs wget vim
5+
RUN apt-get install -y cmake bison flex libboost-all-dev
6+
RUN apt-get install reprepro -y
7+
RUN apt-get upgrade -y
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM centos:7
2+
RUN yum install -y tar wget rpm-build yum-utils
3+
RUN yum install -y gcc make perl libicu-devel glibc-devel bison flex
4+
RUN yum install -y git
5+
RUN yum upgrade -y
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM centos:8
2+
RUN yum install -y tar wget rpm-build yum-utils
3+
RUN yum install -y gcc make perl libicu-devel glibc-devel bison flex
4+
RUN yum install -y git
5+
RUN yum upgrade -y
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM ubuntu:17.10
2+
RUN apt-get -qq update -y
3+
RUN apt-get -qq install -y reprepro rpm createrepo gnupg rsync perl less wget expect rsync dpkg-dev
4+
RUN apt-get upgrade -y
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM debian:10
2+
RUN apt-get update -y
3+
RUN apt-get install -y devscripts
4+
RUN apt-get install -y dpkg-dev lsb-release git equivs wget vim
5+
RUN apt-get install -y cmake bison flex libboost-all-dev
6+
RUN apt-get install -y reprepro
7+
RUN apt-get upgrade -y
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM debian:11
2+
RUN apt-get update -y
3+
RUN apt-get install -y devscripts
4+
RUN apt-get install -y dpkg-dev lsb-release git equivs wget vim
5+
RUN apt-get install -y cmake bison flex libboost-all-dev
6+
RUN apt-get install -y reprepro
7+
RUN apt-get upgrade -y

0 commit comments

Comments
 (0)