docker build failed at create_user script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LOCI |
New
|
Undecided
|
Unassigned |
Bug Description
i followed the instructions on github on how to build the containers and the following command fails :
docker build https:/
--build-arg FROM=loci-
--build-arg PROJECT=keystone \
--tag loci-keystone:
it fails with :
Setting up virtualenv (15.0.1+
Setting up dh-python (2.20170125~cloud0) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for ca-certificates (20170717~16.04.2) ...
Updating certificates in /etc/ssl/certs...
148 added, 0 removed; done.
Running hooks in /etc/ca-
done.
+ [[ '' == \r\e\q\
++ dirname /opt/loci/
+ /opt/loci/
+ [[ no == \n\o ]]
+ python=python2
++ dirname /opt/loci/
+ python2 /opt/loci/
http://
http://
http://
+ mkdir -p /tmp/wheels/
+ tar xf /tmp/wheels.tar.gz '--exclude=.*' -C /tmp/wheels/
+ [[ '' == \i\n\f\r\a ]]
+ [[ no == \n\o ]]
++ dirname /opt/loci/
+ /opt/loci/
+ groupadd -g 42424
Usage: groupadd [options] GROUP
Options:
-f, --force exit successfully if the group already exists,
-g, --gid GID use GID for the new group
-h, --help display this help message and exit
-K, --key KEY=VALUE override /etc/login.defs defaults
-o, --non-unique allow to create groups with duplicate
-p, --password PASSWORD use this encrypted password for the new group
-r, --system create a system account
-R, --root CHROOT_DIR directory to chroot into
--extrausers Use the extra users database
The command '/bin/sh -c /opt/loci/
zsh: command not found: --build-arg
the right command should be
docker build https:/ /opendev. org/openstack/ loci.git \ base:ubuntu \ ubuntu
--build-arg FROM=loci-
--build-arg PROJECT=keystone \
--tag loci-keystone:
(note the missing \ on the second line)
I've sent up a review, waiting for the core developers to merge it.