SebastianM6L, to jenkins
@SebastianM6L@mastodon.social avatar

Anyone had an issue with from django.test import Client causing a high memory usage in a docker container?

I run the tests in a pipeline using a agent in .

When this test runs:

def test_login_user(self):  
 c = Client()  
 response = c.post('/user/login/', {'email': 'test1@test.de', 'password': 'test123'})  
self.assertEqual(response.status_code, 302)  

The memory usage goes thru the roof. Literally using up all memory until it crashes.

wloczykij, to linux Polish

Mamy tu jakiś speców od Dockera?
Próbuję skonfigurować dockera używając podmana i udało mi się uruchomić kontener i podpiąć katalog z hosta do kontenera, ale sieci nie ogarniam.
Kontener jest uruchomiony na zwyklym uzytkowniku na serwerze. Działa dostęp do DNS i webowki z laptopa, ale z androida juz nie i nie mam pojecia co jest. Jak zmieniam dns na telefonie, to wifi krzyczy, ze niema neta.
Ta adresacja takze jest dla mnie jakas dziwna. LAN ma adresacje 192.168.X.X, a kontener ma siec 10.X.X.X.

Juz chyba wszystkiego probowalem. Wylaczylem firewalla na serwerze i chyba wszystko co blokuje reklamy na androidzie, ale nadal dupa.

Jakby kogos interesowalo, to probuje skonfigurowac "Technitium DNS Server"










leanpub, to devops
@leanpub@mastodon.social avatar

Docker Deep Dive: Zero to Docker in a single book! https://leanpub.com/dockerdeepdive by Nigel Poulton is the featured book on the Leanpub homepage! https://leanpub.com

sanjaymenon, (edited ) to homelab
@sanjaymenon@mastodon.social avatar
atareao, to mastodon Spanish
@atareao@mastodon.social avatar

Federación con GoToSocial en Docker n
Como levantar de forma sencilla tu propio servicio de ligero y federar con utilizando y en

Escucha: https://atareao.es/podcast/federacion-con-gotosocial-en-docker/
Feed: https://atareao.es/mp3-feed/

symfonystation, to php
@symfonystation@newsletter.mobileatom.net avatar
apps, to fediverse
@apps@toot.fedilab.app avatar

#FediPlan has been updated to 1.2.0

  • Detects instance limits
  • Timezone is stored in session
  • Fix #Pleroma issues
  • Fix polls not removed when hidden
  • Three new languages (pl, uk and ru)
  • Works with PHP 8.2+ (with Symfony 7+)
  • Installation possible with #Docker

https://plan.fedilab.app/

social, to Switzerland
@social@social.diva.exchange avatar

🎉 Latest release available: v2.52.0 https://github.com/diva-exchange/i2p

Available as here: https://hub.docker.com/r/divax/i2p

🙏 😀 to devs all over the world .

🚨 Reminder: discover new validation algos at University of Applied Science, https://social.diva.exchange/@social/112435041794373888

XeroLinux, to foss
@XeroLinux@fosstodon.org avatar

My new container home page. It's called "Flame" it's so damn simple it's lovely.. Thanks to @thelinuxcast for telling about this one ;)

bradwilson, to windows
@bradwilson@mastodon.social avatar

Found my first issue with using a Dev Drive, and wanting to have access to it from WSL: apparently the way Dev Drives mount in Windows is not compatible with the WSL auto-mounting.

Why does this matter? Docker Desktop (in WSL 2 mode) can't mount a Dev Drive folder.

Do I dump WSL 2 mode for Docker? Or do I dump Dev Drive? Tough choice, but I suspect I dump the Dev Drive.

In WSL 2, /mnt/c/Dev gets an I/O error because "cannot read symbolic link".
Trying to mount C:\Dev on Docker in Windows (running in WSL 2 mode) claims it can't create /run/desktop/mnt/host/c/Dev because the file exists (but in reality, the error is that it can't read that folder from WSL).

