R
R
Ruslan2022-02-03 08:11:50
linux
Ruslan, 2022-02-03 08:11:50

Is there a way to return the contents of a global environment variable when accessing a file?

The task is this, there is a file system in a Docker container (Alpine) with the --read-only mode
There is the contents of the certificate in the environment variable
The request (python) library requires specifying the path to the file with the certificate, I can’t write to the file because the FS is in read-only mode .
The question is how to create a file or a link in the FS, until the container is launched, when accessed, the contents of the global environment variable are displayed.

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2022-02-03
@Tiasar

https://docs.docker.com/storage/tmpfs/
Mount tmpfs and store variable content to file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question