Bonjour
J'ai besoin d'un docker avec postgresql 9.5 basé sur oraclelinux, car j'ai besoin d'oracle et de postgresql
failed to link /usr/share/man/man1/clusterdb.1 -> /etc/alternatives/pgsql-clusterdbman: No such file or directory
lstat postgresql95-setup: no such file or directory
Mon dockerFile
Détail message d'erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 #FROM oraclelinux:latest #la version d'oracle Linux est volontairement precisee #le fait de mettre oraclelinux impose par defaut la version 8.4.20 de postgresql FROM oraclelinux:6.8 ###pour supervisor RUN \ yum update -y && \ yum install -y iproute python-setuptools hostname inotify-tools yum-utils which jq && \ yum clean all && \ easy_install supervisor ADD supervisord.conf /etc/supervisord.conf RUN chmod 600 /etc/supervisord.conf ### RUN yum -y update; yum clean all RUN yum -y install epel-release; yum clean all RUN mkdir -p /usr/share/info/dir RUN rpm -ivh https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6-x86_64/pgdg-oraclelinux95-9.5-3.noarch.rpm RUN yum -y install postgresql95-server postgresql95 postgresql95-contrib supervisor; yum clean all ADD ./postgresql95-setup /usr/pgsql-9.5/bin/postgresql95-setup ADD ./postgres_user.sh /postgres_user.sh ADD ./supervisord.conf /etc/supervisord.conf ADD ./start_postgres.sh /start_postgres.sh ###RUN chmod +x /usr/bin/postgresql-setup RUN chmod +x /usr/pgsql-9.5/bin/postgresql95-setup RUN chmod +x /start_postgres.sh RUN chmod +x /postgres_user.sh RUN /usr/pgsql-9.5/bin/postgresql95-setup initdb ADD ./postgresql.conf /var/lib/pgsql/9.5/data/postgresql.conf RUN chown -v postgres.postgres /var/lib/pgsql/9.5/data/postgresql.conf RUN echo "host all all 0.0.0.0/0 md5" >> /var/lib/pgsql/9.5/data/pg_hba.conf RUN /postgres_user.sh EXPOSE 5432 CMD ["/bin/bash", "/start_postgres.sh"]
Ou est mon erreur ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 -------------------------------------------------------------------------------- Total 2.0 MB/s | 6.9 MB 00:03 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : postgresql95-libs-9.5.5-1PGDG.rhel6.x86_64 1/5 Installing : postgresql95-9.5.5-1PGDG.rhel6.x86_64 2/5 failed to link /usr/share/man/man1/clusterdb.1 -> /etc/alternatives/pgsql-clusterdbman: No such file or directory failed to link /usr/share/man/man1/createdb.1 -> /etc/alternatives/pgsql-createdbman: No such file or directory failed to link /usr/share/man/man1/createlang.1 -> /etc/alternatives/pgsql-createlangman: No such file or directory failed to link /usr/share/man/man1/createuser.1 -> /etc/alternatives/pgsql-createuserman: No such file or directory failed to link /usr/share/man/man1/dropdb.1 -> /etc/alternatives/pgsql-dropdbman: No such file or directory failed to link /usr/share/man/man1/droplang.1 -> /etc/alternatives/pgsql-droplangman: No such file or directory failed to link /usr/share/man/man1/dropuser.1 -> /etc/alternatives/pgsql-dropuserman: No such file or directory failed to link /usr/share/man/man1/pg_basebackup.1 -> /etc/alternatives/pgsql-pg_basebackupman: No such file or directory failed to link /usr/share/man/man1/pg_dump.1 -> /etc/alternatives/pgsql-pg_dumpman: No such file or directory failed to link /usr/share/man/man1/pg_dumpall.1 -> /etc/alternatives/pgsql-pg_dumpallman: No such file or directory failed to link /usr/share/man/man1/pg_restore.1 -> /etc/alternatives/pgsql-pg_restoreman: No such file or directory failed to link /usr/share/man/man1/psql.1 -> /etc/alternatives/pgsql-psqlman: No such file or directory failed to link /usr/share/man/man1/reindexdb.1 -> /etc/alternatives/pgsql-reindexdbman: No such file or directory failed to link /usr/share/man/man1/vacuumdb.1 -> /etc/alternatives/pgsql-vacuumdbman: No such file or directory warning: %post(postgresql95-9.5.5-1PGDG.rhel6.x86_64) scriptlet failed, exit status 2 Non-fatal POSTIN scriptlet failure in rpm package postgresql95-9.5.5-1PGDG.rhel6.x86_64 Installing : libxslt-1.1.26-2.0.2.el6_3.1.x86_64 3/5 Installing : postgresql95-contrib-9.5.5-1PGDG.rhel6.x86_64 4/5 Installing : postgresql95-server-9.5.5-1PGDG.rhel6.x86_64 5/5 Verifying : postgresql95-contrib-9.5.5-1PGDG.rhel6.x86_64 1/5 Verifying : postgresql95-libs-9.5.5-1PGDG.rhel6.x86_64 2/5 Verifying : libxslt-1.1.26-2.0.2.el6_3.1.x86_64 3/5 Verifying : postgresql95-server-9.5.5-1PGDG.rhel6.x86_64 4/5 Verifying : postgresql95-9.5.5-1PGDG.rhel6.x86_64 5/5 Installed: postgresql95.x86_64 0:9.5.5-1PGDG.rhel6 postgresql95-contrib.x86_64 0:9.5.5-1PGDG.rhel6 postgresql95-server.x86_64 0:9.5.5-1PGDG.rhel6 Dependency Installed: libxslt.x86_64 0:1.1.26-2.0.2.el6_3.1 postgresql95-libs.x86_64 0:9.5.5-1PGDG.rhel6 Complete! Loaded plugins: ovl, security, ulninfo Cleaning repos: pgdg95 public_ol6_UEKR4 public_ol6_latest Cleaning up Everything ---> bc544b2b3292 Removing intermediate container 895288e72cb7 Step 10 : ADD ./postgresql95-setup /usr/pgsql-9.5/bin/postgresql95-setup lstat postgresql95-setup: no such file or directory
Merci
Partager