#general (2022-05)
General conversations related to DevOps/Automation
General Discussions
2022-05-01
Hey everyone, give a warm welcome to our newest members!
- @Artur
- @Ishan Ji Gupta
Good to have you here =)
2022-05-02
Hey everyone, give a warm welcome to our newest members!
- @rajesh kalluri
- @Djimy Charles
- @Sabih
- @Patrick Lesher
- @Mick McGrath
Good to have you here =)
2022-05-03
Hey everyone, give a warm welcome to our newest members!
- @Aline Revell
- @Scott Spangler
- @Matt H.
- @Chandan Thakur
Good to have you here =)
2022-05-04
Hey everyone, give a warm welcome to our newest members!
- @Jatin Singhal
- @Karl Casas
- @ecody2685
- @robert.foerster
- @Marcos Meoni
- @Pablo Vittori
- @el
- @Su Sai
Good to have you here =)
2022-05-05
Hey everyone, give a warm welcome to our newest members!
- @Siddharth Sharma
- @Venkat
Good to have you here =)
2022-05-06
Hey everyone, give a warm welcome to our newest members!
- @Justin Erny
- @Gemma Hayes
Good to have you here =)
2022-05-07
Hey everyone, give a warm welcome to our newest members!
- @david.gregory_slack
- @hassan.awada
- @Jaivarsan B
Good to have you here =)
2022-05-08
Hey everyone, give a warm welcome to our newest members!
- @S.Mahesh Kumar
- @Jia Liu
Good to have you here =)
2022-05-09
Hey everyone, give a warm welcome to our newest members!
- @Andreas Axelsson
- @ben134
- @Pawel Olejniczak
- @Marius Tolzmann
- @Adam Roderick
- @Ngatia Gichuru
- @Haythem Mannai
- @Natasha Pooler
- @info641
Good to have you here =)
2022-05-10
Hey everyone, give a warm welcome to our newest members!
- @Luciano Di Giuseppe
- @Ryan
- @aos
Good to have you here =)
2022-05-11
Hey everyone, give a warm welcome to our newest members!
- @Parin Maru
- @Катерина Кучернюк
- @Andrew Z
- @Alexander Goya
- @Julieta Ansola Berreaute
Good to have you here =)
2022-05-12
Hey everyone, give a warm welcome to our newest members!
- @tyler747
- @Gitau Wairimu
- @Jack
- @Philip Clark
- @Abderrahime EL IDRISSI
- @Adam Panzer
Good to have you here =)
2022-05-13
Hey everyone, give a warm welcome to our newest members!
- @Jason Brewer
Good to have you here =)
2022-05-14
Hey everyone, give a warm welcome to our newest members!
- @Dan Merino
- @aboal3bas007
Good to have you here =)
2022-05-15
Hey everyone, give a warm welcome to our newest members!
- @dinukaw95
- @me1736
Good to have you here =)
Thanks for the welcome!
2022-05-16
Hey guys, I’m having trouble with a mysql8 container running on an m1 macbook. I have ‘~/.dockerpe/db/data/mysql8’ mounted to ‘/var/lib/mysql’, but the container keeps restarting. I’m getting ‘chown: cannot dereference ‘/var/lib/mysql/mysql.sock’: No such file or directory’ in the logs as an error. mysql.sock exists on that local directory, so everything looks right. Any ideas?
in my compose file,in docker-machine(mac)
volumes:
- "./datadir:/var/lib/mysql"
it gives
mysql_1 | chown: cannot read directory '/var/lib/mysql/': Operation not permitted
Great find. Thank you so much! That worked
db8: image: arm64v8/mysql:oracle container_name: dev-db-8 ports: - “3307:3307” restart: unless-stopped volumes: - “${DATA_DIR}/mysql8:/var/lib/mysql:cached” - “${REPO_DIR}/config/docker.cnf:/etc/mysql/conf.d/docker.cnf:cached” env_file: ~/Projects/docker-dev/.docker_env environment: - MYSQL_ROOT_PASSWORD=password
^docker compose file
This is what I see in docker inspect: Mounts /VAR/LIB/MYSQL /Users/alexandergoya/.dockerpe/db/data/mysql8
Hey everyone, give a warm welcome to our newest members!
- @Blade Black
- @Cuneyit Kiris
- @Warren Parad
- @srikanth sama
- @Jonatan Mata
- @eyimofelawal
Good to have you here =)
2022-05-17
Hey everyone, give a warm welcome to our newest members!
- @Kelly Correll
- @Jonathan Lamiel
- @Jacob Davis-Hansson
- @Hila F
- @Manjunath shetty
- @Jian Gong
Good to have you here =)
Any chance someone here is self-hosting GitLab? We’re on version 14.0.12 and I’m afraid to go to 14.10.X (via multiple jumps to 14.6 then to 14.9 per their documentation) because I read that apparently there are changes to how the CI Runner is registered with the server. Seems like a painful upgrade. Anyone went through it?
Ohhhh the woes of running your own VCS in the critical path of all development teams
The configurations of our runners are in Git, being templetized. We only had to set new tokens and apply it. Wasn’t a big deal for us:)
I self host at the current employer. On my team. Similar situation as above.
We run an Omnibus style deployment as opposed to a k8s installed variant in full transparency.
Thanks @Andrew Nazarov
If interested (I know you didn’t ask ) I have the server and runner in EC2 autoscaling. CI executors are launched using docker-machine (which is deprecated by gitlab I believe)
2022-05-18
Hey everyone, give a warm welcome to our newest members!
- @mk
- @Robert Largent
- @Lei Mao
- @Steven Miller
Good to have you here =)
2022-05-19
Hey everyone, give a warm welcome to our newest members!
- @Steven Hsu
- @tom637
Good to have you here =)
2022-05-20
Hey everyone, give a warm welcome to our newest members!
- @Nikhil Purva
- @Alex Box
- @Guru Prasad
- @Ryan Housand
- @Talal Ashraf
Good to have you here =)
2022-05-21
Hey everyone, give a warm welcome to our newest members!
- @jrade
- @Nitin
Good to have you here =)
2022-05-22
Hey everyone, give a warm welcome to our newest members!
- @sergio394
- @jayant Bhagat
Good to have you here =)
2022-05-23
Hey everyone, give a warm welcome to our newest members!
- @Dan
- @Yasitha Bogamuwa
- @Alex NOVACOVSCHI
- @Karol Kucharski
- @Dave Quinlan
Good to have you here =)
2022-05-24
Hey everyone, give a warm welcome to our newest members!
- @m.samir.yacoub
- @Daniel Kang
- @Rebecca Canner
- @Daniel Rodriguez
Good to have you here =)
2022-05-25
Hey everyone, give a warm welcome to our newest members!
- @Jonas Steinberg
- @Blair M.
- @Josh Castillo
- @Aniket
- @Jessica Lewinter
- @Chris Picht
Good to have you here =)
2022-05-26
Hey everyone, give a warm welcome to our newest members!
- @Kyle Galbraith
- @Dylan Wylie
- @Amaury Ortega
- @projectdp
- @Vasileios Siourdas
- @Colin Horgan
- @mkir
Good to have you here =)
2022-05-27
Hey everyone, give a warm welcome to our newest members!
- @Gnanendra
- @Sean
- @tim803
- @Kumail Rizvi
- @Tarak_Brainboard
- @Ryan Raub
Good to have you here =)
2022-05-28
Hey everyone, give a warm welcome to our newest members!
- @Marcelo Queiroga
Good to have you here =)
2022-05-29
Hey everyone, give a warm welcome to our newest members!
- @MalluLuke
- @Tamar Alkobi
- @Dave
- @Nifemi
Good to have you here =)
2022-05-30
Hey everyone, give a warm welcome to our newest members!
- @josiah.mokobo
Good to have you here =)
2022-05-31
Hi guys, does anyone know a simple way to log all terminal sessions? I know about bash history, but I lose history if I have multiple shell sessions running, or if I need to exec into a container. It also doesn’t display any output. When I try to google a solution, I only find discussions of people hacking together various bash scripts with various people arguing about if one thing or another is a good solution. Thanks!
i ended up just with:
PROMPT_COMMAND="${PROMPT_COMMAND%;[ *]}; history -a; history -n"
it’s not perfect, but it’s good enough for me
Do you use aws? If so, you can use ssm to ssh to instances and aws will log each session to an s3 bucket
Right now I need something for my macbook.
@RB Do you use ssm to ssh on a regular basis? I’ve always had trouble with it. Like half the time I can’t scroll up on the terminal
i read “terminal session” as “ssh session”, woops, didnt realize you wanted a generic solution that saved history across all terminal windows on your local laptop
The prompt command using history -a
that loren mentioned should work
@loren I’m a noob. Does this go in the bashrc file?
Re: always had trouble with ssm
Thats odd. I use iterm2
and infinite scroll back. I use awscli
and sshm
tools to ssm into an instance. But i can scroll all the way back. Might be a terminal setting thats causing that issue.
that’s where i put it, yeah
the other history-related settings in my bashrc:
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=9000
HISTFILESIZE=18000
@RB Ah, I didn’t even realize that you could ssm into an instance from aws cli. That sounds way better. It’s the console terminal session that I’ve always had trouble with.
ordering of commands is where things get weird when you do this… say you have two terminals open, A and B. run 3 commands in A. in terminal B, you will not immediately see those commands in scroll back. but run one command in B and your prompt will update the history automatically, so then you will see the commands from A
@loren Thank you. This is awesome. I’m surprised that someone hasn’t come up with a little utility to handle this
or say you’ve left A and B open a while, were doing a whole lot of work in A, came back to B to continue that work. the history from A updates soon as your run a command in B, and now you have to scroll waaaay back find your history from B because all the A commands are more recent
so, it’s a tradeoff
I use the history -a method too. Its only annoying if you use the up arrows for a prev command. If you use cntrl + r to go back, its easier to recall past commands from the current terminal window
oh that’s fun. i am always using history | grep
That works too!
bash and zsh shell history suggest box - easily view, navigate, search and manage your command history.
Hey everyone, give a warm welcome to our newest members!
- @Taz
- @matheusrazsre
- @James Beardon
- @Brian Mukandiwa
- @Mark Glants
- @cjsantosf
- @Matthew Baker
Good to have you here =)