governa, to random
@governa@fosstodon.org avatar

How to Install Tiny Tiny RSS Using #Docker on PC (Ultimate Guide)

https://linuxtldr.com/tiny-tiny-rss/

leanpub, to devops
@leanpub@mastodon.social avatar

Learn Kubernetes & Docker - .NET Core, Java, Node.JS, PHP or Python by Arnaud Weil is free with a Leanpub Reader membership! Or you can buy it for $11.99! http://leanpub.com/k8s

ramikrispin, to datascience
@ramikrispin@mstdn.social avatar

In the past few months, I created a bunch of Docker 🐳 tutorials covering random topics, from a fun setting for a Python 🐍 environment on the CLI to advanced topics such as multi-stage builds 🏗️. I organized all the tutorials under one folder, and I plan to keep updating this folder with future-related ones 😎.

Currently on my Docker tutorial TODO list:
➡️ Docker ENTRYPOINT vs CMD
➡️ Docker multi-architecture build

🔗 https://medium.com/@rami.krispin/list/docker-21408ce79e6a

Enjoy!

#docker #DataScience #vscode #mlops

gamey, to random German
@gamey@chaos.social avatar

Is there any good Blog post to learn customization with relatively limited knowledge about ? I don't like the idea of a distro that I can't customize easily so normal doesn't sound like my favorite choice but uBlue, and similar approaches sound very tempting and I love the concept of distros in general! Also, do you think it's easy enough to learn to imediately switch my main computer over or should I do some more testing in VMs first?

ramikrispin, to vscode
@ramikrispin@mstdn.social avatar

Getting started with the Dev Containers extension 🚀👇🏼

The Dev Containers extension is the main reason I moved to VScode, as it provides a native and seamless integration of Docker 🐳. I started to work on a sequence of tutorials focusing on the VScode Dev Containers extension. The first tutorial on the sequence focuses on getting started with the Dev Containers extension;

🔗: https://medium.com/towards-data-science/getting-started-with-the-dev-containers-extension-a5ea49abfc34

#vscode #docker #DataScience #mlops

geekymalcolm, to random
@geekymalcolm@ioc.exchange avatar

Nice to see my snowflake docker container being useful to some people!

dave, to random
@dave@puz.fun avatar

Anyone here have experience updating a Dockerized Perl application? Specifically I am looking for help upgrading the app from 5.26 to 5.30 and how to rectify errors where some libraries (I think?) were built for Perl 5.26 and won't work under 5.30?

joe, to random

Yesterday, I wrote about how I moved a mastodon bot from Pipedream to a docker container. Docker is an efficient way of running isolated little scripts like that. Today, I wanted to review some basic debugging techniques to ensure your script runs as expected.

What docker images exist on the system?

When we looked at how to dockerize a node app, I said that you create a docker image and then run it as a container. So, how do you list the docker images on a system? You run docker images.

https://i0.wp.com/jws.news/wp-content/uploads/2024/05/Screenshot-2024-05-04-at-12.37.35%E2%80%AFPM.png?resize=1024%2C856&ssl=1

What docker containers exist on the system?

If you run docker ps, you can get what containers are running, and if you run docker ps -a, it will include containers that aren’t running.

https://i0.wp.com/jws.news/wp-content/uploads/2024/05/Screenshot-2024-05-04-at-12.46.33%E2%80%AFPM.png?resize=1024%2C856&ssl=1

How do you access a container’s shell?

Like a VM or a system running on bare metal, you can get a shell inside of the docker container. The first step is knowing the container ID for the container you want a shell for. If you look at the output from the docker ps command, you can find it.

https://i0.wp.com/jws.news/wp-content/uploads/2024/05/Screenshot-2024-05-04-at-12.46.33%E2%80%AFPM-2.png?resize=1024%2C856&ssl=1

