Comments (10)
Still relevant. I can help with design, not with code, since now in Ruby :-P
from workshopper.
To enable this feature variable DYNAMIC_USER_NAME
has to be defined.
User name will be USER_NAME
variable suffixed with an auto-incrementing number.
If NUM_USERS
variable is provided, the system will throw error when the generated number reaches the limit.
Password is static defined through the USER_PASSWORD
variable.
from workshopper.
I would rather get these values in new variables, and make it possible to reassign to the existing ones.
Something like:
DYNAMIC_USER_NAME=user%02d (format for the number)
The previous format would allow to have the number formatted to 2 digits, 3 digits, ... depending on the size of the workshop.
And then, in the regular vars for the workshop, we could use, re-assignment:
USER_NAME={{DYNAMIC_USER_NAME}}
PASSWORD for the time being, as it's being static, would be possible kept as it is.
These would prevent breaking changes when the option is activated.
from workshopper.
I like the idea with formatting, and IMHO OK to enforce it, so that
if DYNAMIC_USER_NAME
is defined then USER_NAME
is going to behave as a template as per
https://ruby-doc.org/core-2.5.0/Kernel.html#method-i-sprintf
with one argument being passed in.
from workshopper.
DYNAMIC_USER_NAME
var would be both the format for generating usernames and also the generated username?
Why do we need to cap the number of usernames generated?
from workshopper.
DYNAMIC_USER_NAME
is just a marker to enable the behaviour
USER_NAME
has the format
You do not have to, if NUM_USERS
is not provided or is 0
then it will go till it OOMs.
from workshopper.
I don't think NUM_USERS
is needed to be implemented. It should just act as a counter. How many users are available is not really relevant to workshopper.
Would that be implemented using an embedded db?
from workshopper.
@siamaksade we already have it, have just reused it.
https://github.com/openshift-labs/starter-guides/blob/master/_modules.yml#L27
from workshopper.
what's the state on this @siamaksade @jorgemoralespou ?
from workshopper.
@marekjelen, what do you mean? If this is still relevant? Yes. If there's been test? No, but if it's testable I'll go ahead and give feedback
from workshopper.
Related Issues (20)
- Documentation HOT 3
- Add scroll to "table of contents" HOT 5
- Clipboard vs. navigation HOT 1
- Add different indicator of copy and paste HOT 1
- Make issues configurable per workshop HOT 1
- Ctrl-C does not stop the process HOT 2
- Add a flag to log output to stdout for debugging HOT 1
- Add /healthz endpoint (or similar) HOT 4
- Support workshops with alternate labs
- Ability to supply custom CSS or JS HOT 6
- (Markdown) Allow setting image size
- Variables are not replaced HOT 1
- copypaste css no longer works in latest builds HOT 1
- workshopper not rendering certain variables HOT 1
- Create workshopper image in OpenShift
- support reload with docker image
- Calculate CONTENT_URL_PREFIX if not specified and 'content.url' not set in workshops file. HOT 1
- asciidoctor-reveal.js
- Install issue in openshift
- [RFE] Don't parse variables escaped with pass macro HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workshopper.