Last active
November 21, 2020 08:14
-
-
Save ShockwaveNN/3d6e7112f371634d27ab1b79215ed467 to your computer and use it in GitHub Desktop.
Snippet for easy run of documentserver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installation
Install by copy to
~/bin/
and reloading terminal sessionUsage
docserverrun 5.4.1.29
- download and runonlyoffice/4testing-documentserver-ie:5.4.1.29
on 80 port and start test example