-
Notifications
You must be signed in to change notification settings - Fork 22
Releases
Pulkit Singhal edited this page Sep 16, 2016
·
5 revisions
***Consult this too: ***
- Clone repository and switch to develop branch
- Since your work is under development ... make sure
package.json
has the correctMAJOR.MINOR.PATCH-dev
set, other than that there isn't anything to manipulate manually. Our only responsibility is to haveMAJOR.MINOR.PATCH-dev
set properly. - Prepare image for testing:
- Build it:
docker build -t shoppinpal/warehouse:staging-vx .
- Push it to Docker Hub:
docker push shoppinpal/warehouse:staging-vx
- Point at the new image in the stackfile for
warehouse-stack
oncloud.docker.com
:
```
web:
image: 'shoppinpal/warehouse:staging-v1.1.1'
worker-web:
image: 'shoppinpal/warehouse:staging-v1.1.1'
```
- Pause Worker execution from IronWorker and make sure that the already running ones finish running.
- Then redeploy
warehouse-stack
with newly built image and test the application
- Clone repository and switch to develop branch
- Do the steps for versioning outlined here
- If the staging passes successfully - Tag image for production deployment:
docker tag shoppinpal/warehouse:staging-vx shoppinpal/warehouse:production-vx
docker push shoppinpal/warehouse:production-vx
docker tag shoppinpal/warehouse:production-vx shoppinpal/warehouse:production
docker push shoppinpal/warehouse:production
- Pause Worker execution from IronWorker and make sure that the already running ones finish running.
- Click
redeploy
button for following services from the customer's stack: - warehouse-web
- warehouse-worker
- NOTES:
1. a customer's stack and stackfile are separate from the generic
warehouse-stack
which is used for testing 2. a customer's stack is setup to deploy from the image tagged aswarehouse:production
so in this case we don't need to edit the stackfile.
- Change
production
tag to the old image. - For example, suppose there are 2 tags with image name:
```
shoppinpal/warehouse:production-v1.0
shoppinpal/warehouse:production-v1.1
```
To rollback to previous version download both images to your system via docker pull as below
```
docker pull shoppinpal/warehouse:production-v1.0 shoppinpal/warehouse:production-v1.1
docker tag shoppinpal/warehouse:production-v1.0 shoppinpal/warehouse:production
docker push shoppinpal/warehouse:production
```
- Pause Worker execution from IronWorker and make sure that the already running ones finish running.
- Click redeploy button for following services from the customer's stack:
- warehouse-web
- warehouse-worker