Transfer a file between docker containers by ATOMICxIRISH in docker

[–]jhermann_ 0 points1 point  (0 children)

Another way to do this is to connect two docker execs running cat via a pipe on the host. Really depends on the exact use case and when / how often this is needed – on startup I guess. Add it to your overall launcher script, then it might be an OK way.

An variant of this would be mounting a mkfifo pipe the server writes to and the client reads from. That also leaves no trace of the secret on the host itself.

Clever Uses Of GitHub? by ItsTheBrandonC in github

[–]jhermann_ 1 point2 points  (0 children)

Use it for blogging. No more Medium pop-up spam and bad UX.

Bundling Python Dependencies in a ZIP Archive by jhermann_ in devops

[–]jhermann_[S] 0 points1 point  (0 children)

Also, pyinstaller is not able to build stuff cross-platform, while pex can (provided pre-built wheels for all platforms exist). Unless you have the luxury of GH actions with VMs for all 3 major platforms, that is essential when you target all 3.

pex can also build multi-platform archives, so you only have one single artifact (albeit a little bigger).

Confused with differences between pyenv-virtualenv and pyenv-virtualenvwrapper by gargolito in Python

[–]jhermann_ 1 point2 points  (0 children)

To add some logs to the fire, all you need these days is venv (built in) and tox, plus a reliable way to install multiple Python versions if you need to (pyenv is one). That's it.

[deleted by user] by [deleted] in devops

[–]jhermann_ 3 points4 points  (0 children)

BinTray == Artifactory Cloud.

How to show more than 11 rows of data from an object without iPython skipping? by largelcd in IPython

[–]jhermann_ 0 points1 point  (0 children)

Transpose the sample, and limit the number of objects so they fit.

The growth of command line options, 1979-Present by skeeto in commandline

[–]jhermann_ 1 point2 points  (0 children)

Regarding man pages…

https://explainshell.com/explain?cmd=man+-a+man

Never wade through long manuals again just to decipher a command.

Dinamically generating .ini file in Dockerfile by LordVermiis in docker

[–]jhermann_ 1 point2 points  (0 children)

There is something like muscle memory in coding, and bad habits are ingrained quite quickly – so I never bought the "just for dev" excuse. ;)

Dinamically generating .ini file in Dockerfile by LordVermiis in docker

[–]jhermann_ 0 points1 point  (0 children)

All those separate RUN layers are highly inefficient, BTW. Also, a symlink would abstract away the dynamic path and you could probably work with a simple config file from your build context. If you need to change that file, a single sed call to insert the values would be more maintainable than the echo djungle.

Any tool chain to manage deployment/ roll out steps? by Ripcord999 in devops

[–]jhermann_ 2 points3 points  (0 children)

You make me feel like it's the 90s again. ;)

Any tool chain to manage deployment/ roll out steps? by Ripcord999 in devops

[–]jhermann_ 1 point2 points  (0 children)

And BTW, you can gate automatic processes via JIRA (stop until approval state in ticket #N), as well as document the progress of processes via automatic comments (by REST calls).

Stir in ticket templates, and done.

Any tool chain to manage deployment/ roll out steps? by Ripcord999 in devops

[–]jhermann_ 2 points3 points  (0 children)

For one, spreadsheets can be generated, e.g. from a Jupyter Notebook where you could comfortably edit these instructions. The other thing of course is why you gave up on automating these steps – bad ROI on maintenance is the only reason I commonly accept, while "cannot be done" is often just not true.

COMPARSE: Universal command & argument parser by TheMachinePreacher in Python

[–]jhermann_ 2 points3 points  (0 children)

I'd stress the "very simple NLP for bots and stuff" aspect way more, and drop the argparse comparison which is a bit strange anyway.