{"id":327,"date":"2026-08-22T18:14:22","date_gmt":"2026-08-22T14:14:22","guid":{"rendered":"http:\/\/www.microsoft-way.ru\/?p=327"},"modified":"2026-08-24T18:24:10","modified_gmt":"2026-08-24T14:24:10","slug":"%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba-%d0%bc%d0%b5%d1%81%d1%81%d0%b5%d0%bd%d0%b4%d0%b6%d0%b5%d1%80%d0%b0-max-%d0%b2-%d0%ba%d0%be%d0%bd%d1%82%d0%b5%d0%b9%d0%bd%d0%b5%d1%80%d0%b5","status":"publish","type":"post","link":"https:\/\/microsoft-way.ru\/?p=327","title":{"rendered":"\u0417\u0430\u043f\u0443\u0441\u043a \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430 MAX \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435"},"content":{"rendered":"<p>\u0410 \u0432\u0441\u0435 \u0442\u0430\u043a \u0445\u043e\u0440\u043e\u0448\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c. \u041d\u043e, \u0443\u0432\u044b, \u0435\u0441\u0442\u044c \u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043b\u043b\u0435\u0433 &#171;\u0442\u0440\u0430\u0434\u0438\u0446\u0438\u0438&#187; \u0438 \u043e\u043d\u0438, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0437\u0434\u0440\u0430\u0432\u044b\u0439 \u0441\u043c\u044b\u0441\u043b. \u0418 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b, \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u043e\u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u0432, devops. \u0418&#8230;\u0432\u043e\u0442 \u0442\u0430\u043a&#8230; \u041d\u0443 \u043f\u043e\u0447\u0435\u043c\u0443? \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a-\u0442\u043e?<br \/>\n\u0418\u0442\u043e\u0433\u043e, \u0434\u0435\u043b\u043e \u0431\u044b\u043b\u043e \u043d\u0435 \u0432 \u043f\u0430\u0440\u0430\u043d\u043e\u0439\u0435 \u0438 \u043d\u0435 \u0432 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u0414\u0435\u043b\u043e \u0431\u044b\u043b\u043e \u0432 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430.<br \/>\n\u041f\u043e\u0434 Linux \u0434\u0430\u043d\u043d\u043e\u0435 \u041f\u041e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0443\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0442\u0442\u0443\u0434\u0430. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0435\u0434\u0438\u043d\u044b \u0434\u043b\u044f \u0432\u0441\u0435\u0445 DEB based. \u0412 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f, \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u044f\u0434 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a, \u0430 \u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442 \u0438 \u0435\u0441\u0442\u044c \u0448\u0430\u043d\u0441\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f. \u0422\u043e \u0435\u0441\u0442\u044c, \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e, \u043f\u0440\u0438 \u0448\u0442\u0430\u0442\u043d\u043e\u043c apt upgrade \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u0435\u0442 \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0434\u043b\u044f \u0441\u0432\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 glibc-2.28 \u0438 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043d\u0438\u0436\u0435. \u0414\u0430 \u0443\u0436. \u041d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440, \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u0430\u044f \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c&#8230;\u0433\u0434\u0435? \u041d\u0443 \u043f\u043e\u0447\u0435\u043c\u0443?.. \u042d\u0442\u043e \u0436\u0435 \u043f\u0435\u0440\u0435\u043b\u0438\u0446\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0422\u0430\u043c-\u0422\u0430\u043c, \u0442\u043e \u0435\u0441\u0442\u044c, \u0432\u043e\u0442 \u044d\u0442\u043e \u0432\u0441\u0451 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0441\u044f\u0442\u0438 \u043b\u0435\u0442. \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a\u0438\u0435 \u0434\u0435\u0442\u0441\u043a\u0438\u0435 \u0431\u043e\u043b\u0435\u0437\u043d\u0438?<br \/>\n\u041b\u0430\u0434\u043d\u043e, \u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0432\u0441\u0435 \u0436\u0435 \u043f\u043e\u0432\u0437\u0440\u043e\u0441\u043b\u0435\u044e\u0442. \u0423 \u043d\u0430\u0441 \u0436\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0431\u0435\u0437 \u043f\u043e\u043b\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u044b \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0430 \u043d\u0435 \u0441\u0442\u0440\u0430\u0434\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f\u043c\u0438.<br \/>\n<!--more--><\/p>\n<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f \u0443\u0441\u0442\u043e\u044f\u0432\u0448\u0438\u0435\u0441\u044f \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u0438, \u044f \u0442\u043e\u0436\u0435 \u043d\u0435 \u043c\u043e\u0433\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u043e-\u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u044d\u0434\u0430\u043a\u0438\u0439 \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u044d\u043a\u0437\u0435\u0440\u0441\u0438\u0437.<br \/>\n\u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c Linux \u0437\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u0435\u0439, \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430 gnome-keyring (\u0438\u043b\u0438 KWallet \u0432 KDE). \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u0449\u0430\u044e\u0442\u0441\u044f \u0441 \u044d\u0442\u043e\u0439 \u0441\u043b\u0443\u0436\u0431\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 libsecret. \u041d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e Docker-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043d\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438 GNOME \u0438 \u043d\u0435\u0442 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 gnome-keyring. \u041c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 libsecret, \u0442\u0430 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043a\u043e\u0448\u0435\u043b\u0435\u043a, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0436\u0435\u0441\u0442\u043a\u0438\u0439 \u043e\u0442\u043a\u0430\u0437, \u0438 \u0432 \u043a\u043e\u0434\u0435 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0431\u043e\u0439.<br \/>\n\u0414\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0434\u0435\u043c\u043e\u043d \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u0445\u043e\u0441\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u0448\u0438\u043d\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 D-Bus. \u041f\u0440\u043e\u0431\u0440\u043e\u0441 \u044d\u0442\u043e\u0439 \u0448\u0438\u043d\u044b \u0432\u043d\u0443\u0442\u0440\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u043e \u0432\u0435\u0434\u044c \u0438\u0437 \u043b\u044e\u0431\u0432\u0438 \u043a \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0443 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0451 \u0447\u0435\u0440\u0435\u0437 \u0443\u0445\u043e. \u0418 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441 d-bus \u0441\u0438\u043b\u044c\u043d\u043e \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u044e \u0438 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u044c. \u0425\u043e\u0442\u044f \u044d\u0442\u0430 \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u043a\u0430 \u0445\u043e\u0442\u044c \u043a\u0430\u043a-\u0442\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0441\u043b\u0438 \u0437\u0430\u0431\u044b\u0442\u044c, \u0447\u0442\u043e \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0439 \u043a\u0430\u043a \u0440\u0430\u0437 \u043d\u0435 \u0446\u0435\u043b\u044c, \u0430 \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d\u043d\u043e\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e.<br \/>\n\u0418\u0442\u0430\u043a, \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0443-\u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440, \u0447\u0442\u043e\u0431\u044b \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043e\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441 keyring, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u043f\u0438\u0441\u0430\u043b\u043e\u0441\u044c \u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<br \/>\n\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e:<br \/>\n# cat libsecret_mock.c<br \/>\n<code><br \/>\n#include <stdbool.h><br \/>\n#include <stddef.h><\/p>\n<p>void* secret_password_store_sync(void* a, void* b, void* c, void* d, void* e, void* f, void* g) { return NULL; }<br \/>\nvoid* secret_password_lookup_sync(void* a, void* b, void* c, void* d) { return NULL; }<br \/>\nbool secret_password_clear_sync(void* a, void* b, void* c) { return true; }<br \/>\nvoid* secret_service_get_sync(int flags, void* cancellable, void* error) { return NULL; }<br \/>\nvoid* secret_password_storev_sync(void* a, void* b, void* c, void* d, void* e, void* f, void* g) { return NULL; }<br \/>\nvoid* secret_password_lookupv_sync(void* a, void* b, void* c, void* d) { return NULL; }<br \/>\nbool secret_password_clearv_sync(void* a, void* b, void* c) { return true; }<br \/>\nvoid* secret_password_searchv_sync(void* a, void* b, void* c, int flags, void* cancellable, void* error) { return NULL; }<br \/>\nvoid secret_password_free(void* password) {}<br \/>\nvoid secret_value_unref(void* value) {}<br \/>\nbool secret_item_delete_sync(void* item, void* cancellable, void* error) { return true; }<br \/>\nvoid* secret_item_get_secret(void* item) { return NULL; }<br \/>\nvoid* secret_item_get_attributes(void* item) { return NULL; }<br \/>\nvoid* secret_item_get_label(void* item) { return NULL; }<br \/>\nvoid* secret_service_search_sync(void* a, void* b, void* c, int flags, void* cancellable, void* error) { return NULL; }<br \/>\nbool secret_service_storev_sync(void* a, void* b, void* c, void* d, void* e, void* f, void* g, void* h) { return true; }<br \/>\nvoid* secret_schema_new(void* name, int flags, ...) { return NULL; }<br \/>\nbool secret_collection_delete_sync(void* collection, void* cancellable, void* error) { return true; }<br \/>\nvoid* secret_retrievable_get_attributes(void* r) { return NULL; }<br \/>\nvoid* secret_retrievable_get_label(void* r) { return NULL; }<br \/>\nunsigned long long secret_retrievable_get_created(void* r) { return 0; }<br \/>\nunsigned long long secret_retrievable_get_modified(void* r) { return 0; }<br \/>\nvoid secret_retrievable_retrieve_secret(void* r, void* c, void* callback, void* user_data) {}<br \/>\nvoid* secret_retrievable_retrieve_secret_sync(void* r, void* c, void* error) { return NULL; }<br \/>\nvoid secret_password_store() {}<br \/>\nvoid secret_password_lookup() {}<br \/>\nvoid secret_password_clear() {}<br \/>\nvoid secret_service_get() {}<br \/>\nvoid secret_item_delete() {}<br \/>\nvoid secret_password_storev() {}<br \/>\nvoid secret_password_lookupv() {}<br \/>\nvoid secret_password_clearv() {}<br \/>\nvoid secret_password_searchv() {}<br \/>\n<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c Dockerfile<br \/>\n#cat Dockerfile<br \/>\n<code><br \/>\nFROM ubuntu:26.04<\/p>\n<p># 1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043b\u043e\u043a\u0430\u043b\u0438 UTF-8<br \/>\nRUN apt-get update && apt-get install -y locales gcc curl gpg fontconfig fonts-dejavu \\<br \/>\n    && locale-gen ru_RU.UTF-8 \\<br \/>\n    && update-locale LANG=ru_RU.UTF-8 LC_ALL=ru_RU.UTF-8<br \/>\nENV LANG=ru_RU.UTF-8<br \/>\nENV LC_ALL=ru_RU.UTF-8<\/p>\n<p># 2. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430 MAX<br \/>\nRUN mkdir -p \/etc\/apt\/keyrings \\<br \/>\n    && curl -fsSL https:\/\/download.max.ru\/linux\/deb\/public.asc | gpg --dearmor -o \/etc\/apt\/keyrings\/max.gpg \\<br \/>\n    && echo \"deb [arch=amd64 signed-by=\/etc\/apt\/keyrings\/max.gpg] https:\/\/download.max.ru\/linux\/deb stable main\" | tee \/etc\/apt\/sources.list.d\/max.list<\/p>\n<p># 3. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430 \u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e\/\u0430\u0443\u0434\u0438\u043e \u0441\u0442\u0435\u043a\u0430<br \/>\n# \u0414\u0430, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 libxaw7\/libxmuu1, \u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u043c \u0441\u0435\u0440\u044c\u0435\u0437\u0435. \u041e\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c. \u042d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 libc.<br \/>\nRUN apt-get update && apt-get install -y max \\<br \/>\n    libglx0 libgl1 libgbm1 libegl1 \\<br \/>\n    libxrender1 libxtst6 libxi6 libxcomposite1 libxdamage1 libxrandr2 libxcursor1 libxkbfile1 \\<br \/>\n    libnspr4 libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \\<br \/>\n    libxkbcommon0 libxkbcommon-x11-0 \\<br \/>\n    libxcb-cursor0 libxcb-util1 libxcb-shape0 libxcb-res0 \\<br \/>\n    libasound2t64 libxv1 libice6 libsm6 libfontenc1 libxaw7 \\<br \/>\n    libxinerama1 libxmu6 libxpm4 libxt6 libxmuu1 libxss1 libxft2 \\<br \/>\n    && apt-get clean && rm -rf \/var\/lib\/apt\/lists\/*<\/p>\n<p># 4. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438 libsecret \u0432\u043e \u0432\u0441\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438<br \/>\nCOPY libsecret_mock.c \/tmp\/libsecret_mock.c<br \/>\nRUN gcc -shared -o \/usr\/lib\/x86_64-linux-gnu\/libsecret-1.so.0 \/tmp\/libsecret_mock.c -fPIC \\<br \/>\n    && cp \/usr\/lib\/x86_64-linux-gnu\/libsecret-1.so.0 \/usr\/share\/max\/bin\/max-service\/lib64\/libsecret-1.so.0 \\<br \/>\n    && cp \/usr\/lib\/x86_64-linux-gnu\/libsecret-1.so.0 \/usr\/share\/max\/lib64\/libsecret-1.so.0 \\<br \/>\n    && rm -f \/tmp\/libsecret_mock.c<\/p>\n<p># 5. \u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0448\u0440\u0438\u0444\u0442\u043e\u0432 DejaVu \u0434\u043b\u044f Qt6 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0433\u0440\u0443\u043f\u043f<br \/>\n# \u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u0438\u0437-\u0437\u0430 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u0438 max-service (\u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432)<br \/>\nRUN mkdir -p \/usr\/share\/max\/lib64\/fonts \\<br \/>\n    && cp \/usr\/share\/fonts\/truetype\/dejavu\/DejaVuSans*.ttf \/usr\/share\/max\/lib64\/fonts\/ \\<br \/>\n    && chmod 1777 \/tmp \\<br \/>\n    && usermod -aG audio ubuntu<\/p>\n<p># 6. \u0414\u0435\u043b\u0430\u0435\u043c \/ubuntu \u0436\u0435\u0441\u0442\u043a\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 \/home\/ubuntu. \u0412\u0441\u043f\u043b\u044b\u043b\u0430 \u043d\u0435\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u043d\u0430\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0430\u0440\u0442\u0430 max-service (\u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432).<br \/>\nRUN ln -s \/home\/ubuntu \/ubuntu <\/p>\n<p># 7. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f ubuntu \u0441 \u0435\u0433\u043e \u0440\u043e\u0434\u043d\u044b\u043c HOME<br \/>\nUSER ubuntu<br \/>\nWORKDIR \/home\/ubuntu<\/p>\n<p>CMD [\"max\"]<br \/>\n<\/code><\/p>\n<p>\u0421\u043e\u0431\u0435\u0440\u0435\u043c \u043e\u0431\u0440\u0430\u0437 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430<br \/>\ndocker build -t max-messenger:secure-prod .<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440.<br \/>\n\u0417\u0434\u0435\u0441\u044c \u0441\u0440\u0430\u0437\u0443 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043f\u0430\u043f\u043a\u0430 .tmp, \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442-\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0432 \u043b\u043e\u0433\u0430\u0445 Invalid cross-device link \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430.<br \/>\nmkdir -p $HOME\/.max_messenger_profile\/.tmp<br \/>\n\u0418 \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0441 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u043e\u043c \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435. \u0422\u0443\u0442 \u0432\u043a\u0443\u0441\u043e\u0432\u0449\u0438\u043d\u0430, \u043a\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u0435\u0435. \u042f \u0437\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0445\u043e\u0442\u044c \u0432\u0435\u0441\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0441 \u0445\u043e\u0441\u0442\u0430.<br \/>\nmkdir -p $HOME\/max_downloads<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0438\u0442\u044c\u0441\u044f. \u041d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e: \u043b\u043e\u0433\u0438\u043d\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u0445\u043e\u0442\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043b\u0435\u0433\u043a\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f, \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0441\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f.<br \/>\n\u041f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u043c \u0441 \u0445\u043e\u0441\u0442\u0430 \u0430\u0443\u0434\u0438\u043e-\u0432\u0438\u0434\u0435\u043e, \u043f\u0430\u043f\u043a\u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0438 \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f\/\u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0443.<br \/>\n<code><br \/>\ndocker run -it --rm \\<br \/>\n  --name max-messenger-stable \\<br \/>\n  -e DISPLAY=$DISPLAY \\<br \/>\n  -e QT_QPA_PLATFORM=xcb \\<br \/>\n  -e TMPDIR=\/home\/ubuntu\/.local\/share\/ONEME\/.tmp \\<br \/>\n  -v \/tmp\/.X11-unix:\/tmp\/.X11-unix:ro \\<br \/>\n  -v \/run\/user\/$(id -u)\/pulse\/native:\/tmp\/pulse-socket \\<br \/>\n  -e PULSE_SERVER=unix:\/tmp\/pulse-socket \\<br \/>\n  -v $HOME\/.max_messenger_profile:\/ubuntu\/.local\/share\/ONEME \\<br \/>\n  -v $HOME\/max_downloads:\/ubuntu\/Downloads \\<br \/>\n  --ipc=host \\<br \/>\n  --device \/dev\/dri \\<br \/>\n  --device \/dev\/video0 \\<br \/>\n  -e ELECTRON_DISABLE_SANDBOX=1 \\<br \/>\n  -v \/etc\/localtime:\/etc\/localtime:ro \\<br \/>\n  -v \/etc\/timezone:\/etc\/timezone:ro \\<br \/>\n  max-messenger:secure-prod<br \/>\n<\/code><\/p>\n<p>\u041d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u0443\u0442\u043e\u0447\u043d\u044f\u044e: ONEME \u044d\u0442\u043e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f \u043f\u0430\u043f\u043a\u0438, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0439 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u0441\u0430\u043c\u0438\u043c \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u043e\u043c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0410 \u0432\u0441\u0435 \u0442\u0430\u043a \u0445\u043e\u0440\u043e\u0448\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c. \u041d\u043e, \u0443\u0432\u044b, \u0435\u0441\u0442\u044c \u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043b\u043b\u0435\u0433 &#171;\u0442\u0440\u0430\u0434\u0438\u0446\u0438\u0438&#187; \u0438 \u043e\u043d\u0438, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0437\u0434\u0440\u0430\u0432\u044b\u0439 \u0441\u043c\u044b\u0441\u043b. \u0418 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b, \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u043e\u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u0432, devops. \u0418&#8230;\u0432\u043e\u0442 \u0442\u0430\u043a&#8230; \u041d\u0443 \u043f\u043e\u0447\u0435\u043c\u0443? \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a-\u0442\u043e? \u0418\u0442\u043e\u0433\u043e, \u0434\u0435\u043b\u043e \u0431\u044b\u043b\u043e \u043d\u0435 \u0432 \u043f\u0430\u0440\u0430\u043d\u043e\u0439\u0435 \u0438 \u043d\u0435 \u0432 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u0414\u0435\u043b\u043e \u0431\u044b\u043b\u043e \u0432 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,85],"tags":[],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-bezopasnost","category-85"],"_links":{"self":[{"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=327"}],"version-history":[{"count":3,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":335,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions\/335"}],"wp:attachment":[{"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}