Giter Site home page Giter Site logo

Comments (8)

WilliamWishart avatar WilliamWishart commented on April 28, 2024 1

What I had to do was actually expose the port, from the jenkins instance of docker, that would be used to expose the published react app.

docker run --name jenkins-docker --rm --detach
--privileged --network jenkins --network-alias docker
--env DOCKER_TLS_CERTDIR=/certs
--volume jenkins-docker-certs:/certs/client
--volume jenkins-data:/var/jenkins_home
--publish 2376:2376 --publish 3000:3000
docker:dind

from simple-node-js-react-npm-app.

roeniss avatar roeniss commented on April 28, 2024

same here. after committing the "deliver" stage, as predicted, the following screen was up, but couldn't access localhost:3000.
image

from simple-node-js-react-npm-app.

AMcCartneyK3 avatar AMcCartneyK3 commented on April 28, 2024

I had the same issue. Changing from npm to yarn to launch the app solved things for me.

from simple-node-js-react-npm-app.

kishoreprabhu avatar kishoreprabhu commented on April 28, 2024

I tried with yarn and npm but still, I couldn't able to access it.

from simple-node-js-react-npm-app.

smparvez89 avatar smparvez89 commented on April 28, 2024

I couldn't access localhost:3000

from simple-node-js-react-npm-app.

dhruvinparikh avatar dhruvinparikh commented on April 28, 2024

UPDATE : updating the Jenkins file to use latest node image solved the issue.

from simple-node-js-react-npm-app.

WilliamWishart avatar WilliamWishart commented on April 28, 2024

Could you post that update Jenkinsfile to highlight the actual change that you made?

from simple-node-js-react-npm-app.

drewawa98 avatar drewawa98 commented on April 28, 2024

What I had to do was actually expose the port, from the jenkins instance of docker, that would be used to expose the published react app.

docker run --name jenkins-docker --rm --detach --privileged --network jenkins --network-alias docker --env DOCKER_TLS_CERTDIR=/certs --volume jenkins-docker-certs:/certs/client --volume jenkins-data:/var/jenkins_home --publish 2376:2376 --publish 3000:3000 docker:dind

Worked for me. Thanks alot!

from simple-node-js-react-npm-app.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.