I assume when you say into general relativity you mean the field equations. One usually constructs a general line element (ds^2 = ...) that, without loss of generality, closely identifies with the geometry of space - time for which one is solving, gets the components of the related tensors (Riemann, Ricci, Einstein) and using the appropriate mass - energy distribution sets up the energy - momentum tensor and finally goes about solving for the metric tensor components (this is of course just a process and solving the equations is usually very, very difficult for physically meaningful space - times). For the Earth you would simply assume a static, spherically symmetric line element (the Earth's rotation is negligible) in vacuum and when you solve this you will just end up with the aforementioned schwarzchild metric (look up Birkhoff's theorem if you want).