Localization of three-dimensional $\mathcal{N}=2$ supersymmetric theories on $S^1 \times D^2$