sassoftware / sas-container-recipes

A collection of recipes and other resources for building containers that include SAS Viya software.
https://www.sas.com
Apache License 2.0
89 stars 42 forks source link

github.com/docker/docker/client source not working #45

Open PiotrBabol opened 4 years ago

PiotrBabol commented 4 years ago

Describe the bug There seems to be an issue with building container image with the sas-container-recipes.

To Reproduce Steps to reproduce the behavior:

  1. If the container was built before and the Dockerfile is unchanged the docker build command will skip the build steps and use cached data to create the image. If this case apply to you, you can add the --no-cache flag to the docker build command in the build.sh script: Command
    docker build . \
    --no-cache \
    --label sas.recipe=true \
    --label sas.recipe.builder.version=${SAS_DOCKER_TAG} \
    --build-arg USER_UID=${UID} \
    --build-arg DOCKER_GID=${DOCKER_GID} \
    --tag sas-container-recipes-builder:${SAS_DOCKER_TAG} \
    --file Dockerfile \
  2. Run time ./build.sh --type single --addons "auth-demo" --zip ~/recipes/sas-container-recipes/SAS_Viya_deployment_data.zip
  3. Scroll to the
Step 5/20 : RUN go get -x -u gopkg.in/yaml.v2 github.com/docker/docker/api/types github.com/docker/docker/client
  1. See error
    The command '/bin/sh -c go get -x -u gopkg.in/yaml.v2 github.com/docker/docker/api/types github.com/docker/docker/client' returned a non-zero code: 2

Expected behavior The github.com/docker/docker/client source in the go get command doesn't seem to work. I did build this image few weeks ago and the build was successful. I tried to built it on 2 environments - Centos and openstack rhel cluster.

Environment: