Open alanzablocki opened 5 years ago
Thank you for the information. I believe you want to do
docker build --file Dockerfile --build-arg BASEIMAGE=sas-viya-single-programming-only --build-arg BASETAG=19.04.0-20190516160342-no-git-sha . --tag svc-ide-jupyter-python3
This should create an image called svc-ide-jupyter-python3
with a tag of latest
.
As far as order, run with Dockerfile and then Dockerfile_http. Given the way the image is tagged on the first builed, remember to change your BUILDIMAGE and BUILDTAG values.
build.sh is calling Docker which then looks at available cached layers to know if it can re-use anything. Running
./build.sh --type full --zip SAS_Viya_deployment_data.zip --addons "addons/auth-demo, addons/ide-jupyter-python3"
and then running
./build.sh --type single --zip SAS_Viya_deployment_data.zip --docker-registry-url <registry url> --docker-namespace <namespace> --addons "addons/auth-demo, addons/ide-jupyter-python3, addons/access-hadoop"
should take advantage of the layers already built for everything up to the access-hadoop layer.
Thank you for your comments. I hope to test the explicit docker command build soon (am a bit stuck trying to deploy the demo to Azure at the moment ). I have three follow on questions regarding the commands you posted above:
1) Why is the type full on the first command and single in the second? Shouldn't they both be the same, and if I want a single, they should both be single, no?
2) Why does the second command use --docker-registry-url
Thank you
Describe the bug I am trying to add the python jupyter support to the base image. I am not sure how to do that using the build.sh script, so I chose to follow the Advanced Build documentation and get the following error:
[azablocki@localhost ide-jupyter-python3]$ docker build --file Dockerfile --build-arg BASEIMAGE=19.04.0-20190516160342-no-git-sha . --tag svc-ide-jupyter-python3 Sending build context to Docker daemon 20.99kB Step 1/15 : ARG BASEIMAGE=viya-single-container Step 2/15 : ARG BASETAG=latest Step 3/15 : FROM $BASEIMAGE:$BASETAG pull access denied for 19.04.0-20190516160342-no-git-sha, repository does not exist or may require 'docker login'
To Reproduce Steps to reproduce the behavior:
docker build --file Dockerfile --build-arg BASEIMAGE=19.04.0-20190516160342-no-git-sha . --tag svc-ide-jupyter-python3
, assuming that BASEIMAGE is the tag that refers to the image just built using step1.
Use docker images to list the images and the tags, to see
REPOSITORY TAG IMAGE ID CREATED SIZE