ãããã·ç°å¢ã§ã¹ã¯ã©ããããsingularityã³ã³ããã®äœæ
æŠèŠ çŸè·å Žç°å¢ããã¢ã¯ã»ã¹ã§ããã¹ãã³ã³ã§ãgpuã䜿ã£ãã³ãŒããå®è¡ããããšããæãsingularityçµç±ã§ãªããšcudaã®èšå®åšãã§æãããããšãããã äŸãã°juliaã®ã³ãŒãã¯ã³ã³ãããçµç±ãããšãå®è¡ã§ããããpythonã§ã¯æãããçºçããŠããŸãã ãã®ãããããåŸãã³ã³ããã«å ¥éããããšã«ãªã£ãã docker hubãsingularity hubã®ã³ã³ãããå©çšããã®ãæã£åãæ©ãããå匷ã®ããã«dockerã®ã³ã³ãããäžããäœã£ãŠãsingularityã®ã³ã³ããã«å€æããŠã¿ãããšã«ããã äœæ¥å 容ãããã«ã¡ã¢ããŠããã dockerã®ã€ã³ã¹ããŒã« å ¬åŒããŒãžãåèã«ããããäœãããã®ãšã©ãŒãåºãŠããŸã£ãããã ãåèã«ãããšããŸããã£ãã ãããã·èšå® dockerãããããã·ãèŠããããã«ã以äžãäœæ $ sudo mkdir -p /etc/systemd/system/docker.service.d $ sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf 以äžãèšè¿° [Service] Environment="HTTP_PROXY=http://proxy_address:port" Environment="HTTPS_PROXY=http://proxy_address:port" Environment="NO_PROXY=localhost" dockerãåèµ·å $ sudo systemctl daemon-reload $ sudo systemctl restart docker ã³ã³ãããäœæããããšãã«ãããã·ãèšå®ãããããã以äžãäœæ $ mkdir ~/.docker $ vim ~/.docker/config.json 以äžãèšè¿° { "proxies": { "default": { "httpProxy": "http://proxy_address:port", "httpsProxy": "http://proxy_address:port", "noProxy": "localhost" } } } pythonã®å®è¡ç°å¢ãäœæïŒ ãã ãåç § ãã£ã¬ã¯ããªæ§æã¯äžèšã®ããã«ãã . âââ docker-compose.yml âââ Dockerfile âââ .env âââ requirements.txt âââ src âââ main.py Dokerfileã¯äžèšã®ããã«ãã FROM python:3 USER root RUN apt-get update RUN mkdir -p /root/src COPY requirements.txt /root/src WORKDIR /root/src RUN pip install --proxy="http://user:pass@proxy_address:port" --upgrade pip RUN pip install --proxy="http://user:pass@proxy_address:port" --upgrade setuptools RUN pip install --proxy="http://user:pass@proxy_address:port" -r requirements.txt 以äžè£è¶³ïŒ ...