A server container with Swift environment and a Vapor websocket server to handle requests from MAMoC (https://github.com/dawand/MAMoC) client applications
There are two ways to install the server component:
-
Dockerfile: You can use Docker to build the provided dockerfile which fetches a pre-built container including a web socket to serve the client requests.
First copy the Dockerfile to a folder in your server and build it
docker build -t mamoc-container .
After the image is fetched, you can run it:
docker run --privileged -i -t --name myContainer -p 80:8080 mamoc-container
-
Build your own: You can setup Swift environment on your server and copy the MEC-Container folder to the desired location. You can customise the server based on your needs. Have a look at Vapor and WebSocket code to understand the server side code and customise it to your applications.