There is what appears to be socialism in the Acts of the Apostles. However, if you go by the Didache, that way of living was not mandated.
From The Didache:
And the way of death is this: First of all it is evil and accursed: murders, adultery, lust, fornication, thefts, idolatries, magic arts, witchcrafts, rape, false witness, hypocrisy, double-heartedness, deceit, haughtiness, depravity, self-will, greediness, filthy talking, jealousy, over-confidence, loftiness, boastfulness; persecutors of the good, hating truth, loving a lie, not knowing a reward for righteousness, not cleaving to good nor to righteous judgment, watching not for that which is good, but for that which is evil; from whom meekness and endurance are far, loving vanities, pursuing revenge, not pitying a poor man, not laboring for the afflicted, not knowing Him Who made them, murderers of children, destroyers of the handiwork of God, turning away from him who is in want, afflicting him who is distressed, advocates of the rich, lawless judges of the poor, utter sinners. Be delivered, children, from all these.
The Church acknowledges the legitimate role of profit as an indication that a business is functioning well. When a firm makes a profit, this means that productive factors have been properly employed and corresponding human needs have been duly satisfied. Pope John Paul II