At this point, you run docker exec -it [container id] /bin/sh to get a shell inside the container.

https://i0.wp.com/jws.news/wp-content/uploads/2024/05/Screenshot-2024-05-04-at-1.12.14%E2%80%AFPM.png?resize=1024%2C856&ssl=1

Once you know that the image is there, know if it is running or not, and have a shell inside the container, you should be able to find what is wrong with your container.

Have a questions, comment, etc? Feel free to drop a comment, below.

https://jws.news/2024/debugging-a-docker-container/

#Docker

wyri, to random
@wyri@haxim.us avatar

Another reason to run things such as #RabbitMQ as a cluster: If the #Docker image is missing the #arm64 arch one pod will stay pending while the continues working

joe, to mastodon

Back in 2022, I created “Good Morning, Milwaukee!“. It is a bot that posts every day at 6 am with the weather, the times for sunrise and sunset, and a photo from around the city. When I first wrote it, I wrote it in Node and put it up on Pipedream. Lately, there have been some issues with the weather API that it was using, so I decided to replace it with the OpenWeather API but I figured that while I was at it, I would rewrite it in Python, dockerize it, and run it on my new home lab server.

Let’s start with what the actual Python script looks like.

If you want to reuse this code to create your own bot, there are variables at the top for api_key, zip_code, and mastodon_access_token. The actual posting is done using Mastodon.py.

So, what would the Dockerfile look like?

You’ll notice that it also needs a requirements.txt and a crontab file. Lets see what those look like.

Just make sure that you have a newline at the end of your crontab file. At this point, you can run docker build -t gmmke-app . to build the docker image and then run docker run -d gmmke-app run the container.

https://i0.wp.com/jws.news/wp-content/uploads/2024/05/Screenshot-2024-05-03-at-3.24.33%E2%80%AFPM.png?resize=1024%2C856&ssl=1

With that, it is going to post once when you create the container and then daily at 6:00 AM (Milwaukee time).

Have any questions, comments, etc? Feel free to drop them, below.

https://jws.news/2024/i-rewrote-good-morning-milwaukee-in-python/

#Docker #Mastodon #Python

governa, to random
@governa@fosstodon.org avatar

How to Install Tiny Tiny RSS Using on PC (Ultimate Guide) :rss:

https://linuxtldr.com/tiny-tiny-rss/

ramikrispin, to random
@ramikrispin@mstdn.social avatar

Another great reason why R users should use Docker 🐳 - Airflow 😎

#rstats #docker #airflow

pandoc, to random
@pandoc@fosstodon.org avatar

The images had been experiencing some bit-rot, but have been updated and are back in service now. The images include the latest release (3.1.13) and the current development version. They continue to be available in the four flavors minimal, core, latex, and extra.
images now ship with 2024.

https://hub.docker.com/r/pandoc/minimal
https://hub.docker.com/r/pandoc/core
https://hub.docker.com/r/pandoc/latex
https://hub.docker.com/r/pandoc/extra

linuxiac, to ubuntu
@linuxiac@mastodon.social avatar

Install Docker effortlessly on Ubuntu 24.04 LTS (Noble Numbat) with our expert, easy-to-follow guide. Perfect for beginners and pros alike.
https://linuxiac.com/how-to-install-docker-on-ubuntu-24-04-lts/

sirber, to php
@sirber@fosstodon.org avatar

I started a prototype of a framework-less #php architecture, using #docker, on my playground. Separated public and private files, enabled autoloading using composer and PSR-4. It's fun! 😀

https://gitlab.com/sirber/playground/-/tree/main/php/pure?ref_type=heads

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • rosin
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • tacticalgear
  • slotface
  • Durango
  • khanakhh
  • kavyap
  • megavids
  • everett
  • vwfavf
  • normalnudes
  • osvaldo12
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ngwrru68w68
  • anitta
  • provamag3
  • tester
  • modclub
  • JUstTest
  • All magazines