I recently encountered a bug that only appeared in our ubuntu CI
server but not in my local dev environment, which is a mac. After
unsuccessfully trying out 2, 3 things (pushing, waiting for the
pipelines) I thought “there must be a better way, a way to test this
locally”. Of course, docker comes to mind.
It’s actually really easy to set up linux on your mac without bending
over backwards! You’ll simply need a command like this:
docker run -it --volume /path/to/repo:/repo ubuntu bash
or if you have a specific image on your CI like in my case
docker run -it --volume /path/to/repo:/repo runnerimage bash
What’s happening here:
- The repository volume is mapped in, so you can reproduce what’s
happening in linux
- You’re starting an interactive session with
-it
: It’s
basically attaching you to the container. It’s
--interactive + --tty
.
If you lose the connection to the container you can reattach to it
with
docker exec -it container_name_or_id bash
Dear Devs:
You can help Ukraine🇺🇦. I opted for (a) this message and (b) a
geo targeted message to Russians
coming to this page. If you have a blog, you could do something similar, or you can link to a donations page.
If you don't have one, you could think about launching a page with uncensored news and spread it on Russian
forums or even Google Review. Or hack some
russian servers. Get creative.
#StandWithUkraine 🇺🇦
Dear russians🇷🇺. I am a peace loving person from Switzerland🇨🇭. It is without a doubt in my mind, that your
president, Vladimir Putin, has started a war that causes death and suffering for Ukrainians🇺🇦 and
Russians🇷🇺.
Your media is full of lies. Lies about the casualties, about the intentions, about the "Nazi Regime" in Ukraine.
Please help to mobilize your people against your leader. I know
it's dangerous for you, but it must be done!
Promo
I've built some fun mini-games for kids with Svelte, so if you have some, make sure to check it out! :) Approximate code can be found
here.