who owns chainlinkDeploy a Chainlink Node with Docker Blockchain Tutorial

Cardano ADA Coin Price Today - Cardano ADA Coin Price Today - Cryptocurrency All Cryptocurrencies Cryptocurrency Pairs Currency Converter Cryptocurrency Brokers ICO Calendar Cryptocurrency React to the Market The Complete Guide to Full Stack Ethereum Development contracts – A folder holding an example Ethereum smart contract. Because of a MetaMask configuration issue, we need to update the chain ID on who owns chainlink Deploy a Chainlink Node with Docker Blockchain Tutorial
who owns chainlink Cardano Island Sales on Twitter: Latest #virtua #CardanoIsland ,Sign... Deploy a Chainlink Node with Docker Blockchain Tutorial
hey guys this is chris with learn with coffee and today were going to be deploying a chain link node so you yourself can be a node operator now you might be wondering you know this is deviating a little bit from my usual content but im going to start a new tutorial series where im covering blockchain smart contracts just new emerging technology because this stuff is really starting to take off over the past few years theres been a lot of advancements to make this very very viable and its an awesome career path now if you dont know what blockchain is i definitely recommend you look it up but at its barest form its a peer-to-peer network to where you decentralize data and data can be verified using a algorithm called proof of work so these nodes reach consensus and can reliably say that this data is what it says it is and people that broadcast transactions to the blockchain theyre verified by all these peers and these peers decide whether the data is tampered with or is changing the blockchain in a malicious way and we found that this you know in the history of bitcoin for instance which is the primary use case its never been hacked so we can reliably say this is one of the the most uh secure ways of transacting data on the internet as of right now now what are smart contracts smart contracts are a way for us to deploy code onto the blockchain so it can be executed now the leading smart contract provider is definitely ethereum and chain link for instance is running on the ethereum network you might be asking what is chain link well chain link lets just read this definition connect your smart contract to the outside world chain links decentralized oracle network provides reliable tamper-proof inputs and outputs for complex smart contracts on any blockchain so this means for instance oil and gas data verifiable randomness pricing data market cap data any data that can be defined can be put into this thing called an oracle so your smart contracts can reliably pull from these data sources so instead of just being isolated to the inside world of for instance cryptocurrency which are just numbers that you pass between each other it can now connect and fire off so if i want lets say that my oil and gas uh that im trading i want once it reaches a certain threshold i want to go ahead and transfer some funds to escrow well in a smart contract i can totally do this but before oracles this was extremely hard to do if not impossible now chain link is a premier provider theres several other oracle providers but i prefer chain link they have an awesome team an amazing ecosystem and theyre only evolving day by day and theyre also the top within the top five of cryptocurrencies right now so it could even be assault hey im not an investor or promote any investment advice but it is a solid investment if i were to stake or hedge my bets so lets get into it guys the first step that were going to start with doing is installing docker if you dont already have docker go ahead and go to get started and if youre not too familiar with docker its a way for us to package software and control the environment so it can run on any hardware for the purposes of this tutorial were going to be running our chain link node and postgres in two separate docker containers and were going to create a docker compose file that we can use to deploy these and control the different environments and inspect them so go ahead and install this next youll need to install postgres postgres is an open source sql database whenever we launch our oracle or our chain link node rather itll go ahead and create a ton of tables for us and save information about our note so go ahead and install this youre gonna youre not gonna need to know too much about uh postgres were just gonna be doing a few commands to create the database next well navigate over to infira is a service that allows us to connect to the ethereum blockchain they have a lot of different tools that we could use but right now were just going to use them to connect to the robson test network so go ahead and create an account im gonna ive already got an account created so im just gonna go straight to the dashboard click on ethereum and then youll click create project now beforehand i already created a project so im just going to click on chain link node right here then youll go to settings and down here you have the ability to select different endpoints so were going to be going to the robson test network and just keep this open in the background were not going to be using this right this second but youll see here that well be using this link right there all right now that we have the basic requirements finished go ahead and go to the github link below the repo is called chain link fun and in here i have a readme with different instructions in case you guys just want to go buy this but ill be covering this here in the video and click on code and copy the link and go to a terminal and do get clone and clone this repository and were gonna go ahead and cd into this and youll see here we have a couple different things the thing that were gonna be mainly concerned about is this ro run node directory so cd into run node and well see that we have a couple different files actually three different files but its hiding one so open in your text editor of choice whatever that might be and well see that we have three separate files we have a dot end a database dot inf and docker compose so for this first configuration well just go ahead and go to dot inf well see that we have a few comments here so ill walk you through these different environment variables these are going to be the environment variables that well use to configure our chain link environment so as the first one is this root this will go ahead and map to our volume that were going to be creating and if you dont know what a volume is ill show you here in a second its a its a docker thing if youre not a docker guy get it then we have log level debug min outgoing confirms to and then to the first variable that were going to change here we have the eth chain id and at the top we have four different options that we can choose from the ring could be coven mainnet robson test net and since that were going to be working on the robson test net were going to be using this id3 so lets backspace this out and put three right there and next we have our chain link contract address this is actually where the chain link token contract is so if i go over to ether scan this link is not working for some reason and i search for this contract id we can see here that we have the this chain link contract so if you guys want to take a look at that this is the one that were going to be hitting and this is specific to the robson test net like the main net one will have a separate contract id or address then lets not worry about these configurations too much well go ahead and cover this in a future video theres a lot of different environment variables that we can use to define and configure our chain link environment then our database url so we come over here to our database dot inf this is where we define our postgres credentials we have a username which is postgres the password which is secret and the database which is chain link you guys can totally change these just keep in mind that this is going to change what im doing right here so well go ahead and delete that and well do postgres sql colon slash the username which is postgres colon the password which is secret then the docker instance name which is pg underscore chain link if you come over to the docker compose file well see that we have a couple services defined and dont get overwhelmed by this im going to walk you guys through exactly how this docker compose file works and what everything is doing and let me see if i can oh thats a little bit too big right here is the instance name which is pg underscore chain link so we have that right there then the next thing is our default port which is five four three two then the database which is chain link and then were going to turn ssl node up cool next thing is going to be our eth url which if you remember our our whenever you created the inferior account we have this websocket url that we can copy and place it right here and thats the end of our dot in configuration now what we want to do is create a volume now a volume and docker is a way for us to relate data on our local machine to data on our container so well get well be making a quick volume so go back to your tech center and inside of chain link find slash run node were going to make a new directory called chain link volume and in there well go ahead and go into that directory were going to be defining two different files the first file that were going to be defining is password dot txt this is a configuration that well need for chain link our chain link node and the first line here is going to be our username and the second line is going to be our password which well just make password for right now and ill go ahead and quit and save then were going to be making a file called api credentials.txt and this will just have whatever secret that you want to put here im going to put secret but you totally could put like some random id right here just make sure that you remember it there we go so now that we have our chain link volume defined well go back into this were going to want to add a couple different paths to our docker at this point you should have docker running which will be located somewhere in the toolbar you can just search it so click on dashboard and thatll open up our little dashboard right here then well click on settings resources and then file sharing and were going to be defining two paths here so let me put this to the left real quick the first path that were going to be defining is actually the data for our postgres now i know where mines located yours might be located in a totally different area but if i go to library postgres sql the sql version number and we can see here that we have this data directory so if i type in pwd i can copy this path right here and put slash data so thats the first one again this is how were going to be relating data on our local machine over to our hardware or over to our container rather close that out ill cd back into chain link volume and get this path and copy your chain link volume path and that should be it for this so hit apply and restart and we can just minimize this for the time being and the next step well do is going over this docker compose file all right so to break it down we start with the version number which is going to be three then we define some services the first service were going to be defining is pg underscore chain link which well be pulling from the image postgres if you guys arent familiar with images you can come over here to docker images and you can see here we can add tags to make it specifically pull in different version numbers and you can also search all of the different images over here and were just pulling from the default postgres image then we map our port on our local machine which is 5432 over to the port on our container which were just going to map to 5432 as well we pass in our environment variable which is this database dot in that way it configures our database then we define a volume now once again a volume is a way to relate data on both our machine and the container and well see here that youll probably have a different path to me whenever we went and did the whole file sharing resource and docker right here um whoops we can see that you should just be able to copy this right there now mine isnt going to change because i already have it saved right there and this will map over to the var lib postgres data that shouldnt change on your machine since were pulling from an image that thats the beauty of docker you know once you once you configure it people its agnostic you dont have to go and configure it for each individual environment cool now the next service that were going to be defining is chain link were going to be pulling from the chain link image then were passing in that dot in that we defined earlier then this depends on the pg underscore chain link container to be deployed then we map our port to 6688 back to 68668 then we define our volume now this is going to be different in the example that i did earlier the path actually changed so lets go ahead and get that path real quick which it should just be in our dashboard again copy this right here and paste it just validate and make sure that this link is correct which we know that it is and finally the command so whenever this runs and deploys were going to be running node start dash password which if you see here this chain link is going to be the directory thats inside of our container and we define that right here so thats the root you can totally change that if you want to and its going to point towards that password.txt file then we pass in our api credentials which is just credentials.txt cool so this should be we should be able to run the docker compose command so we come back over to the terminal and go into our run node directory we can type in docker compose up and this will run a ton of different things dont worry if this is overwhelming we can see that our postgres instance was uh instantiated and is up and running but well also see that this is throwing an error you might be wondering why well it actually cant find the postgres instance for chain link thats because we havent created the chain link database yet so to do that we go back to our docker dashboard and youll see that you have a new cluster right here of containers and postgres is running properly but this chain link image or container is not running so to fix this well click on cli this will open up a terminal inside of our container and then we want to get into our postgres console so do that we type in p sql dash u which is going to be your username if you change your username make sure that you put the actual username that you changed it to which is just we have it as postgres then dash h localhost and this will put us into our postgres console and were going to want to type a very simple command which is create database chain we should get validation that create database did run properly were now free to exit out of this terminal and if we cancel this by hitting control c and running docker compose again we can see that it does all of these inserts which are just different migrations that it does and inserts into the database then we see there are no accounts creating a new account invalid email format ooh i know exactly why its because we messed up a step the api credentials is actually not this its actually this right here so if we copy that and actually delete this i got them flip-flopped a little bit hey i fudge up sometimes guys actually all the time so secret actually goes where the password.txt goes and the api credentials is where the username and password goes that shouldnt mess anything up because what it did was it went and inserted all of the different migrations into our postgres database so that step will already be finished whenever we do docker compose so it should just select from those migrations which we can see here and perfect its actually connected to the ethereum blockchain we can see created or connected to ethereum node which is that robson test net link and then the eth balance for actual account this is the account for the node that were running and how much the east balance is in the address once again so now were free to go to localhost 6688 we see here that its responding so we did 100 get that and now congratulations guys you now have your first chain link node up and running so to get into it were going to type in chris pena or and then the password that we made was just password and were signed in so you come over here we can see the link balance that we have its the chain link balance and the ether balance and we can create new jobs we can see how many times it runs we can define a new bridge we have the list of transactions then also the configuration we can see things like where chain link root is this is where we define all those environment variables they get reflected right here and that suggests of it guys i hope you enjoyed it was pretty simple and i know that we didnt go into too much detail with how this actually works but the important thing is that we got the node up and running and its working properly so in the next tutorial well start with defining jobs and start pulling in data into an aggregator contract and start actually using that data and seeing how many nodes we can actually get to verify this data so thank you guys again subscribe like comment if you dont like then i dont know i guess im a sad boy Github Repo: Docker Install: Postgres Install: Create Infura Account: Learn how to deploy your very own Chainlink node. Use Oracles to pull tamper-proof / verifiable data into your smart contracts. In this tutorial, we use Docker to host our Chainlink node and a Postgres instance which will save information about our node.