FROM python:3.8.2-alpine
ARG FILENAME_ARG
ENV FILENAME $FILENAME_ARG
# time on alpine does not recognize a long --format argument
CMD time -f '%U' python temp/${FILENAME} 2>&1
FROM python:3.8.2-alpine
ARG FILENAME_ARG
ENV FILENAME $FILENAME_ARG
ENV TIME '%u'
CMD time python temp/${FILENAME} 2>&1
аTIME(1) General Commands Manual TIME(1)
NAME
time - run programs and summarize system resource usage
...
R Number of minor, or recoverable, page faults.
pwd
в cmd %CD%
export
- set
export FILENAME=hello_world.py
docker-compose up
Creating python_runner_container ... done
Attaching to python_runner_container
python_runner_container | check
python_runner_container exited with code 0
unset FILENAME
docker-compose up
WARNING: The FILENAME variable is not set. Defaulting to a blank string.
Starting python_runner_container ... done
basic-python2$
cat temp/hello_world.py
print('check')
docker run -v $(pwd)/temp:/temp --env FILENAME=hello_world.py basic-python2_python_runner
check
restTemplate.getInterceptors()
.add(new BasicAuthorizationInterceptor(username, password));
responseEntity<T> = restTemplate.getForEntity(url, T.class);
-O /dev/null
-O-
если у вас дуал бут попробуйте что говорит винда про видимые сети