Sign inSign up

shinejh0528/python_backend

By shinejh0528

•Updated 2 months ago

backend for python

Image
Developer tools
Operating systems
0

10K+

shinejh0528/python_backend repository overview

⁠Version info

⁠Checkout this website
⁠https://github.com/Shin-jongwhan/docker/tree/main/release_note/shinejh0528/python_backend⁠


⁠How to use tini

⁠If you use kubernetes, tini handles dead process id when you execute process via cron.
⁠kubernetes yaml example
  containers:
    - name: backend
      image: shinejh0528/python_backend:1.2.0
      imagePullPolicy: Always
      command: ["/usr/bin/tini", "--", "/bin/bash", "-c"]
      args:
        - |
          set -e
          cp /data/cert/ssl/_wildcard_theragenbio_com.crt /usr/local/share/ca-certificates/ && \
          update-ca-certificates && \
          service sendmail start && \
          service cron start && \
          chmod +x /data/theragenome_workflow_backend/jhshin/dev/cron_manager.sh && \
          mkdir -p /data/tgf/data/log/backend && \
          LINE='* * * * * /bin/bash /data/theragenome_workflow_backend/jhshin/dev/cron_manager.sh 1>> /data/tgf/data/log/backend/log.txt 2>&1' && \
          ( crontab -l 2>/dev/null | grep -Fv -- "$LINE"; echo "$LINE" ) | crontab - && \
          exec sleep infinity
⁠

⁠How to edit

⁠SMTP (mutt)

⁠If you need to edit email username, then edit /root/.muttrc
⁠ex)
set realname="bi_system"
set use_from=yes
set [email protected]
⁠
⁠Or attach path via -v option
docker run -it -v [muttrc_path]:/root/.muttrc shinejh0528/python_backend:1.0.0 /bin/bash
⁠

⁠SMTP test

⁠send email using mutt ex)
/usr/bin/mutt -s "test" [your_email] < test.txt
⁠
⁠result
⁠Image

Tag summary

Content type

Image

Digest

sha256:f2d8d57a5…

Size

1.1 GB

Last updated

2 months ago

docker pull shinejh0528/python_backend:1.4.3