diff --git a/examples/config.yml b/examples/config.yml index f55b7449..b238465e 100644 --- a/examples/config.yml +++ b/examples/config.yml @@ -1,43 +1,66 @@ --- # only one document with all configuration needed worker-id: 1 worker-description: "linux_worker_1" -broker-uri: tcp://localhost:9657 +broker-uri: "tcp://localhost:9657" headers: env: + - bash - c-gcc-linux - - python3 - - cxx11-gcc-linux + - cxx-gcc-linux + - data-linux - freepascal-linux - - java8 - - mono46 + - go + - groovy + - haskell + - java + - kotlin + - mono + - node-linux + - php-linux + - prolog + - python3 + - rust + - scala threads: 1 -hwgroup: "group1" -working-directory: /var/recodex-worker +hwgroup: "01-default" +working-directory: "/var/recodex-worker-wd" file-managers: - - hostname: "http://localhost:9999" # port is optional - username: "" # can be ignored in specific modules - password: "" # can be ignored in specific modules -file-cache: # only in case that there is cache module - cache-dir: "/tmp/recodex/cache" + - hostname: "http://localhost:9999" + username: "re" # this must match http auth credentials + password: "codex" # which are set for fileserver +file-cache: + cache-dir: "/var/recodex-worker-cache" logger: file: "/var/log/recodex/worker" # w/o suffix - actual names will be worker.log, worker.1.log, ... level: "debug" # level of logging - one of "debug", "warn", "emerg" max-size: 1048576 # 1 MB; max size of file before log rotation rotations: 3 # number of rotations kept limits: - time: 30 # in secs - wall-time: 30 # seconds - extra-time: 2 # seconds - stack-size: 0 # normal in KB, but 0 means no special limit - memory: 900000 # in KB - extra-memory: 8 # in KB, will be added to memory limit - parallel: 0 # time and memory limits are merged - disk-size: 1048576 + time: 30 # seconds + wall-time: 30 # seconds + extra-time: 2 # seconds + stack-size: 0 # KiB, but 0 means no special limit + memory: 1048576 # KiB + extra-memory: 64 # KiB, will be added to memory limit + parallel: 0 # if parallel == 1, time and memory limits are merged + disk-size: 1048576 # KiB disk-files: 100 - environ-variable: - HOME: /box + environ-variable: # environmental variables used inside sandbox + HOME: /box # do not change unless you know what are you doing PATH: /usr/bin:/bin -max-output-length: 1024 # in bytes + # JAVA_HOME: /path/to/JAVA/jdk # when JAVA env is enabled + # LD_LIBRARY_PATH: /usr/local/gcc72/lib64 # e.g., for custom GCC libs + # PPC_CONFIG_PATH: /usr/etc # base path for config files in freepascal env + # GROOVY_HOME: /path/to/groovy/home + # Python config parameters... + # PYTHONHASHSEED: 0 + # PYTHONIOENCODING: utf-8 + # VIRTUAL_ENV: /path/to/python/venv + bound-directories: # All aditional dirs mapped into sandbox (SDKs, libs, venvs, ...) + - src: "/tmp" + dst: "/tmp" + mode: "rw" # if mode is omitted, dir is mounted as read-only (which is typical for lib dirs) +max-output-length: 4096 # in bytes max-carboncopy-length: 1048576 # in bytes cleanup-submission: false # if true, then folders with data concerning submissions will be cleared after evaluation, should be used carefully, can produce huge amount of used disk space ... diff --git a/recodex-worker.spec b/recodex-worker.spec index d1a5efee..474afc23 100644 --- a/recodex-worker.spec +++ b/recodex-worker.spec @@ -1,8 +1,8 @@ %define name recodex-worker %define short_name worker -%define version 1.6.4 -%define unmangled_version 597144f5dc757fc18446f3fc4a58f064f3ac4ba6 -%define release 4 +%define version 1.6.5 +%define unmangled_version cbb96cedfb593d50c44cb9a6e981d3c70e0a2515 +%define release 1 %define spdlog_name spdlog %define spdlog_version 0.13.0 @@ -27,7 +27,7 @@ Source1: https://github.com/gabime/%{spdlog_name}/archive/v%{spdlog_version}.tar %global debug_package %{nil} %description -Worker is a backend component of ReCodEx code examiner, an educational application for evaluating programming assignments. +Worker is a backend component of ReCodEx code examiner, an educational application for evaluating programming assignments. Worker is responsible for the evaluation of code submissions in a sandbox. %prep %setup -n %{short_name}-%{unmangled_version}