enmotech / enmotech-docker-opengauss

Ennotech openGauss Docker Image
GNU General Public License v3.0
49 stars 28 forks source link

buildDockerImage.sh -v 2.1.0 -i execute will failed #16

Closed azexcy closed 2 years ago

azexcy commented 2 years ago
#10 23.14 + ln -s /lib/x86_64-linux-gnu/libreadline.so.7 /lib/x86_64-linux-gnu/libreadline.so.6
#10 23.14 + groupadd -g 70 omm
#10 23.17 + useradd -u 70 -g omm -m -s /bin/bash omm
#10 23.21 + mkdir -p /var/lib/opengauss
#10 23.21 + mkdir -p /usr/local/opengauss
#10 23.21 + mkdir -p /var/run/opengauss
#10 23.22 + mkdir /docker-entrypoint-initdb.d
#10 23.22 + wget -P /usr/local/bin/ https://gitee.com/lee1002/gosu/attach_files/914780/download/gosu-amd64 -O /usr/local/bin/gosu
#10 23.22 /bin/sh: 1: wget: not found

I found the problem may not include install wget at dockerfile_amd at

image

The relevant code snippet is as follows

RUN set -eux; \
    apt-get update && apt-get install -y \
    libaio-dev \
    libkeyutils-dev \
    locales \
    libreadline-dev && \
    rm -rf /var/lib/apt/lists/*; \ 
    ln -s /lib/x86_64-linux-gnu/libreadline.so.7 /lib/x86_64-linux-gnu/libreadline.so.6; \
    groupadd -g 70 omm;  \
    useradd -u 70 -g omm -m -s /bin/bash omm;  \
    mkdir -p /var/lib/opengauss && \
    mkdir -p /usr/local/opengauss && \
    mkdir -p /var/run/opengauss  && \
    mkdir /docker-entrypoint-initdb.d && \
    wget -P /usr/local/bin/ https://gitee.com/lee1002/gosu/attach_files/914780/download/gosu-amd64 -O /usr/local/bin/gosu && \
    chown omm:omm /var/lib/opengauss /home/omm /var/run/opengauss /docker-entrypoint-initdb.d && \
    cp /tmp/wal2json.so /usr/local/opengauss && \
    locale-gen en_US.UTF-8

seems not include wget. Please check my PR is it correct. Thanks

kamusis commented 2 years ago

@azexcy thank you for the PR request, that's helpful! :heart: