{"id":3152,"date":"2017-06-07T11:41:15","date_gmt":"2017-06-07T11:41:15","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=3152"},"modified":"2021-09-07T10:55:41","modified_gmt":"2021-09-07T10:55:41","slug":"installing-pump-io","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/installing-pump-io\/","title":{"rendered":"Installing pump.io"},"content":{"rendered":"<p>I have had to do an install of<a href=\"https:\/\/davelevy.info\/wiki\/pump-io-and-microblogging\/\">\u00a0<strong>pumpi.io<\/strong><\/a> a couple of times now and decided to write a script which I have put on GitHub since I only ever return after I have forgotten everything I learnt last time.\u00a0<!--more-->The repo is,<\/p>\n<ol>\n<li><a href=\"https:\/\/github.com\/dfl1955\/pumpiotools\">https:\/\/github.com\/dfl1955\/pumpiotools<\/a><\/li>\n<\/ol>\n<p>The plan is that the scripts can be used to install the product, with a simple git clone and bash command. It&#8217;s <strong>not yet ready<\/strong> as I ran into a problem with docker.<\/p>\n<h3>Ubuntu<\/h3>\n<p>This is my test O\/S of choice. Once done let&#8217;s see if the author will take it as user contributed code. This is now working.<\/p>\n<pre>$ sudo bash\r\n# apt-get update &amp;&amp; apt-get upgrade\r\n# apt-get install -y git\r\n# git clone http:\/\/github.com\/dfl1955\/pumpiotools\r\n# cd pumpiotools\r\n# sudo bash .\/build.me<\/pre>\n<p>Now I need a configure program.<\/p>\n<h3>AWS<\/h3>\n<p>The install now works fine. There is an ifaws file to perform the aws specific functions. I still need a test so we can self discover if on the amazon services. I also couldn&#8217;t get the browser to work. The server was binding to the internal host name despite using an address parameter in the config file. I stoped and returned to the bare metal install (on virtual box).<\/p>\n<p>These were useful,<\/p>\n<ol>\n<li>https:\/\/stackoverflow.com\/questions\/20941704\/ec2-instance-has-no-public-dns, this was embarassing<\/li>\n<li>http:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/using-instance-addressing.html<\/li>\n<li>https:\/\/serverfault.com\/questions\/462903\/how-to-know-if-a-machine-is-an-ec2-instance<\/li>\n<li>https:\/\/stackoverflow.com\/questions\/22815080\/get-public-dns-name-of-a-ec2-instance-using-ec2-command-line-tools-in-bash<\/li>\n<\/ol>\n<p>I still have not fixed this, the jetty server is binding to the internal DNS address and thus cannot be browsed from the internet.<\/p>\n<h3>Docker<\/h3>\n<p>I wanted to install the database and application in the same container, mainly because I wanted to change as little as possible from what I know, but docker doesn&#8217;t like this. I am using mongod which recommend the use of systemd with Ubuntu. Docker, without some buggering around really prefers you to use two containers. So I plan to use AWS to test the script and then write a Docker variant which I will then place in dockerhub. The repo as at 6th June fails. I plan to finish the scripts aimed at either AWS images or virtual box VMs. I&#8217;ll then return to docker.<\/p>\n<p>These links refer to the Docker issue.<\/p>\n<ol>\n<li>https:\/\/stackoverflow.com\/questions\/39169403\/systemd-and-systemctl-within-ubuntu-docker-images<\/li>\n<li>https:\/\/rhatdan.wordpress.com\/2014\/04\/30\/running-systemd-within-a-docker-container\/<\/li>\n<\/ol>\n<h3>Ansible<\/h3>\n<p>I plan to write an ansible playbook for this. Why? Who knows? Here are some links I hope will help.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.ansible.com\/get-started\">https:\/\/www.ansible.com\/get-started<\/a><\/li>\n<li><a href=\"https:\/\/serversforhackers.com\/an-ansible-tutorial\">https:\/\/serversforhackers.com\/an-ansible-tutorial<\/a><\/li>\n<li><a href=\"https:\/\/web.archive.org\/web\/20170812014248\/https:\/\/valdhaus.co\/writings\/ansible-vs-shell-scripts\/\">https:\/\/valdhaus.co\/writings\/ansible-vs-shell-scripts\/<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have had to do an install of\u00a0pumpi.io a couple of times now and decided to write a script which I have put on GitHub since I only ever return after I have forgotten everything I learnt last time.\u00a0<\/p>\n","protected":false},"author":1,"featured_media":3153,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[6,27,3],"tags":[1122,871,213,791,911,343],"class_list":["post-3152","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking","category-software","category-technology","tag-ansible","tag-docker","tag-install","tag-pump-io","tag-technology","tag-ubuntu"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2017\/06\/pump-2-w650.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/3152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=3152"}],"version-history":[{"count":2,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/3152\/revisions"}],"predecessor-version":[{"id":5985,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/3152\/revisions\/5985"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/3153"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=3152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=3152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=3152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}