Power wise that looks like plenty (I use the 2015 macbook with the i5 M and intel integrated), my only concern is that it seems that some people have had difficulty getting linux installed (over a year ago) on that machine.
Looking over forums, it's possible, but some tweaking may be needed to get everything working under ubuntu 17.04.