Comments (9)
it is the + character that causes your problem. it should be replaced by %2B, thus:
RUN install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/repmgr-common_4.0.6-2.pgdg%2B1_all.deb"
RUN install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/postgresql-$PG_MAJOR-repmgr_4.0.6-2.pgdg%2B1_amd64.deb"
from postdock.
Upstream is working when:
echo "Change Upstream.."
fgrep -iR "install_deb_pkg" -lz | xargs sed -i 's/http:\/\/atalia\.postgresql\.org\/morgue\//https:\/\/apt-archive.postgresql.org\/pub\/repos\/apt\/pool\/main\//g'
echo "Change + to %2B in the URL to stop Forbidden"
fgrep -iR "4.0.6-2.pgdg+1" -lz | xargs sed -i 's/pgdg+1/pgdg%2B1/g'
from postdock.
you have to add /index.html to see the content of the dirs on this repository, for example:
https://apt-archive.postgresql.org/pub/repos/apt/pool/main/b/barman/index.html
from postdock.
Besides the issues already mentioned here there are other problems as well.
- Some pgdg80+1 packages don't exist on apt-archive. In my tests I was referencing pgdg+1 instead.
- There are some dpkg dependency problems.
A suggested merge request which uses apt-archive and also fixes the above problems is available at #266. If you just want to try it (if the merge request isn't merged) you can git clone my fork https://github.com/bergner/PostDock. docker-compose build works for all variants.
from postdock.
I got 403 while accessing https://apt-archive.postgresql.org/pub/repos/apt/pool/main
Is there any alternatives?
from postdock.
Thanks lol, I feel so dumb now...
from postdock.
@ferry I can download the deb file through browser (Chrome 81.0) but failed to download via wget when building docker image. What am I missing?
I was building the image using this Dockerfile, what I did was replacing these lines into:
RUN install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/repmgr-common_4.0.6-2.pgdg+1_all.deb"
RUN install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/postgresql-$PG_MAJOR-repmgr_4.0.6-2.pgdg+1_amd64.deb"
After modifying, I ran:
docker build -f ./src/Postgres-latest.Dockerfile -t postgres:new1 ./src
What I got is:
# ...previos steps were success
Step 5/55 : RUN install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/repmgr-common_4.0.6-2.pgdg+1_all.deb"
---> Running in 6c973dc935c8
--2020-04-29 06:47:47-- https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/repmgr-common_4.0.6-2.pgdg+1_all.deb
Resolving apt-archive.postgresql.org (apt-archive.postgresql.org)... 13.227.74.21, 13.227.74.63, 13.227.74.35, ...
Connecting to apt-archive.postgresql.org (apt-archive.postgresql.org)|13.227.74.21|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2020-04-29 06:47:53 ERROR 403: Forbidden.
The command '/bin/sh -c install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/repmgr-common_4.0.6-2.pgdg+1_all.deb"' returned a non-zero code: 8
from postdock.
Thanks a lot! It works. You saved my day.
from postdock.
Now you should
RUN install_deb_pkg "atalia.postgresql.org/morgue/repmgr-common_5.0.0-4.pgdg+1_all.deb"
RUN install_deb_pkg "atalia.postgresql.org/morgue/postgresql-$PG_MAJOR-repmgr_5.0.0-4.pgdg+1_amd64.deb"
UPD:
There is a lot of errors with links to packages...
from postdock.
Related Issues (20)
- env CONFIG variable can't be correctly parsed HOT 1
- Containers are not generated with postgres-10_repmgr-3.2_pgpool-3.7_barman-2.4.yml HOT 3
- pgpool building failing: libssl returns 404 not found HOT 1
- How do i separate docker-compose in multiple machine ?
- How long could you release a new version for Postgresql 12? HOT 1
- Data directory "/var/lib/postgresql/data" has wrong ownership in Kubernetes
- Poor performance benchmarks
- Remove openssh-server from the images
- Support for multiple users and multiple databases
- Help with installation and configuration
- Support for TimescaleDB extension HOT 1
- killing primary results in it not being able to rejoin HOT 3
- How to enable pg_stat_statements? HOT 1
- Can't build correct *.Dockerfile from dockerfile templates (near empty *.Dockerfile) HOT 1
- Postgres cannot start after restart! HOT 1
- Docker Images for ARM-based CPU Architectures HOT 1
- Project Status HOT 3
- Is the server running on host "pgmaster"?
- Resolving atalia.postgresql.org 404 NOT FOUND HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postdock.