About 52,300,000 results
Open links in new tab
  1. python - What do *args and **kwargs mean? - Stack Overflow

    What exactly do *args and **kwargs mean? According to the Python documentation, from what it seems, it passes in a tuple of arguments. def foo (hello, *args): print (hello) for each in args:...

  2. Argparse: Required arguments listed under "optional arguments"?

    Parameters starting with - or -- are usually considered optional. All other parameters are positional parameters and as such required by design (like positional function arguments). It is possible …

  3. How to get an environment variable value into Dockerfile during …

    Mar 19, 2019 · The ARG defines a variable to be used inside the dockerfile in subsequent commands. The ENV defines an environment variable which is passed to the container.

  4. Dockerfile define multiple ARG arguments in a single line

    Dec 9, 2019 · Right now I am defining ARGs in my Dockerfile like this: ARG CDN_ENDPOINT ARG AWS_S3_BUCKET Is there a way to define them in a single line similar to ENV to avoid …

  5. How to pass arguments to a Dockerfile? - Stack Overflow

    I am using RUN instruction within a Dockerfile to install a rpm RUN yum -y install samplerpm-2.3 However, I want to pass the value "2.3" as an argument. My RUN instruction should look …

  6. Check existence of input argument in a Bash shell script

    Jun 26, 2011 · I need to check the existence of an input argument. I have the following script if [ "$1" -gt "-1" ] then echo hi fi I get [: : integer expression expected How do I check the input …

  7. docker - Using ARG and ENV in Dockerfile - Stack Overflow

    Feb 28, 2020 · ARG before the first FROM are only useful to allow variables in the FROM line and to supply defaults, but can't be used otherwise. This is further discussed under Understand …

  8. How can I constrain a value parsed with argparse (for example, …

    15 The quick and dirty way, if you have a predictable max as well as min for your arg, is use choices with a range

  9. How to define build-args in docker-compose? - Stack Overflow

    Warning for later people: for passwords, you might consider using a secret manager (Vault, k8s secrets, aws sms, docker swarm secrets) instead of a build arg to avoid security breaches. A …

  10. docker build with --build-arg with multiple arguments

    According to "docker build --help" the --build_arg is described as a list. it isn't really specifying a list if I have to repeat the entire argument over and over with a single value each time.