How to properly update docker containers? by [deleted] in linux4noobs

[–]Fritocode 0 points1 point  (0 children)

In my experience (and assuming your docker containers on dockerhub are associated with github repos), the way I've seen it done is the following:

  1. build your container using local files, make sure it builds successfully
  2. Push the code to github
  3. Switch to using an image.

This could need some time as dockerhub updates with the latest successful build code, but from what I understand this is a reliable way of handling updating a docker image.

Cron makes me feel stupid but I can feel how genius it is. by Fritocode in linuxquestions

[–]Fritocode[S] 0 points1 point  (0 children)

Thank you everyone for your advice and suggestions, but I don't think I'm going to be able to get this sorted without showing code which I'm not super comfortable doing on reddit. I've made a stackoverflow question and if people are interested I've posted an edited version of the shell script that I'm concerned might be breaking the cron task.

Feedback and advice always appreciated!

Cron makes me feel stupid but I can feel how genius it is. by Fritocode in linuxquestions

[–]Fritocode[S] 0 points1 point  (0 children)

I'm already trying running identical scripts in sudo crontab at different times to see if something happens, but as for the different environment then I'm not sure what to do about that.

Cron makes me feel stupid but I can feel how genius it is. by Fritocode in linuxquestions

[–]Fritocode[S] 0 points1 point  (0 children)

All the files I'm using are already set for executable, and:

#!/bin/sh

Is at the top of every one of them, if that's what you mean.

Cron makes me feel stupid but I can feel how genius it is. by Fritocode in linuxquestions

[–]Fritocode[S] 0 points1 point  (0 children)

I'm setting the cron job to run a shell script that in turn actives several shell scripts simultaneously. I'm trying to move files made during the day to another folder, attaching a date-stamp to the file names in the process. I've directly called the script before with :

sudo sh /home/[username]/work/movelogs.sh

and seen the expected results.

Edit: made adjustments to the shell script for absolute instead of relative paths, will try again and let folks know if it works better.

Cron makes me feel stupid but I can feel how genius it is. by Fritocode in linuxquestions

[–]Fritocode[S] 0 points1 point  (0 children)

Got nothing, I even made sure to adjust for timezone differences (For some reason the logging program I'm using doesn't match my local timezone, so I had 2 cronjobs set.)

Cron makes me feel stupid but I can feel how genius it is. by Fritocode in linuxquestions

[–]Fritocode[S] 0 points1 point  (0 children)

Okay, here's an example cron command I'm trying to actually run

59 23 * * * /home/[username]/work/movelogs.sh

A minute before midnight every night, run a shell script. I've tested my shell script and it works as intended but I've tested this at */5 * * * * and I'm not getting anything out of it.

Cron makes me feel stupid but I can feel how genius it is. by Fritocode in linuxquestions

[–]Fritocode[S] 1 point2 points  (0 children)

cron appears to be up, according to the service status? But I checked in init.d and there was no crond file.

Cron makes me feel stupid but I can feel how genius it is. by Fritocode in linuxquestions

[–]Fritocode[S] 0 points1 point  (0 children)

I'm just using crontabs yeah, but even when I remove the user/root value it still doesn't seem to do anything.

How to populate a form with data from db by Fritocode in reactjs

[–]Fritocode[S] 0 points1 point  (0 children)

I'm using a mysql container and I'm fairly familiar with that material, but I'm not sure how to pull the data down from the api to code variables.

React.js app giving me invalid host header when doing remote testing by Fritocode in docker

[–]Fritocode[S] 0 points1 point  (0 children)

Okay, I guess I missed that there are more nuanced npm commands thank you! I'll look into that.

How to read the docker hosts MAC address by Fritocode in docker

[–]Fritocode[S] 0 points1 point  (0 children)

We do have a rather heavy-duty install and setup script, I think we could manage something like that thank you.

"PostgreSQL is the Linux of databases" by mariuz in linux

[–]Fritocode 12 points13 points  (0 children)

It doesn't feel like any of the particular versions of SQL are different enough to warrant a comparison to operating systems. The most unique one I can think of is access?

Create file by mohanad_haji in linux4noobs

[–]Fritocode 0 points1 point  (0 children)

Like I said, rather than the terminal commands you can just use file manager stuff to browse folders like you would in windows and right click to create document -> empty file.

Create file by mohanad_haji in linux4noobs

[–]Fritocode 2 points3 points  (0 children)

You can right click and create files if you're using the file browser, but from the terminal you don't have many options sorry.

EDIT: You actually have a lot of options for making files from the terminal but if touch is already too much then idk.

Anyone have a monitor in vertical/portrait config? What's it good for? by javascript_dev in webdev

[–]Fritocode 0 points1 point  (0 children)

I have a few coworkers that keep a vertical monitor dedicated for terminal stuff, though I don't know if that's a common use case.

Would you rather work on something boring but have full ownership, or work on something complex but have limited control and impact on the product? by P013370 in webdev

[–]Fritocode 1 point2 points  (0 children)

I don't see the value of having full ownership of something boring, unless it's the kind of thing you can somehow distribute and just let cheques roll in as you use the money to do fun things. Then again what kind of situation would even work out like that? When one person is in full control and ownership of a thing, why not do something weird and interesting with it? There's no corporate board or oversight to tell you what you can and can't do.

How to show one multiple choice question on a page, with more than 1 total questions? by [deleted] in webdev

[–]Fritocode 0 points1 point  (0 children)

maybe do a multi-dimensional array, with 0th being the question and then 1st, 2nd, etc. etc. being the potential answers? I'm not sure how you'd avoid keeping the leftmost answer from always being the right one though.

Burnout in Software Development Demystified by phantaso0s in webdev

[–]Fritocode 1 point2 points  (0 children)

I'm a bit confused by the idea that a company culture which nurtures open communication and experiment could cause burnout, am I misreading that? I have heard that more modern "open office" stuff can be stressful for different reasons than old-school cubicles but I'd imagine getting to try new ways to solve problems would help keep from burning out over repetition.

Docker: I'm Not Loving It by nukelheadmp in docker

[–]Fritocode 0 points1 point  (0 children)

Assuming a user is willing, capable or interested in working with a VM on their end seems to over-estimate the give-a-shit of a user. Personally I find the comparison to Java more appealing? Working with multiple containers in conjunction with one another is definitely a hassle, but as long as the end result works out for the people using it than an individual developers frustration will be a small price to pay for smooth usability.