Update existing install
On your installation server, open a terminal and run the following commands:
sudo su rm -rf update.tar.gz curl https://dataintell-bucket.s3.ca-central-1.amazonaws.com/updates/update-1.12.0.tar.gz >> update.tar.gz tar -xvf update.tar.gz cd update-1.12.0 ./update-api.sh ./update-client.sh
Update existing install on docker
API
On your installation server, open a terminal and run the following commands:
sudo su docker ps aws ecr get-login-password --region ca-central-1 | docker login --username AWS --password-stdin 827631532322.dkr.ecr.ca-central-1.amazonaws.com docker pull 827631532322.dkr.ecr.ca-central-1.amazonaws.com/dataintell-api:1.12.0 docker stop dataintell-api docker rm dataintell-api docker run -d --restart unless-stopped --env-file /dataintell/config-map.env -p 8085:8085 --name dataintell-api 827631532322.dkr.ecr.ca-central-1.amazonaws.com/dataintell-api:1.12.0
These commands will:
- Make sure that the API is running.
- Authenticate with AWS ECR service.
- Get the DataIntell API with the given version.
- Stop the API and start the newest one.
Note: The file config-map.env could be located elsewhere in your installation server.
Client
On your installation server, open a terminal and run the following commands:
sudo su docker ps aws ecr get-login-password --region ca-central-1 | docker login --username AWS --password-stdin 827631532322.dkr.ecr.ca-central-1.amazonaws.com docker pull 827631532322.dkr.ecr.ca-central-1.amazonaws.com/dataintell-client:1.10.1 DOCKER_ARG_1=$(docker inspect --format='{{.Config.Env}}' dataintell-client | cut -d' ' -f1 | sed 's/\[//') DOCKER_ARG_1=$(docker inspect --format='{{.Config.Env}}' dataintell-client | cut -d' ' -f1 | sed 's/\[//') PORT=$(docker port dataintell-client 5000) echo "DOCKER_ARG_1:" $DOCKER_ARG_1 echo "DOCKER_ARG_2:" $DOCKER_ARG_2 echo "PORT:" $PORT
If in the previous command you saw, REACT_APP_APIURL and REACT_APP_APIPORT you can stop and start the client with the latest version with the following commands.
If in the previous command you didn’t see, REACT_APP_APIURL and REACT_APP_APIPORT, replace these values:
- $PORT: The expose port Ex: 80.
- $DOCKER_ARG_1: The API URL Ex: REACT_APP_APIURL=”http://10.10.50.10″.
- $DOCKER_ARG_2: The API port Ex: REACT_APP_APIPORT=8085.
docker stop dataintell-client docker rm dataintell-client docker run -d --restart unless-stopped -p $PORT:5000 -e $DOCKER_ARG_1 -e $DOCKER_ARG_2 --name dataintell-client 827631532322.dkr.ecr.ca-central-1.amazonaws.com/dataintell-client:1.10.1
These commands will:
- Make sure that the client is running.
- Authenticate with AWS ECR service.
- Get the DataIntell client with the given version.
- Get the values required to launch the newest version of the client.
- Stop the client and start the newest one.
Comments
0 comments
Article is closed for comments.