Skip to content

Instantly share code, notes, and snippets.

@ShockwaveNN
Last active November 21, 2020 08:14
Show Gist options
  • Save ShockwaveNN/3d6e7112f371634d27ab1b79215ed467 to your computer and use it in GitHub Desktop.
Save ShockwaveNN/3d6e7112f371634d27ab1b79215ed467 to your computer and use it in GitHub Desktop.
Snippet for easy run of documentserver
#!/usr/bin/env ruby
require 'securerandom'
`docker ps --format '{{.Names}}' | grep "^DocumentServer" | awk '{print $1}' | xargs -I {} docker stop {}`
container_name = "DocumentServer#{SecureRandom.uuid}"
`docker run -itd -p 80:80 -v /usr/share/fonts:/usr/share/fonts/custom --name #{container_name} onlyoffice/4testing-documentserver-ee:#{ARGV[0]}`
sleep 90
`docker exec -it #{container_name} supervisorctl start all`
print "\a"
@ShockwaveNN
Copy link
Author

ShockwaveNN commented Feb 11, 2020

Installation
Install by copy to ~/bin/ and reloading terminal session

Usage
docserverrun 5.4.1.29 - download and run onlyoffice/4testing-documentserver-ie:5.4.1.29 on 80 port and start test example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment