-
Notifications
You must be signed in to change notification settings - Fork 56
DTaaS Integration Server
It's best to have an integration server for developing the application. Once you have the server up and running, you can develop and test your code within the complete application. You can spawn one using the latest release.
The following applications must be running:
- React website: localhost:4000
- ML Workspace: localhost:8090
- Grafana: localhost:3000
- React website: foo.com
- ML Workspace: foo.com/user1
- Grafana: foo.com/vis
Some of the trouble shooting tips:
You can reset the same by logging into the server. Use SSH to log into the server.
cd /home/vagrant/DTaaS/servers/config/gateway
cat auth # you can see the username before colon on the first line
htpassword auth <username> # change the password
Restart the Traefik gateway
docker stop traefik-gateway
docker rm traefik-gateway
sudo docker run -d \
--name "traefik-gateway" \
--network=host -v "$PWD/traefik.yml:/etc/traefik/traefik.yml" \
-v "$PWD/auth:/etc/traefik/auth" \
-v "$PWD/dynamic:/etc/traefik/dynamic" \
-v /var/run/docker.sock:/var/run/docker.sock \
traefik:v2.5
If you don't want to restart the Traefik server, you can always try (disclaimer: haven't actually tried this)
docker stop traefik-gateway
docker cp auth traefik-gateway:/etc/traefik/auth
docker start traefik-gateway
Check if the webpage server is up
wget localhost:4000
If the webpage is not accessible locally, you can go to DTaaS/client folder and do
nohup serve -s build -l 4000 & disown
Now check if the react server is up and running by doing wget localhost:4000
.
Check if the Traefik gateway is up
docker ps -a
you should see traefik-gateway
in running stage. Otherwise, do
docker start traefik-gateway
Make sure that you are using ssh [email protected]
.