Skip to content

Commit

Permalink
Fix typo on grader queue
Browse files Browse the repository at this point in the history
  • Loading branch information
xybu committed Jan 8, 2015
1 parent 424e279 commit 638a3cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ga-docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ are recommended. Ubuntu has built-in support for Python.
Here is a guide for [setting up a Ubuntu server from scratch](http://xybu.me/setting-up-a-ubuntu-server/).

```bash
sudo apt-get install git curl pip3
sudo apt-get install git curl python3-pip
sudo pip3 install daemonize
```

Expand Down
2 changes: 1 addition & 1 deletion ga-hook/delegates/ga-grader_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

def VirtualizedCmd(cmd, stdin = None, mount = [], memory = '256m', net = 'none', runas = 'slave', cwd = None):
docker_args = ['docker', 'run', '-t', '-i', '--attach', 'STDIN,STDOUT,STDERR', '--cpu-shares', '25', '--memory', memory, '--user', runas, '--net', net]
for x in mount: docker_args += ['--volume' x]
for x in mount: docker_args += ['--volume', x]
if cwd != None: docker_args += ['-w', cwd]
docker_args += [docker_image_name] + cmd
return docker_args
Expand Down

0 comments on commit 638a3cb

Please sign in to comment.