Laser-induced shockwave propagation from ablation in a cavity