#general (2022-05)

General conversations related to DevOps/Automation

General Discussions

2022-05-01

SweetOps avatar
SweetOps
07:00:01 PM

Hey everyone, give a warm welcome to our newest members!

  • @Artur
  • @Ishan Ji Gupta

Good to have you here =)

wave2

2022-05-02

SweetOps avatar
SweetOps
07:00:06 PM

Hey everyone, give a warm welcome to our newest members!

  • @rajesh kalluri
  • @Djimy Charles
  • @Sabih
  • @Patrick Lesher
  • @Mick McGrath

Good to have you here =)

wave3
2
Patrick Lesher avatar
Patrick Lesher

Thanks for the welcome!

wave2

2022-05-03

Djimy Charles avatar
Djimy Charles

Thanks @everyone !!!

wave2
SweetOps avatar
SweetOps
07:00:04 PM

Hey everyone, give a warm welcome to our newest members!

  • @Aline Revell
  • @Scott Spangler
  • @Matt H.
  • @Chandan Thakur

Good to have you here =)

1
wave2
Aline Revell avatar
Aline Revell

Thanks!

np1

2022-05-04

SweetOps avatar
SweetOps
07:00:04 PM

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 =)

wave3
1

2022-05-05

SweetOps avatar
SweetOps
07:00:04 PM

Hey everyone, give a warm welcome to our newest members!

  • @Siddharth Sharma
  • @Venkat

Good to have you here =)

wave1

2022-05-06

SweetOps avatar
SweetOps
07:00:04 PM

Hey everyone, give a warm welcome to our newest members!

  • @Justin Erny
  • @Gemma Hayes

Good to have you here =)

wave2
1

2022-05-07

SweetOps avatar
SweetOps
07:00:01 PM

Hey everyone, give a warm welcome to our newest members!

  • @david.gregory_slack
  • @hassan.awada
  • @Jaivarsan B

Good to have you here =)

2
wave1
1

2022-05-08

SweetOps avatar
SweetOps
07:00:04 PM

Hey everyone, give a warm welcome to our newest members!

  • @S.Mahesh Kumar
  • @Jia Liu

Good to have you here =)

wave1

2022-05-09

SweetOps avatar
SweetOps
07:00:02 PM

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 =)

wave2
Adam Roderick avatar
Adam Roderick

wave

1

2022-05-10

SweetOps avatar
SweetOps
07:00:03 PM

Hey everyone, give a warm welcome to our newest members!

  • @Luciano Di Giuseppe
  • @Ryan
  • @aos

Good to have you here =)

wave4
party_parrot3

2022-05-11

SweetOps avatar
SweetOps
07:00:06 PM

Hey everyone, give a warm welcome to our newest members!

  • @Parin Maru
  • @Катерина Кучернюк
  • @Andrew Z
  • @Alexander Goya
  • @Julieta Ansola Berreaute

Good to have you here =)

3
wave2
party_parrot1

2022-05-12

SweetOps avatar
SweetOps
07:00:04 PM

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 =)

3
party_parrot1

2022-05-13

SweetOps avatar
SweetOps
07:00:04 PM

Hey everyone, give a warm welcome to our newest members!

  • @Jason Brewer

Good to have you here =)

wave2
1

2022-05-14

SweetOps avatar
SweetOps
07:00:03 PM

Hey everyone, give a warm welcome to our newest members!

  • @Dan Merino
  • @aboal3bas007

Good to have you here =)

wave1

2022-05-15

SweetOps avatar
SweetOps
07:00:03 PM

Hey everyone, give a warm welcome to our newest members!

  • @dinukaw95
  • @me1736

Good to have you here =)

wave1
1
dinukaw95 avatar
dinukaw95

Thanks for the welcome!

2022-05-16

Alexander Goya avatar
Alexander Goya

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?

1
Blade Black avatar
Blade Black
        ...
        volumes:
            - ./database:/var/lib/mysql:rw
        user: mysql
        ...
1
Blade Black avatar
Blade Black

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

Alexander Goya avatar
Alexander Goya

Great find. Thank you so much! That worked

Alexander Goya avatar
Alexander Goya

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

Alexander Goya avatar
Alexander Goya

^docker compose file

Alexander Goya avatar
Alexander Goya

This is what I see in docker inspect: Mounts /VAR/LIB/MYSQL /Users/alexandergoya/.dockerpe/db/data/mysql8

SweetOps avatar
SweetOps
07:00:49 PM

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 =)

wave3

2022-05-17

SweetOps avatar
SweetOps
07:00:05 PM

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 =)

3
1
yegorski avatar
yegorski

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?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Ohhhh the woes of running your own VCS in the critical path of all development teams

1
1
Andrew Nazarov avatar
Andrew Nazarov

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:)

Stewart Henderson avatar
Stewart Henderson

