Rhys Coley-Waite, 25, admitted counts of assault and drink-driving when he appeared in court from custody.
The court was told how the defendant and the victim were work colleagues and residing at the same address at the time.
On the day in question, the victim had been forced to leave work injured. He went home upset and had drank heavily.
Later on, when the defendant was in bed, the victim kicked his door open and entered the room in order to retrieve a cigarette lighter. A scuffle ensued in which the victim punched the defendant.
It then continued on the landing outside the bedroom, where CCTV footage showed the defendant punching his victim multiple times. It was accepted that Coley-Waite had not started the incident but it had taken his victim some 40 seconds to get back on his feet following the attack.
The victim did not wish to make a complaint though he did allow police to photograph his injuries.
Coley-Waite exercised his right to silence in interview.
Some six weeks later, and while on bail for the assault, the defendant drove a white tipper truck to a shop at 1.40pm. Someone in the shop suspected that he might have been drinking and called the police. He was arrested soon after. A test at the Police Station identified 72 micrograms of alcohol per 100ml of his breath when the legal limit is 35.
Coley-Waite had no previous convictions.
Defending, Advocate Chris Green said it had been a freak scenario. His client, who had spent 24 days on remand in custody, had been in bed when the defendant kicked the door open looking for a lighter. He wished to make a full apology for both offences to the court and the wider community.
Judge Gary Perry said it was an aggravating factor that the defendant had committed the second offence while on bail for the first. It had been a vicious assault and any notion of self-defence had gone out of the window. He had thrown numerous punches at his victim while he was incapacitated.
The drink-driving had been a high reading.
For the assault, Coley-Waite was ordered to perform 100 hours of community service as a direct alternative to three months in prison. For the drink-driving, he must perform another 60 hours. A driving ban of two and half years was also imposed.