Let $red_p : \mathbb{Z}[x]\to\mathbb{Z}/(p)[x]$ be the canonical ring morphism sending a polynomial with integer coefficients to a polynomial with integer coefficients modulo $p$, with $p$ a prime, by taking modulo to each coefficient. My objective is to find a polynomial $f\in\mathbb{Z}[x]$ of degree $8$ such that $\mathrm{Gal}(F/\mathbb{Q})\cong S_8$, where $F$ denotes the splitting field of $f$ over $\mathbb{Q}$, and such that $red_7(f)$ is irreducible in $\mathbb{Z}/(7)[x]$. I don't even know how to begin. Any help would be greatly appreciated.
I've made some attemps to construct an 8 degree polynomial such that $\mathrm{Gal}(F/\mathbb{Q})\cong S_8$ but I can't seem to solve that problem either. I think that would be a great starting point.
This is not a complete answer, just a start as you indicate that you don't even know where to begin.
Let $f\in\Bbb{Z}[x]$ monic. If its image $f_p$ in $\Bbb{F}_p[x]$ is separable and factors as $f_p=\prod_{i=1}^kg_k$, then $\operatorname{Gal}(f)$ contains an element of cycle type $(\deg g_1,\ldots,\deg g_k)$. So it makes sense to start from an irreducibe polynomial $h\in\Bbb{F}_7[x]$ as then any lift $\tilde{h}\in\Bbb{Z}[x]$ already has an element of order $8$ in $\operatorname{Gal}(\tilde{h})$. An easy first candidate is $$h_7=x^8+x+3\in\Bbb{F}_7[x].$$ To make sure we also have a transpotion in $\operatorname{Gal}(f)$, we choose a lift $\tilde{h}\in\Bbb{Z}[x]$ that factors into one quadratic and six linear factors mod $2$. A bit of fiddling around yields, for example $$\tilde{h}=x^8+x+3+7(x^7+x^6+x+1)\in\Bbb{Z}[x],$$ so that $$h_2=x^8+x^7+x^6=x^6(x^2+x+1)\in\Bbb{F}_2[x].$$ which shows that $\operatorname{Gal}(\tilde{h})$ contains a transposition. This doesn't quite give you that $\operatorname{Gal}(\tilde{h})\cong S_8$, but gets you on the right track.
EDIT: As pointed out in the comments below $h_2$ is not separable, so this choice of $\tilde{h}$ doesn't quite work. I have no doubt the argument can be salvaged, but the result will likely not be as pretty. I'll give it some thought tomorrow.
UPDATE: One way to salvage the argument is to take a larger prime $p$, so that a lift $\tilde{h}$ splits into six distinct linear factors and one irreducible quadratic factor. As $\deg\tilde{h}=8$ this requires $p\geq6$, hence $p=11$ is the smallest prime that might work. And indeed, surprisingly little fiddling around shows that the lift $$\tilde{h}=x^8+x+3+7(x+8)\big((x+3)(x+4)+6(x+1)(x+2)(x+5)(x+10)\big)\in\Bbb{Z}[x],$$ satisfies $$h_p=(x+1)(x+2)(x+3)(x+5)(x+8)(x+10)(x^2+4x+5)\in\Bbb{F}_p[x],$$ which shows that $\operatorname{Gal}(\tilde{h})$ contains a transposition.