dockerfile shell interactive terminal
Project description
docker sh -it
BUILDING DOCKERIFLES OVER AND OVER AGAIN WITH NO FEEDBACK AT ALL IS LIKE WEARING
THREE CONDOMS I'M TOO OLD FOR THIS SHIT I NEED TO TOUCH IT AND FEEL WHAT'S GOING
ON IN THERE OR I'LL LOSE INTEREST WHY CAN'T WE JUST CONNECT AND GET FEEDBACK AND
A RHYTHM GOING INSTEAD OF ALL THIS STOPPING AND STARTING IT'S REALLY OFF-PUTTING
AND NOT GOOD FOR ANYONE WHY NOT CONNECT TO THE CONTAINER THEN TYPE YOUR COMMANDS
IN AND WHEN THEY WORK THEY GET ADDED TO THE dOCKERFILE AND IF THEY DON'T THEY GO
IN AS COMMENTS OR SOMETHING AND IN THE BACKGROUND IT'S REBUILDING YOUR IMAGE AND
RECONNECTING READY FOR THE NEXT COMMAND OH AND HAVE IT WORK WITH THINGS LIKE add
AND copy AND STUFF THEN WHEN YOU'VE ACTUALLY GOT SOMETHING THAT WORKS YOU CAN GO
AND EDIT IT INTO SOMETHING THAT LOOKS MORE LIKE AN ACTUAL dOCKERFILE RATHER THAN
TRYING TO DO EVERYTHING UP-FRONT BEFORE YOU EVEN KNOW IF IT'S GONNA WORK INSTEAD
OF COMMUNICATING BY TELEGRAM MAYBE I SHOULD INSTALL DOCKERSHIT AND USE THAT YEAH
ITS PRETTY EASH YOU JUST TYPE `uvx dockershit` APPARENTLY AND IT'LL BE READY FOR
USE IN UNDER A SECOND AND WILL MOSTLY WORK BUT MIGHT BE BUGGY BECAUSE ITS NEWISH
AND THE DEVELOPER WROTE IT IN ANGER AND DOESN'T SEEM TO TAKE IT SERIOUSLY BUT IT
IS WORTH A TRY BECAUSE IF YOU WASTE TIME HERE AT LEAST IT IS WASTED DIFFERENTLY.
Usage
Quickest way is run it in uv (either pip install uv or follow
their instructions). Or use
pip install dockershit or pipx dockershit. It's on pypi.
⚠️ IT EDITS DOCKERFILES SO USE SOURCE CONTROL ⚠️
By default it'll create or append to a Dockerfile in your pwd. Earlier
versions also delete stuff, current ones might comment things out. Don't say
you weren't warned.
uvx dockershit ubuntu:latest
- type some commands, then
exitorquit - look in your pwd for a
Dockerfile, notice theRUNlines - they're the commands that worked (zero exit code) - commands that failed or made no changes are commented out
- arrow keys and ctrl+r work, history is in
Dockerfile.history - commands starting with a space don't get added to the file, but they do go to the .history file
- comments e.g.
# wtf delete the abovego to theDockerfileunless they start with a space i.e.# subscribe and like, like and subscribe ADD,COPYand other docker shit get added too, and the image is rebuilt between each command- if a command fails, you'll get a commented out line instead
cdchanges yourWORKDIR, andWORKDIRchanges yourcd- use
--debugif you want to see it rebuilding - if you break your
Dockerfileit'll exit (it rebuilds after every command) and currently deletes the broken line - your Dockerfile and its history are excluded from the context
- you can use it with pipe like
cat whatever | dockershit - yeah it runs everything twice, which is an embarrassment - in future I'll make it just run in docker, but pull requests are welcome
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dockershit-0.1.3.tar.gz.
File metadata
- Download URL: dockershit-0.1.3.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d63ad536780fa4885c43a79de9e129c15c11747fe77e26475992776d92dbe2dd
|
|
| MD5 |
db450b3fbbdf08d848316a5e14335949
|
|
| BLAKE2b-256 |
753d79a74a3ecab71c2b1d8299cb08766e645f2f45953bcc3a2028a54c56aa2b
|
File details
Details for the file dockershit-0.1.3-py2.py3-none-any.whl.
File metadata
- Download URL: dockershit-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b337184cf56c24de7b8329189bd1e970fa4c79ecf25a59b35b8930ed741e23b
|
|
| MD5 |
f8c984b0a78cba1b2dc2714455fae9da
|
|
| BLAKE2b-256 |
810b4567c30aa4410323c99b53a5f31414960b9006ed70d5f2adf4f9f20c31fe
|