Software Development and Programming Careers (Official Discussion Thread)

Regular Developer

All Star
Supporter
Joined
Jun 2, 2012
Messages
2,153
Reputation
355
Daps
5,214
Reppin
NJ
I used docker for the first time last month. Do you know of any good vids to help me improve my skills with it?
hmmm, lets see... So I'll try to do a little knowledge dump. My main base I would say was a beginner docker course on acloudguru or the other one (im drawing a blank). Then I'd say here : Orientation and setup

There's like a couple different topics when talking about docker:
  • Docker Desktop (windows and mac only)
  • Docker CLI
  • Windows vs Linux containers
  • Dockerhub - docker image manager (or maybe container, i always mix up the image and container terms)
  • Dockerfile - Instructs docker how to build a container
  • Docker Compose - Allows you to run multiple containers together as a group (useful for local dev environments)
  • Networking and Ports - important to know for intra container communication as well as external communication
  • Clusters (Swarm, Kubernetes, etc) - how to manage multi-node deployments for your containers
    • Helm charts - kind of like docker compose, but at a cluster level

Kubernetes is probably one of the more major topics in here because it deals with multi-node depoyments of containers and I think Google originally created it. I've only ever dealt with linux containers, and I think that actually might be the norm. So you'll want to be familiar with lunix command line. I'll also throw in a bonus topic of "Snyk" which actually can scan your container and inform you of security vulnerabilities

Some of the best practices I've come across, and please google any of these topics, but a good course or tutorial should get you started:
  • Use .env files to let your docker container create env variables
  • Make sure to create a variable for a container's listen port and publish port. The listen port tells the container to listen on this port, the other port will map that port so externally you can reference it.
    • Example: Postgres databases usually use port 5432, but if you have multiple instances of pg locally, you may want to change the publish/target port so that you can have both running at the same time
  • For db images, make sure you map the volume where data is kept to your local system, so that when you stop and start the container, the data persists
  • Please take advantage of this being a image as code, and use GIT or subversion
  • Also keep in mind that if you want to run CICD pipelines, they use containers as well, so this can allow you to create a container that your pipeline is able to run and hand everything it needs to run tests, compile code, deploy code, or anything else you might want to automate based on a code push
 
Last edited:
Joined
Apr 3, 2014
Messages
47,219
Reputation
10,880
Daps
202,839
hmmm, lets see... So I'll try to do a little knowledge dump. My main base I would say was a beginner docker course on acloudguru or the other one (im drawing a blank). Then I'd say here : Orientation and setup

There's like a couple different topics when talking about docker:
  • Docker Desktop (windows and mac only)
  • Docker CLI
  • Windows vs Linux containers
  • Dockerhub - docker image manager (or maybe container, i always mix up the image and container terms)
  • Dockerfile - Instructs docker how to build a container
  • Docker Compose - Allows you to run multiple containers together as a group (useful for local dev environments)
  • Networking and Ports - important to know for intra container communication as well as external communication
  • Clusters (Swarm, Kubernetes, etc) - how to manage multi-node deployments for your containers
    • Helm charts - kind of like docker compose, but at a cluster level

Kubernetes is probably one of the more major topics in here because it deals with multi-node depoyments of containers and I think Google originally created it. I've only ever dealt with linux containers, and I think that actually might be the norm. So you'll want to be familiar with lunix command line. I'll also throw in a bonus topic of "Snyk" which actually can scan your container and inform you of security vulnerabilities

Some of the best practices I've come across, and please google any of these topics, but a good course or tutorial should get you started:
  • Use .env files to let your docker container create env variables
  • Make sure to create a variable for a container's listen port and publish port. The listen port tells the container to listen on this port, the other port will map that port so externally you can reference it.
    • Example: Postgres databases usually use port 5432, but if you have multiple instances of pg locally, you may want to change the publish/target port so that you can have both running at the same time
  • For db images, make sure you map the volume where data is kept to your local system, so that when you stop and start the container, the data persists
  • Please take advantage of this being a image as code, and use GIT or subversion
  • Also keep in mind that if you want to run CICD pipelines, they use containers as well, so this can allow you to create a container that your pipeline is able to run and hand everything it needs to run tests, compile code, deploy code, or anything else you might want to automate based on a code push





Thank you bro. Gonna start on this today
 
Joined
Apr 3, 2014
Messages
47,219
Reputation
10,880
Daps
202,839
In my experience you have to be very hands on with Docker to really improve. A lot of videos will avoid typical errors. Like an easy gotcha is scripts lose execution privileges when copied in via the Dockerfile. So you always have to have a mechanism to fix that.



Thank you bro. I'll work in it as I do the stuff that @Regular Developer mentioned
 

Regular Developer

All Star
Supporter
Joined
Jun 2, 2012
Messages
2,153
Reputation
355
Daps
5,214
Reppin
NJ
Thank you bro. I'll work in it as I do the stuff that @Regular Developer mentioned
Just wanted to also add, like programming package managers, dockerhub as a bunch of already made images that people have put together/maintain. You can find some good ones, and either use as is, or modify with the dockerfile, since every dockerfile's first line is

Code:
FROM <image-name>:<tag>

