Skip to content

Commit

Permalink
Increase shm size after docker start
Browse files Browse the repository at this point in the history
From elgalu/docker-selenium#20 (comment)
Should be fixed, after docker implement `-shm` argument in moby/moby#3505
  • Loading branch information
ShockwaveNN committed Sep 11, 2015
1 parent 7921db5 commit 3aca0f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/server/managers/test_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def generate_ssh_command(command)
end

def execute_docker_command(command)
generate_ssh_command("docker pull onlyofficetestingrobot/nct-at-testing-node; docker run --privileged=true onlyofficetestingrobot/nct-at-testing-node bash -c \"sudo mount -a; #{command}\"")
shm_increase = 'sudo umount /dev/shm; sudo mount -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=512M tmpfs /dev/shm;' # TODO: remove after docker implement `-shm` argument https://github.com/docker/docker/issues/2606
generate_ssh_command("docker pull onlyofficetestingrobot/nct-at-testing-node; docker run --privileged=true onlyofficetestingrobot/nct-at-testing-node bash -c \"#{shm_increase}sudo mount -a; #{command}\"")
end

def stop_test
Expand Down

0 comments on commit 3aca0f9

Please sign in to comment.