Coder Social home page Coder Social logo

Comments (2)

g8sman avatar g8sman commented on May 13, 2024

You are correct that we need to update the documentation if you are trying to add on the layer outside of using the root level build.sh script. You would need to run the docker build process twice using each of the Docker files that are available. The logic looks like it is not as forgiving as it needs to be in the Dockerfile_http. We will probably need to introduce a new build argument to indicate if we are supporting a single or multiple container to make this work. Assuming that you are trying to create a single container, you could do something like:

docker build --file Dockerfile --build-arg BASEIMAGE=viya-single-container --build-arg BASETAG=latest  . --tag viya-single-container:jpy3
docker build --file Dockerfile --build-arg BASEIMAGE=viya-single-container --build-arg BASETAG=jpy3  . --tag svc-ide-jupyter-python3

If you are using the multi-container flow, this proxy.conf file needs to be added to the httpproxy Docker image.

from sas-container-recipes.

githje avatar githje commented on May 13, 2024

Thanks @g8sman! Yes, I'm not using the build.sh script - should have mentioned that before. I think there's a typo in your explanation. The first build should be using Dockerfile_http, right?

This works for me:

docker build --file Dockerfile_http --build-arg BASEIMAGE=viya-single-container --build-arg BASETAG=latest  . --tag viya-single-container:jpy3
docker build --file Dockerfile --build-arg BASEIMAGE=viya-single-container --build-arg BASETAG=jpy3  . --tag svc-ide-jupyter-python3

Then I headed over to addons/auth-demo for example and did

docker build --file Dockerfile --build-arg BASEIMAGE=svc-ide-jupyter-python3 --build-arg BASETAG=latest  . --tag svc-auth-demo

Thanks for the explanation, I'm fine with that.

from sas-container-recipes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.