Comments (8)
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.
same here. after committing the "deliver" stage, as predicted, the following screen was up, but couldn't access localhost:3000.
from simple-node-js-react-npm-app.
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.
I tried with yarn and npm but still, I couldn't able to access it.
from simple-node-js-react-npm-app.
I couldn't access localhost:3000
from simple-node-js-react-npm-app.
UPDATE : updating the Jenkins file to use latest node image solved the issue.
from simple-node-js-react-npm-app.
Could you post that update Jenkinsfile to highlight the actual change that you made?
from simple-node-js-react-npm-app.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-node-js-react-npm-app.