Re: Error in installing via Docker and help needed for integrating with REST API


Pittman, Ashley M
 

 

Ok, I’ve reproduced this.  The issue is the dockerfile in 1.0.1 is doing a git clone rather than a COPY to get the code, so the dockerfile is fetching the wrong data.

 

I guess the fix would be to update the Dockfile on the branch to have it pull from the branch, however as  Johann said we’ve modified the dockefiles a lot since then, and will be doing so again shortly.

 

The way forward is probably to checkout the code, locally modify the dockerfile to run “COPY ./ .” rather than the git clone command if you have the option to do this.

 

On master specifying the URL of a dockerfile on the command line isn’t going to work anyway, if we do want to support this method of install then we’ll need to rethink a bit.

 

Ashley.

 

From: daos@daos.groups.io <daos@daos.groups.io> on behalf of asharma@... <asharma@...>
Date: Thursday, 4 February 2021 at 14:10
To: daos@daos.groups.io <daos@daos.groups.io>
Subject: Re: [daos] Error in installing via Docker and help needed for integrating with REST API

Hi Ashley,
I ran the following 3 commands: 
git clone --recurse-submodules -b v1.0.1 https://github.com/daos-stack/daos.git
cd daos

docker build https://github.com/daos-stack/daos.git#v1.0.1:utils/docker \

        -f Dockerfile.centos.7 -t daos

This means I checked out the v1.0.1 branch and ran with the v1.0.1 docker file on it. I was running v1.0.1 because I thought i should use the last stable version as I am using this in a project. Do you suggest I try with the master clone and master Docker file?

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Join {daos@daos.groups.io to automatically receive all group messages.