I do agree with the recommendations on prep to inhibit rust, however, you may want to consider not gluing the ends of the PVC. How will you open it when SHTF??
Rather, prep the firearm, and seal it up in a food saver bag (with a descant and O2 absorber). When you need it, you won't need tools to open the pipe, only a knife to cut the food saver bag.