- forward external port (22 or something else) to
server
port 22.
- enable ssh
FROM python:3.8-slim-buster | |
RUN apt-get update && apt-get -y install cron | |
# Copy hello-cron file to the cron.d directory | |
COPY hello-cron /etc/cron.d/hello-cron | |
# Give execution rights on the cron job | |
RUN chmod 0644 /etc/cron.d/hello-cron |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<style> | |
div.lazy { | |
width: 700px; | |
height: 467px; | |
background: #f2dede; | |
color: #a94442; |
**/.ipynb_checkpoints/* | |
ok.png | |
ok.nii.gz | |
workdir/* |
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR) | |
if(POLICY CMP0020) | |
cmake_policy(SET CMP0020 NEW) | |
endif() | |
PROJECT(foo) | |
find_package(VTK REQUIRED) |
FROM ubuntu:18.04 | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
autotools-dev \ | |
build-essential \ | |
ca-certificates \ | |
cmake \ | |
git \ | |
wget \ | |
unzip \ |
images/* | |
images.zip | |
itk.nii.gz | |
ok/* |
server side:
ref. https://docs.nvidia.com/clara/tlt-mi/
export workspace=/tmp/clara-experiments
mkdir -p $workspace
export dockerImage=nvcr.io/nvidia/clara-train-sdk:v3.1.01
docker pull $dockerImage
docker run --gpus=1 --shm-size=1G --ulimit memlock=-1 --ulimit stack=67108864 -it --rm -v $workspace:/workspace/clara-experiments $dockerImage /bin/bash
import os | |
import sys | |
import uuid | |
import time | |
import numpy as np | |
import asyncio | |
import aiofiles | |
from aiofiles.os import wrap | |
# make sure any io operations use the async version |
import os | |
import warnings | |
import traceback | |
import smtplib | |
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.application import MIMEApplication | |
import getpass | |
# email_server coule be email_server+":"+port |