Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Bring Your Own Resources #205
Merged
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
905ed11
add BYOR support
StrausMG 1c7a454
set docker-client in spawner.start
StrausMG 6515f43
fix typo
StrausMG 0e700e6
Merge branch 'master' into byor
StrausMG fec015c
avoid code duplication
StrausMG c4ea301
add animation and handling bad Docker daemons
StrausMG cb2c263
add BYOR config
StrausMG 23a3530
fix critical bug in resetting byor settings
StrausMG d6beda0
minor fix
StrausMG 5d48c5f
minor code improvemenets
StrausMG 4606899
minor code fix
StrausMG 87980a6
fix critical bug
StrausMG 92abe86
fix typo
StrausMG be55158
Merge branch 'master' into byor
StrausMG 1b2c9d5
fix loading byor options form, return the old one
StrausMG bb8ae87
Merge branch 'byor' of https://github.com/StrausMG/everware into byor
StrausMG 46a8ac7
minor fixes
StrausMG 92835db
fix BYOR config
StrausMG da9d883
move BYOR functionality to a separate class
StrausMG ec76581
fix BYOR config
StrausMG 08807ea
move initialization of options_form to __init__
StrausMG 183c60f
change the way of the initialization check
StrausMG d579b5f
Merge branch 'master' into byor
anaderi
Jump to file or symbol
Failed to load files and symbols.
Viewing a subset of changes. View all
minor code improvemenets
commit 5d48c5ffa5239d747577db817fbf45764a6e5f08
StrausMG
committed
Jun 19, 2017
| @@ -0,0 +1,87 @@ | ||
| +SPAWNER_OPTIONS_FROM = """ | ||
| +<div style="margin-bottom: 0px;"> | ||
|
|
||
| +<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="width: 50%;"> | ||
| +<input | ||
| + id="repository_input" | ||
| + type="text" | ||
| + autocapitalize="off" | ||
| + autocorrect="off" | ||
| + name="repository_url" | ||
| + tabindex="1" | ||
| + autofocus="autofocus" | ||
| + class="mdl-textfield__input" | ||
| +style="margin-bottom: 3px;" /> | ||
| +<label class="mdl-textfield__label" for="repository_input">Git repository</label> | ||
| +</div> | ||
| + | ||
| +<label for="need_remove" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" > | ||
| +<input type="checkbox" | ||
| + name="need_remove" | ||
| + class="mdl-checkbox__input" | ||
| + id="need_remove" | ||
| + checked /> | ||
| +<span class="mdl-checkbox__label">Remove previous container if it exists</span> | ||
| +</label> | ||
| + | ||
| +<label for="byor_is_needed" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" > | ||
| +<input type="checkbox" | ||
| + name="byor_is_needed" | ||
| + class="mdl-checkbox__input" | ||
| + id="byor_is_needed" | ||
| + unchecked /> | ||
| +<span class="mdl-checkbox__label">I want to run the repository on my own server</span> | ||
| +</label> | ||
| +<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | ||
| +<script> | ||
| +window.onload = function () { | ||
| + byor_is_needed = document.getElementById("byor_is_needed"); | ||
| + byor_input = document.getElementById("byor_input"); | ||
| + if (byor_is_needed.checked) { | ||
| + byor_input.style.display = "inline"; | ||
| + } else { | ||
| + byor_input.style.display = "none"; | ||
| + } | ||
| +} | ||
| +$('#byor_is_needed').on('change', function() { | ||
| + $('#byor_input').toggle(speed='normal'); | ||
| +}); | ||
| +</script> | ||
| + | ||
| +<div id='byor_input' style="display: none;"> | ||
| +<p style="margin-bottom: 0px;"> | ||
| + For a successful run <a href="https://www.docker.com/" target="_black">Docker</a> | ||
| + must be installed on your server.<br /> | ||
| + Enter ip and port of the Docker daemon running on your server.<br /> | ||
| + (Click <a href="https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-socket-option" | ||
anaderi
Owner
|
||
| + target="_blank"> | ||
| + here</a> to learn how to run Docker daemon on a particular port) | ||
| +</p> | ||
| +<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label" | ||
| + style="width: 9%; margin-right: 20px;"> | ||
| + <input | ||
| + id="byor_docker_ip" | ||
| + type="text" | ||
| + autocapitalize="off" | ||
| + autocorrect="off" | ||
| + name="byor_docker_ip" | ||
| + tabindex="1" | ||
| + autofocus="autofocus" | ||
| + class="mdl-textfield__input"/> | ||
| + <label class="mdl-textfield__label" for="byor_docker_ip">ip</label> | ||
| +</div> | ||
| +<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label" | ||
| + style="width: 9%;"> | ||
| + <input | ||
| + id="byor_docker_port" | ||
| + type="text" | ||
| + autocapitalize="off" | ||
| + autocorrect="off" | ||
| + name="byor_docker_port" | ||
| + tabindex="1" | ||
| + autofocus="autofocus" | ||
| + class="mdl-textfield__input"/> | ||
| + <label class="mdl-textfield__label" for="byor_docker_port">port</label> | ||
| +</div> | ||
| +</div> | ||
| +</div> | ||
| +""" | ||
make separate html file in share/static/html and read it instead.