Why Use Argo CD in Combination with Tekton [closed] - openshift

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I am configuring a cloud-native OpenShift CI/CD process using Tekton. Tekton has the option to trigger via events and also has the option to deploy directly to a cluster. Given this functionality, I am confused of the ideal use case for Argo CD.
Argo CD appears to share very similar functionality with Tekton except lacks the ability to run builds. If I can build and deploy apps entirely via Tekton, what advantage does Argo provide?

It's a matter of preference.
Yes, Tekton is good for a Build Pipeline and can also be used for deployment.
There are many different ways to deploy to Kubernetes
With kubectl apply -f using declarative manifests
With kubectl apply -k using kustomization (e.g. to easier maitain multiple environments)
With ArgoCD, using GitOps to sync a git repository to the cluster, see example in a Tekton Pipeline
With kpt that is similar to kustomize but can manage "bundles" from git
With helm, using templates and charts
With flagger to use e.g. Canary Deployments
They can all deploy to Kubernetes. Which method you use depends on your preferences.

Related

How can I tell a debian package to forget about a file (such that the file doesn't get deleted during a purge or remove)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
A debian package I made overwrote files belonging to other packages (using --force-overwrite option). I realized this was bad, but after deleting these files from the package, building and reinstalling, it'll delete those files since it think's my package owns those files and no longer needs them.
I need dpkg to forget my package ever knew about those files, such that I can remove/purge/install and without it ever thinking about those files again.
Note that this package is only meant to be deployed on systems I control, not distributed to clients, so tinkering with already installed packages is acceptable, so long as I can get this back to a non-messed up state.
Couldn't find an answer on stackoverflow or here, appreciate any help or links to similar questions I missed.
Found that dpkg stores a list of each installed package's files here:
/var/lib/dpkg/info/mydpkg.list
Appears to be a list of every directory and file installed by the package, eg
/etc/udev
/etc/udev/rules.d
/etc/udev/rules.d/95-serial485-pi3.rules
/etc/udev/rules.d/97-serial485-pi4.rules
Fix: sudo vim /var/lib/dpkg/info/mydpkg.list and delete lines of files I want my package to forget about, therefore not trying to delete when uninstalling (or when installing a new version of the package that doesn't have those files anymore.) Unclear on if it's necessary to delete the lines referencing parent directories (eg /etc/udev and /etc/udev/rules.d above).
Bonus: I found this by using strace on the command that lists these files, finding out where it gets its info from:
strace dpkg-query -L mydpkg
Taken from here:
https://unix.stackexchange.com/questions/200171/where-does-dpkg-l-gather-its-information
We can use some commands that help us to keep the package dependency and remove the package.
Remove the package without removing the dependency.
sudo dpkg -r --force-depends <package_name>
Remove the package including the configuration file and without removing the dependency.
sudo dpkg -P --force-depends <package_name>
I highly don't recommend this thing because sometimes dependency may create an issue in the future.
I always prefer to uninstall all the dependency when I uninstall the package.
If your package is broken then you can use the following command to resolve an issue.
To fix the broken packages
sudo apt install -f
I have answered this question based on this article.

Where can I download mysql jdbc jar from? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I installed and tried to use jasper report studio. The first brick wall you hit when you try to create a datasource for your reports is
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
The forums say I need to install a jar on the classpath. I have no idea how to do this, so the first hurdle is how to get the jar. The only place I can find is this:
http://dev.mysql.com/downloads/connector/j/
but this unfortunately gives you an msi installer, not a jar. I don't want to install stuff, just get the jar.
I have mysql DB installed, had have trawled through the install dir in program files, but can't find the jar.
Anyone know the official (not malware site) way to get hold of the mysql jar? It seems bizarre that its so hard to find.
I have windows 8 64 bit and mysql 5.6.
Go to http://dev.mysql.com/downloads/connector/j and with in the dropdown select "Platform Independent" then it will show you the options to download tar.gz file or zip file.
Download zip file and extract it, with in that you will find mysql-connector-XXX.jar file
If you are using maven then you can add the dependency from the link http://mvnrepository.com/artifact/mysql/mysql-connector-java
Select the version you want to use and add the dependency in your pom.xml file
If you have WL server installed, pick it up from under
\Oracle\Middleware\wlserver_10.3\server\lib\mysql-connector-java-commercial-5.1.17-bin.jar
Otherwise, download it from:
http://www.java2s.com/Code/JarDownload/mysql/mysql-connector-java-5.1.17-bin.jar.zip
Here's a one-liner using Maven:
mvn dependency:get -Dartifact=mysql:mysql-connector-java:5.1.38
Then, with default settings, it's available in:
$HOME/.m2/repository/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.jar
Just replace the version number if you need a different one.

running a shell script from html [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I have created two virtual machines having ubuntu 12.04 lts os. Installed apache tomcat 7 on both VM's (virtual machine). configured virtual private network.
HTTP request on VM1 should run a shell script on VM2 and return the result to VM1 as an html file. I did the configuration part.
Now i need to know, how to write an HTML response file in VM2 server(which can be displayed on VM1 browser as a response) which will invoke a shell script having "ps -Aef" command to list all processes running on VM2. i need to display the contents of this file on VM1.
since i am a beginner in web programming/shell scripting please help me.
Thank you in advance
-Akshay
You can use PHP
Install php (apt-get install php)
copy index.php file into /var/www/html folder
index.php
<?php
$output = shell_exec('ps -Aef');
echo "<pre>$output</pre>";
?>
browse http://<ip-address>/index.php
What you need is a web server that can run CGI scripts. It's too long to completely list the steps of setting up CGI (and it depends on your web server of choice etc.). But considering you are a beginner, there is a pretty extensive tutorial with examples on how to configure Apache to run CGI scripts right here.
To summarize:
You need to install Apache (apt-get install apache2)
Configure Apache to enable mod_cgi as described in the tutorial above.
Write your first CGI program and test it (also in that tutorial).

Compile CMU PocketSphynx at Linux Mint 13 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've installed CMU Sphynx at Linux Mint 13 (based on Ubuntu 12.04 LTS) and I simply cant' find any examples for:
How to just test how it work in most simple way? I want to launch it from command line and recognize any .wav file. I've read docs but there are just c++ or python examples, no examples for pocketsphynx_continious
Where can I get /dev/dsp devise at Mint? I have installed all dev libs for alsa and pulseaudio - no /dev/dsp at all.
Any help?
To recognize from microphone
pocketsphinx_continuous
To recognize a file (16khz mono 16bit)
pocketsphinx_continuous -infile file.wav
To create /dev/dsp you need to load kernel driver for oss
modprobe snd_pcm_oss
Development libs are for development, not for /dev/dsp. After you installed development libraries, you need to recompile and reinstall sphinxbase. It will detect development libraries and use alsa instead of oss.

Completely remove and reinstall mysql [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I managed to bork my installation of it while trying to uninstall it. I installed via Muon (Kubuntu), and attempted uninstallation the same way.
I tried apt-get install/remove (on both mysqlserver and mysql), then tried manually removing files, but it just doesn't work. Somewhere it's determining not to regenerate its configs and not reinstall like a fresh install would.
How do i just get rid of everything mysql-related? I'd like to start fresh.
apt-get purge PACKAGENAME should completely remove a package including its configurations. Maybe this works better.
remove leaves behind configuration files. You need to use purge instead. (purge works on both apt-get(8) and dpkg(8).)
I had to copy a default mysql.cnf (obtained via googling) into the /etc/mysql directory. It created debian versions of the config while using "apt-get install mysql-server-5.1", so i'm assuming the installation i was trying to do was just bad. Should have gone rpm i guess.
However using purge DID remove a few other files i didn't know about, so it did help. +1