meltwater / lighter Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED Marathon deployment automation tool
License: MIT License
DEPRECATED Marathon deployment automation tool
License: MIT License
Hi,
I encrypted an api key using secretary as follows:
echo -n <some_api_key> | ../../secretary encrypt
Then I placed this encrypted key in a yaml file and ran lighter verify:
./lighter verify /path/tomy/config/config.yml
I am getting the following error:
RuntimeError: The env var 'bugsnag.apiKey' is not a valid shell script identifier and not supported by Secretary. Only alphanumeric characters and underscores are supported, starting with an alphabetic or underscore character.
Not sure if this is a secretary issue or lighter, but I thought I would file an issue here to get some help. Thank you for your time.
Could this project be reorganized into a real python package? It's many times easier for users to work with.
Make a new repo from /src
Make a setup.py file in the root directory:
from setuptools import setup
setup(
name='lighter',
version='1.0.0',
packages=['lighter'],
scripts=[
'scripts/lighter',
],
install_requires=[
'autopep8',
'joblib',
'mock',
'flake8',
'pyinstaller',
'pynacl',
'pyyaml',
'requests',
'packaging',
'cffi',
],
)
Make a scripts/lighter file:
#!/usr/local/bin/python
import lighter.main as lighter
lighter.main()
Alter the lighter/main file:
Replace:
if __name__ == '__main__':
With:
def main():
At the end of the file, add:
if __name__ == '__main__':
main()
Once submitted to pypi, users can easily install it on their machine with pip alone.
Here is an example of what the entire repo would look like:
lighter.zip
The instance count of a Marathon service can be modified by some other actor (e.g. manually or by an auto-scaler). Currently Lighter would overwrite the custom instance count on the next deployment.
Enable Lighter to preserve the custom instance count if it's externally changed. Lighter should still modify the instance count if it's not externally changed.
Example algoritm
Hi all,
sorry if this title sounds a little offensive, but trying to get it to run feels slightly backstabbing. However, I am looking for a good deployment tool (ideally CLI) that we can use on top of our Marathon/Mesos cluster(s) and from the first look, lighter
seems like a very good idea.
However, I noticed quite a few pains.
Dockerfile
is not working at all and poorly respecting best practices/commone.sh
and /lighter
and /test
use set -x
, something you should only do while debugging your code - not in production.I'd be willing to provide some PRs, however, I have proven zero knowledge in Python, also, done 3-liner PRs feels like we're all better off if you just $EDITOR $thefile && git commit -a && git commit
yourself. Please correct me, if I can still be at help.
Last but not least,
will you continue using lighter
in our own (production??) environment, or what will the expected TTL be?
Many thanks, and looking forward for your reply,
Christian.
If I set a property to say an integer and at same time use an encrypted property lighter's verify command fails with a hard-to-understand error message.
Ex:
env:
secret_password: '...'
numeric.property: 1
Just like what Lighter can already do for DataDog
http://obfuscurity.com/2014/01/Graphite-Tip-A-Better-Way-to-Store-Events
Purpose is to fail continuous deployment jobs when a deployment/rollout fails to complete.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.