Skip to content
Snippets Groups Projects
Select Git revision
  • 350934db09b30052edebca4cd0bd2b63655efc70
  • master default protected
  • dev
  • docker-issue-ok
  • design
  • DojoHepia-v1.0
  • DojoHepia-v0.5
  • DojoHepia-v0.4.5
  • DojoHepia-v0.4
  • DojoHepia-v0.3
  • DojoHepia-v0.2
  • DojoHepia-v0.1
12 results

PythonDockerCode.java

Blame
  • Forked from alexandr.vanini / dojo-hepia
    Source project has a limited visibility.
    PythonDockerCode.java 631 B
    import java.util.Map;
    
    final class PythonDockerCode implements DockerExecutableCode {
        private Map<String, String> filesWithContent;
        public PythonDockerCode(Map<String, String> filesWithContent) {
            this.filesWithContent = filesWithContent;
        }
    
        public String[] command() {
            return new String[]{"docker", "run", "--rm", "--mount", "type=bind,source=" + System.getProperty("user.dir") + "/share_docker_file,dst=/env/", "freakency/python:3.0", "/bin/bash", "-c", "python sample.py && python assert.py"};
        }
    
        public Map<String, String> filesToExecute() {
            return this.filesWithContent;
        }
    }