I self host at the current employer. On my team. Similar situation as above.

1
Stewart Henderson avatar
Stewart Henderson

We run an Omnibus style deployment as opposed to a k8s installed variant in full transparency.

yegorski avatar
yegorski

Thanks @Andrew Nazarov

yegorski avatar
yegorski

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

SweetOps avatar
SweetOps
07:00:06 PM

Hey everyone, give a warm welcome to our newest members!

  • @mk
  • @Robert Largent
  • @Lei Mao
  • @Steven Miller

Good to have you here =)

wave2

2022-05-19

SweetOps avatar
SweetOps
07:00:08 PM

Hey everyone, give a warm welcome to our newest members!

  • @Steven Hsu
  • @tom637

Good to have you here =)

4

2022-05-20

SweetOps avatar
SweetOps
07:00:07 PM

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 =)

wave2

2022-05-21

SweetOps avatar
SweetOps
07:00:03 PM

Hey everyone, give a warm welcome to our newest members!

  • @jrade
  • @Nitin

Good to have you here =)

wave1

2022-05-22

SweetOps avatar
SweetOps
07:00:01 PM

Hey everyone, give a warm welcome to our newest members!

  • @sergio394
  • @jayant Bhagat

Good to have you here =)

2

2022-05-23

SweetOps avatar
SweetOps
07:00:04 PM

Hey everyone, give a warm welcome to our newest members!

  • @Dan
  • @Yasitha Bogamuwa
  • @Alex NOVACOVSCHI
  • @Karol Kucharski
  • @Dave Quinlan

Good to have you here =)

wave1

2022-05-24

SweetOps avatar
SweetOps
07:00:07 PM

Hey everyone, give a warm welcome to our newest members!

  • @m.samir.yacoub
  • @Daniel Kang
  • @Rebecca Canner
  • @Daniel Rodriguez

Good to have you here =)

wave1

2022-05-25

SweetOps avatar
SweetOps
07:00:05 PM

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 =)

wave2

2022-05-26

SweetOps avatar
SweetOps
07:00:03 PM

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 =)

2
3
1
1

2022-05-27

SweetOps avatar
SweetOps
07:00:09 PM

Hey everyone, give a warm welcome to our newest members!

  • @Gnanendra
  • @Sean
  • @tim803
  • @Kumail Rizvi
  • @Tarak_Brainboard
  • @Ryan Raub

Good to have you here =)

wave2
Tarak_Brainboard avatar
Tarak_Brainboard

Very happy to be hear! Thanks for the invite!

1

2022-05-28

SweetOps avatar
SweetOps
07:00:02 PM

Hey everyone, give a warm welcome to our newest members!

  • @Marcelo Queiroga

Good to have you here =)

wave1

2022-05-29

SweetOps avatar
SweetOps
07:00:04 PM

Hey everyone, give a warm welcome to our newest members!

  • @MalluLuke
  • @Tamar Alkobi
  • @Dave
  • @Nifemi

Good to have you here =)

wave2
Nifemi avatar

Hi everyone!

I’m glad to be here too. :-)

wave2

2022-05-30

Tamar Alkobi avatar
Tamar Alkobi

Hello everyone! Glad to be here

wave1
SweetOps avatar
SweetOps
07:00:05 PM

Hey everyone, give a warm welcome to our newest members!

  • @josiah.mokobo

Good to have you here =)

wave1

2022-05-31

Alexander Goya avatar
Alexander Goya

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!

loren avatar

i ended up just with:

PROMPT_COMMAND="${PROMPT_COMMAND%;[ *]}; history -a; history -n"

it’s not perfect, but it’s good enough for me

RB avatar

Do you use aws? If so, you can use ssm to ssh to instances and aws will log each session to an s3 bucket

Alexander Goya avatar
Alexander Goya

Right now I need something for my macbook.

Alexander Goya avatar
Alexander Goya

@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

RB avatar

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

RB avatar

The prompt command using history -a that loren mentioned should work

Alexander Goya avatar
Alexander Goya

@loren I’m a noob. Does this go in the bashrc file?

RB avatar

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.

loren avatar

that’s where i put it, yeah

loren avatar

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
Alexander Goya avatar
Alexander Goya

@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.

loren avatar

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

Alexander Goya avatar
Alexander Goya

@loren Thank you. This is awesome. I’m surprised that someone hasn’t come up with a little utility to handle this

loren avatar

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

loren avatar

so, it’s a tradeoff

RB avatar

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

loren avatar

oh that’s fun. i am always using history | grep

RB avatar

That works too!

bradym avatar
dvorka/hstr

bash and zsh shell history suggest box - easily view, navigate, search and manage your command history.

SweetOps avatar
SweetOps
07:00:03 PM

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 =)

wave2
    keyboard_arrow_up