ActianCorp / Vector-Docker

Docker build file for creating a container with Actian Vector Community Edition
Apache License 2.0
10 stars 6 forks source link

Failed docker build when setting actian user password in Dockerfile #2

Closed benzwerver closed 5 years ago

benzwerver commented 5 years ago

Steps to reproduce:

  1. Clone repository
  2. Download actian vector community edition and place into same folder
  3. Uncomment line 58 in Dockerfile
  4. Run command docker build -t actian/vector5.0:community .

Output

Sending build context to Docker daemon  277.6MB
Step 1/18 : FROM centos:7
 ---> 1e1148e4cc2c
Step 2/18 : LABEL com.actian.vendor="Actian Corporation"       version=5.0       description="Actian Vector 5.0 Community Edition"       maintainer=jeremy.hankinson@actian.com
 ---> Using cache
 ---> 045b50903c94
Step 3/18 : RUN yum install -y libaio util-linux-ng sudo
 ---> Using cache
 ---> 0ebb1b5dba74
Step 4/18 : ENV VECTOR_ARCHIVE actian-vector-*-community-linux-x86_64
 ---> Using cache
 ---> 87c06c4fa15e
Step 5/18 : ENV II_SYSTEM /VectorVW
 ---> Using cache
 ---> 7adc2641170a
Step 6/18 : ADD ${VECTOR_ARCHIVE}.tgz .
 ---> Using cache
 ---> 277ade23d24c
Step 7/18 : RUN cd $VECTOR_ARCHIVE && ./install.sh -express $II_SYSTEM VW -noad && hostname > /tmp/hostname.build
 ---> Using cache
 ---> 5156c870ab36
Step 8/18 : RUN cp $II_SYSTEM/ingres/.ingVWsh /etc/profile.d/vectorVW.sh
 ---> Using cache
 ---> 54b26cc783af
Step 9/18 : RUN source /etc/profile.d/vectorVW.sh && sed -i -e "s,`cat /tmp/hostname.build`,localhost," $II_SYSTEM/ingres/files/config.dat && ingsetenv II_HOSTNAME localhost
 ---> Using cache
 ---> 6ee6eb1dd5bb
Step 10/18 : RUN ln -s $II_SYSTEM/ingres/utility/dockerctl /usr/local/bin/dockerctl
 ---> Using cache
 ---> 2dfb36eb5836
Step 11/18 : EXPOSE 27832 27839 44223 16902
 ---> Using cache
 ---> e86201169a7c
Step 12/18 : RUN sudo su - actian -c 'echo "alter user actian with password =actian;commit;\\p\\g" | sql iidbdb'
 ---> Running in 8f8c39045b7a
TERMINAL MONITOR Copyright 2016 Actian Corporation
E_LC0001 GCA protocol service (GCA_REQUEST) failure.
    Internal service status E_GCfe05 -- Unable to make outgoing connection.
    - System communication error: Cannot assign requested address..

E_LQ0001 Failed to connect to DBMS session.

The command '/bin/sh -c sudo su - actian -c 'echo "alter user actian with password =actian;commit;\\p\\g" | sql iidbdb'' returned a non-zero code: 1
monda07 commented 5 years ago

I've run into this also. Haven't had a chance to find a fix.

A work around until resolved is to go ahead and create the container start it then create the password manually using "docker exec". To save that change use "docker commit"

[] monda07@pegasus:~/Vector-Community-Docker master$ docker exec -u actian -ti vector bash
[actian@d52f80b44e7c /]$ echo "alter user actian with password =actian;commit;\\p\\g" | sql iidbdb
TERMINAL MONITOR Copyright 2016 Actian Corporation
Vector Linux Version VW 5.0.0 (a64.lnx/412) login
Thu Jan 17 07:06:46 2019
continue
alter user actian with password =actian;commit;
Executing . . .
continue
*
Vector Version VW 5.0.0 (a64.lnx/412) logout
Thu Jan 17 07:06:46 2019
[actian@d52f80b44e7c /]$ exit
[] monda07@pegasus:~/Vector-Community-Docker master$ docker commit vector actian/vector5.0:latest
sha256:7e5dfd0f17bddda060f2e82ed2b17f074e1804be715cffdc5c2b2b1fb89a9a27
[] monda07@pegasus:~/Vector-Community-Docker master$ docker images|grep vector
actian/vector5.0    latest              7e5dfd0f17bd        5 seconds ago       1.95GB
actian/vector5.0    community           ad1a8187ad7f        2 months ago        1.95GB
monda07 commented 5 years ago

Fix merged into master