https://github.com/techgaun/apn-gcm-docker
Dockerized APNS and GCM Mocks
https://github.com/techgaun/apn-gcm-docker
Last synced: about 1 year ago
JSON representation
Dockerized APNS and GCM Mocks
- Host: GitHub
- URL: https://github.com/techgaun/apn-gcm-docker
- Owner: techgaun
- Created: 2015-02-28T19:11:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-28T20:08:48.000Z (over 11 years ago)
- Last Synced: 2025-02-11T21:52:47.191Z (over 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apn-gcm-docker
=============
This repo consists of Dockerfiles for [APNS](https://gist.githubusercontent.com/rahuloak/4949381/raw/server.js) and [GCM Mock](https://github.com/jondot/cottonballs)
### [APNS](https://gist.githubusercontent.com/rahuloak/4949381/raw/server.js)
```shell
$ docker pull techgaun/apns
$ docker run -d -p 7777:7777 -t techgaun/apns
```
### [GCM Mock](https://github.com/jondot/cottonballs)
```shell
$ docker pull techgaun/gcm
$ docker run --rm -t techgaun/gcm #runs cottonballs -h by default
```
To run a gcm mock on port 7777 with failure ratio of 0.3 and latency 50 seconds,
```shell
$ docker run -p 443:443 -p 7777:7777 --rm --t techgaun/gcm -f 0.3 -l 50 -p 7777
```
### Mention
I was going to fix middleware issues but this [cottonballs fork](https://github.com/mbarnathan-amplify/cottonballs) had already fixed the issue.