IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Docker Discussion :

erreur conteneur docker avec postgresql 9.5


Sujet :

Docker

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éprouvé
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    1 716
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 716
    Par défaut erreur conteneur docker avec postgresql 9.5
    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
    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"]
    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
    --------------------------------------------------------------------------------
    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
    Ou est mon erreur ?
    Merci

  2. #2
    Membre éprouvé
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    1 716
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 716
    Par défaut
    résolu
    j'ai trouvé un docker basé sur Centos que j'ai pus modifier pour oracleLinux zokeber/postgresql

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [WD17] erreur Hajoute avec postgreSQL
    Par Atsibat dans le forum WinDev
    Réponses: 10
    Dernier message: 10/02/2024, 21h44
  2. erreur tcp/ip avec jdbc
    Par champion dans le forum PostgreSQL
    Réponses: 1
    Dernier message: 03/04/2004, 15h32
  3. Démarrer avec PostgreSQL
    Par Neuromancien2 dans le forum PostgreSQL
    Réponses: 3
    Dernier message: 18/01/2004, 22h45
  4. Besoin d'aide avec postgresql sous windows NT
    Par Chihuahua dans le forum PostgreSQL
    Réponses: 3
    Dernier message: 18/07/2003, 09h29
  5. Erreur de sgmentation avec malloc
    Par simonm dans le forum C
    Réponses: 5
    Dernier message: 27/02/2003, 09h29

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo