Skip to content

Instantly share code, notes, and snippets.

View zeitounator's full-sized avatar

Olivier Clavel zeitounator

View GitHub Profile
$ tree
.
└── inventories
├── children.yml
├── host.yml
├── otherhosts.yml
└── shared.yml
1 directory, 4 files
$ docker run -it --rm ubuntu:22.04 bash -c "apt-get update && apt-get install -y lynx && apt-cache policy lynx"
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:3 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [631 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [944 kB]
Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [683 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [43.2 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
$ docker run -it --rm python:3.10-alpine pip install alembic==1.11.1
Collecting alembic==1.11.1
Downloading alembic-1.11.1-py3-none-any.whl (224 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 224.5/224.5 kB 5.2 MB/s eta 0:00:00
Collecting Mako
Downloading Mako-1.2.4-py3-none-any.whl (78 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.7/78.7 kB 15.2 MB/s eta 0:00:00
Collecting SQLAlchemy>=1.3.0
Downloading SQLAlchemy-2.0.16-cp310-cp310-musllinux_1_1_x86_64.whl (2.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 20.1 MB/s eta 0:00:00
$ ansible --version
ansible [core 2.14.2]
config file = None
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
executable location = /home/user/.local/bin/ansible
python version = 3.9.5 (default, Nov 23 2021, 15:27:38) [GCC 9.3.0] (/usr/bin/python3.9)
jinja version = 3.1.2
libyaml = True
$ cat Dockerfile
FROM jupyter/scipy-notebook
RUN pip install mlflow
RUN pip install sklearn
USER root
RUN apt-get update && apt-get install -y curl
# Switch back to jovyan to avoid accidental container runs as root
# Note: all names prefixed with `my_` to prevent
# any conflicts on my local machine
$ docker volume create my_mysql
my_mysql
$ docker volume create my_mysql_config
my_mysql_config
$ docker network create my_mysqlnet
$ cat docker-compose.yml
---
services:
sonarqube:
image: ${SONAR_IMAGE}
command: "-Dsonar.search.javaAdditionalOpts=-Dnode.store.allow_mmap=false"
ports:
- "9000:9000"
$ export SONAR_IMAGE=sonarqube:10.0-developer
# Note: this is an exact copy/paste from the question
$ cat test.yml
- hosts: all
name: check patching
gather_facts: 'no'
tasks:
- name: Get list
win_shell: >-
(New-Object -ComObject
Microsoft.Update.Session).CreateupdateSearcher().Search(“IsHidden=0 and
$ ls -l testSO.sh
-rwxr--r-- 1 olcla users 75 mai 22 11:43 testSO.sh
$ cat testSO.sh
#! /usr/bin/env bash
docker exec testSO bash -c "stat -c '%U' /etc/passwd"
$ docker run -d --rm --name testSO ubuntu:latest tail -f /dev/null
f3b812df7bb35eafb2f2c2b144280329e9fa90539845861c619a460465badafb
$ ansible-galaxy collection install -U openstack.cloud --force -vvv
ansible-galaxy [core 2.14.2]
config file = None
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
executable location = /home/user/.local/bin/ansible-galaxy
python version = 3.9.5 (default, Nov 23 2021, 15:27:38) [GCC 9.3.0] (/usr/bin/python3.9)
jinja version = 3.1.2
libyaml = True