move built jar over ssh to the remote server - ssh

I'm new in jenking and continious integration.
What I need:
I want to push my jar file to the remote server after build.
What a problem:
But I can't find any shh credentials configs in Jenkins. I've read that I need to install *Publish_Over_Shh_Plugin*, BUT as I understand I can't. (means I can't beacause jenkins is installed on the remote server and I heven't rights to do that)
Questions:
Is it possible to set SSH credential without installing *Publish_Over_Shh_Plugin*?

If ssh is available to the Jenkins user (that is the user account that Jenkins runs under) you should be able to add a post build step.
This answer sounds vague, but I don't anything about your setup (What OS? What plugins installed? ...) except that Jenkins is installed on a remote machine and for some unknown reason you can't get someone to install the needed plugin for you.

Related

Remote development (from PhpStorm with JetBrains Gateway) without internet possible?

Here is my working context;
no internet (I use my company's intranet)
Linux CentOS 7.9 remote server with my source files
PhpStorm 2021.3.2 on my development PC
My wish is to develop on my PC on remote sources. Your new JetBrains Gateway solution seems to meet my expectations on paper.
However, in practice, I have the impression that it is not possible to use this solution without internet ? Indeed, the connection process stops on this failure:
Looks like your solution is trying to download an IDE client to install on my machine. Which from my point of view is a weird behavior because I already have a client to install on my machine: PhpStorm. Why not use my PhpStorm client already installed on my machine ?
Thank you for your reply
The "Jetbrains Client" mentioned in the error message is not for your local machine, but for the Linux server:
Once the IDE version and project directory are selected, Gateway will download the IDE to the remote server, unpack it, and launch it with your project loaded.
It acts on the remote server as a "backend IDE" to which the client on your local machine connects:
The JetBrains Client runs locally and provides the user interface for the IDE backend.
You would not even require the full PHPStorm IDE, the Jetbrains Gateway is a standalone app that comes with a "thin client" that can connect to the backend IDE:
This whole process is managed by JetBrains Gateway, a new, compact, standalone app that provides everything you need to get started with remote development. Since it’s standalone, it’s the only thing you need to install locally to start working and is ideal for less powerful laptops and in cases where a full IDE install isn’t desired.
See https://blog.jetbrains.com/blog/2021/12/03/dive-into-jetbrains-gateway/ for a more detailed look at how it works.
To answer your question: it is not possible to use Jetbrains Gateway without an internet connection.

Pycharm Remote Dev using SFTP with Yubi Key authentication

I have PyCharm Pro. I am trying to do remote development on a server. I have read the following Jetbrains tutorials:
Deploying Applications
Remote Development on Raspberry Pi
as well as the very helpful tutorial:
Remote debugging with pycharm the missing tutorial
While I seem to be able to set everything up, authentication fails when I try to connect to the remote server using the 'SFTP' protocol. I can make an SSH and SFTP connection from the CLI in a terminal so I know the ssh configuration settings are correct. However, in my case authentication requires ssh and having a Yubi key connected to my laptop. Does that make a difference?
Has anyone had a similar issue? If so, how did you resolve it?
On MacOS the challenge is where the IDE is getting it's ssh socket agent. To make this work in my case I have to launch the PyCharm Pro IDE from a terminal.
Go to '/Applications/PyCharm.app/Contents/MacOS' directory and launch with './pycharm'

Running Parse Server over Intranet

Can I use Parse Server to provision service to my app that runs over intranet (a local server and multiple clients) using WLAN? If yes, how can this be achieved? if no why can't it.
No internet connection is supported yet for the app. It is designed to be used in-house only intranet via WLAN or LAN.
So far all I've seen are ways to host parse-server to one cloud infrastructure or the other.
You can easily host a parse server on your intranet.
Follow the guide and clone the parse server example
Follow the guide below (taken from the github example) for local development to get aquianted with how you set it up
Make sure you have at least Node 4.3. node --version
Clone this repo and change directory to it.
npm install
Install mongo locally using http://docs.mongodb.org/master/tutorial/install-mongodb-on-os-x/
Run mongo to connect to your database, just to make sure it's working. Once you see a mongo prompt, exit with Control-D
Run the server with: npm start
By default it will use a path of /parse for the API routes. To change this, or use older client SDKs, run export PARSE_MOUNT=/1
before launching the server.
You now have a database named "dev" that contains your Parse data

The best way of develop with Open shift origin: VM or local installation

What is the best way to develop with open shift origin? Is it using vm or install it locally? I have tried installing the vm and I could not login to the vm. What is the default credential used to login to fedora vm.
Default credentials
Depending on which route you follow (see below) there might or might not be real authorization in place.
If you have the AllowAllPasswordIdentityProvider in place you can get away with test/test or whatever.
If you take the binary version (see below) this is what you'll have by default. I changed it to be HTPasswdPasswordIdentityProvider instead.
For the other options I think you will have a user called system, with the password admin coming with the setup.
Docker container version
You can quickly get OpenShift running in a Docker container using
images from Docker Hub on a Linux system. This method is supported on
Fedora, CentOS, and Red Hat Enterprise Linux (RHEL) hosts only.
Link: https://docs.openshift.org/latest/getting_started/administrators.html#running-in-a-docker-container
As per the origin folks, this setup is not (yet) a full example, but very easy to get started with. You should be able to follow the instructions to get an all-in-one instance up and running in no time. However, this approach cannot teach you how to create a cluster (master(s) and node(s))
Vagrant VM
This image is based off of OpenShift Origin and is a fully functioning
OpenShift instance with an integrated Docker registry. The intent of
this project is to allow Web developers and other interested parties
to run OpenShift V3 on their own computer. Given the way it is
configured, the VM will appear to your local machine as if it was
running somewhere off the machine.
The OpenShift Master, Node, Docker Registry, and other pieces are running in one VM. Given it's focus on application developers, it should NOT be used in production.
Link: https://www.openshift.org/vm
Binary option
Red Hat periodically publishes binaries to GitHub, which you can
download on the OpenShift Origin Releases page.
Link: https://github.com/openshift/origin/releases
This is the option I follow currently. You download the binaries, install GO, then setup the OC client tools. Next step you generate the configuration files and start adding your system components (router, ...).
Follow this page to understand the basics:
Link: https://github.com/openshift/origin/blob/master/examples/sample-app/README.md
Ansible route
For production installation you probably want to install your cluster via Ansible.
My humble advice is to do this once you got a bit of an experience via configuring by hand (see previous point). Let's hear some people with more experience though.
Link: https://docs.openshift.org/latest/install_config/install/index.html
Documentation in general
Link: https://docs.openshift.org/latest/install_config/master_node_configuration.html#creating-new-configuration-files
Spin up a Centos.7 VM, download the latest origin tools:
wget https://github.com/openshift/origin/releases/download/v1.3.0-alpha.2/openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit.tar.gz
tar xzvf openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit.tar.gz
ln -s /root/openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit/oc /usr/local/bin/oc
chmod 755 /root/openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit/oc
Bring up your single node origin cluster:
oc cluster up --use-existing-config --host-data-dir=/var/tmp/etcd
Login using the instructions provided.

Configure SVN on WIndows 8

I am new in SVN configuration. I have Windows 8 with 4 drives. I am planing to configure TortoiseSVN 1.7.12 on one of drive and will do the checkout from another drive.
I have installed it but unable to configure it as SVN server.
How can i configure it?
Appreciate you help on this.
Thanks in advance.
You can't get TortoiseSVN configured as a server because it's not a server. TortoiseSVN is a client.
If you wish to run a server, you need to acquire & install Apache (if you want to use HTTP access) and a Win32 command-line build of Subversion (no matter what). You may find this easier via one of the pre-built packages such as CollabNet Subversion Edge, VisualSVN Server, or uberSVN
If you're going to be sharing with someone else, get a separate server set up and managed properly - don't run it off your desktop (what happens when your hard drive crashes, or you go away on vacation?).
The current stable version of TortoiseSVN is 1.7.13. You might consider using that.
Server configuration is an activity which you should do after careful preparation.
You may read the details here:
http://svnbook.red-bean.com/en/1.7/svn.serverconfig.html