Images for databases. Image already made with python. Image already made for nodejs development. Image made for airflow. Just to name a few.

 
Joined
Apr 3, 2014
Messages
47,219
Reputation
10,880
Daps
202,839
Just wanted to also add, like programming package managers, dockerhub as a bunch of already made images that people have put together/maintain. You can find some good ones, and either use as is, or modify with the dockerfile, since every dockerfile's first line is

Code:
FROM <image-name>:<tag>

Images for databases. Image already made with python. Image already made for nodejs development. Image made for airflow. Just to name a few.





Thank you bro. This really helped. Im actually doing some docker training right now.
 

Obreh Winfrey

Truly Brehthtaking
Supporter
Joined
Nov 18, 2016
Messages
16,027
Reputation
23,073
Daps
111,245
Gotcha. Thank you too bro. I feel like I'm almost ready to add docker to my LinkedIn.
If you can build an image, run a container, open the ports, and exec onto it, you're above the riffraff. When you understand the lifecycle and can troubleshoot container failures, you're solid enough. Once you throw kubernetes in the mix and get comfortable playing with that, you're damn near a god. At least where I work :mjlol:. I still get messaged by my old team to help them troubleshoot even though I left them plenty of materials with visuals for all the common pitfalls
 
Joined
Apr 3, 2014
Messages
47,219
Reputation
10,880
Daps
202,839
If you can build an image, run a container, open the ports, and exec onto it, you're above the riffraff. When you understand the lifecycle and can troubleshoot container failures, you're solid enough. Once you throw kubernetes in the mix and get comfortable playing with that, you're damn near a god. At least where I work :mjlol:. I still get messaged by my old team to help them troubleshoot even though I left them plenty of materials with visuals for all the common pitfalls





The ports is what I'm trying to tighten up on right now. Watching a networking video that goes into a deep dive on ports at the moment.
 

Mike809

Superstar
Supporter
Joined
Oct 15, 2015
Messages
10,330
Reputation
2,135
Daps
50,864
Reppin
Bronx
I'm really frustrated with my internship.

Only been there a week now, and already got assigned a ticket that I'm supposed to be done by this Friday but I already told them that aint happening.

And the thing is , that the ticket ain't even about coding . I wish it was actual coding so I could get an error code and debug and such , but it's about filling out a .yaml file for each one of their projects (which I don't know how many there is) with information that's only known to people that work for that company.

So I have to create a branch out of each one of this projects, open a pull request and submit the .yaml file with the information I could gather and wait to hear from the owners of those repos .

Like I'm able to fill out these files with the basic information I'm able to get , but some of the information you could only know if you worked on that specific project or been In the company.

I got assigned my internship project ticket on Jira, which I'm more excited about since its actually coding and being able to google stuff and ask my coworkers about.
 
Joined
Nov 12, 2014
Messages
19,691
Reputation
1,996
Daps
33,273
Reppin
uk/de
I'm really frustrated with my internship.

Only been there a week now, and already got assigned a ticket that I'm supposed to be done by this Friday but I already told them that aint happening.

And the thing is , that the ticket ain't even about coding . I wish it was actual coding so I could get an error code and debug and such , but it's about filling out a .yaml file for each one of their projects (which I don't know how many there is) with information that's only known to people that work for that company.

So I have to create a branch out of each one of this projects, open a pull request and submit the .yaml file with the information I could gather and wait to hear from the owners of those repos .

did you test your changes before the "PR's"?

able to google stuff and ask my coworkers about.

books too. they want to see initiative so the more you learn about a topic the better.

-

be careful. a stream of incorrect guesses is a good way to get a one way ticket out of there.

did you catalogue your changes before passing the ball back to whomever have you the task?
 
  • Dap
Reactions: F K

cobra

Superstar
Supporter
Joined
Apr 24, 2017
Messages
8,567
Reputation
-1,230
Daps
40,708
just got an offer from a major investment bank
35k bump in compensation

however, I am concerned about the coming recession. joining a financial company as a new employee may be risky
also, wlb at my current company is great...not sure about software dev wlb at investment banks however, i think it is better than sweatshops like amazon

what should i do, brehs
 
Last edited:

F K

All Star
Joined
Jan 13, 2017
Messages
3,199
Reputation
480
Daps
10,087
just got an offer from a major investment bank
35k bump in compensation

however, I am concerned about the coming recession. joining a financial company as a new employee may be risky
also, wlb at my current company is great...not sure about software dev wlb at investment banks however, i think it is better than sweatshops like amazon

what should i do, brehs
if you're already making 6 figs and up I'd say stay at the wlb spot. if the 35k bump is bringing you into the 6 fig club it might be worth the risk. After a certain base number does your life really improve with every added 10k? My homie keeps chasing bigger money and he's always stressed, let work take over his life etc... We're here to make dough but we need to be able to enjoy it too.
 
Joined
Nov 12, 2014
Messages
19,691
Reputation
1,996
Daps
33,273
Reppin
uk/de
just got an offer from a major investment bank
35k bump in compensation

however, I am concerned about the coming recession. joining a financial company as a new employee may be risky
also, wlb at my current company is great...not sure about software dev wlb at investment banks however, i think it is better than sweatshops like amazon

what should i do, brehs

that depends on which bank it is.

goldmans is pretty safe for example. deutsche is not.
 
Top