I have installed Jenkins and Apache to one instance of CentOS in aws. I have connected Jenkins with github but I am not able to access the application through url as it shows the following error.
You should add your website content to the directory /var/www/html/.
I need to copy files from jenkins directory to the mentioned one can you please help me how to copy app so that I can use it on browser.
Related
I'm attempting to containerize a java webapp. I need to copy myapp.xml to $CATALINA_HOME/conf/Catalina/localhost in the tomcat container.
I came to realize that the localhost folder in this path only gets created by tomcat when it starts.
How do i copy myapp.xml to $CATALINA_HOME/conf/Catalina/localhost using Dockerfile as this directory does not exist at image build time?
I feel stuck. Can you help me please?
I'm trying to utilize the official tomcat image from docker hub.
first, I have two AWS Ubuntu servers that I can access by windows cmd using ssh and pem key. However, I have Jenkins installed on one of them.
I have a task which is to use Jenkins Pipeline from the first server to deploy simple files from GitHub repository into the second server. To clarify, the result in server 2 should be the files output from GitHub that is managed by Jenkins in server 1.
In other words:
Server 1: IP = XXX.XXX.XXX.XXX:8080 that contains Jenkins used to manage the output for server 2.
GitHub: NodeJs and HTML file that outputs "Hello World".
Server 2: IP = YYY.YYY.YYY.YYY should output "Hello World" by just using the IP as URL.
So, I,m new to this and looking for step by step explanation. Thanks!
Step 1: Install nginx server 2, config the nginx and know the location where the static files are served.
Step 2: Bring the ssh key to server 1, install nodejs, rsync in server 1 and also create a Jenkins pipeline which can pull the source code from Github, install and build that source code, and rsync to the location where the nginx serves content
I think this is a simple and easy way for you to setup. There are many better ways and you should research how Jenkins and Node work
We have built the Django application dockerized till now there was no issue since we were hosting solution for a client, but now we also need to support in-house deployment which means my docker will be installed at the client machine. I see from the root access I can copy the files inside the docker. How we can save the copy issue from inside docker.
How to add such security in my docker? Please suggest.
I have a picture on my remote ubuntu(16.04) server, so I want to paste it to my Github Readme.md file.
So how can I view (not download, not copy) that image through URL, for instance, server_ip_address/img.png
Thanks for any help or idea!)
If you want to host resources on your ubuntu server you should install a webserver (apache / nginx) if ones not installed already. Heres docs for ubuntu apache: https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-16-04.
Move the image to the webserver's document root (likely /var/www/html) so that you can access it via a url. If you have a static ip on the host then you should be able to access it via http://static_ip/img.png and add that url to Readme.md
I have set up an EC2 instance with Ubuntu and able to login via ssh.
Now I have installed Apache, MySQL (worked fine) and Django also tried to configure it to run with apache. I have tried doing so with mod-wsgi but it still shows a apache default page instead of django (Congratulation ! It works) page. Can someone please provide me instructions for how to setup all this after login into EC2 via SSH.
Here is a tutorial provided by Django.
You need to make sure the apache config file is in /etc/apache2/sites-enabled/ or wherever your apache configuration files rest.
Another silly problem and this might be your issue is whenever I start a new instance of EC2 there is always a config called "000-default" already in the apache sites-enabled. This needs to be DELETED or DISABLED for apache to read from your config instead.
Hopefully this helps!
For a example check the Step 2 of this link. yum + git + pip + python requirements