Er....you do need a passport to fly into DUB.
The CTA is open at the UK side but you will be going through passport control at DUB, now a driving licence is ok but in reality, you DO need ID.
Are the DUB-EDI-PEK transit passengers really being allowed off at EDI?