Relativistic thermodynamics of irreversible processes i