Builds the latest image for the node-image-manipulator Docker example.
300
A small node server which manipulates images it receives for use in a Docker demonstration. To set manipulation modes for the server, visit the modes page.
The server is made to intercept .png images. We have a simple bash script to send an image:
./send-image.sh [hostname] [image.png] [renamed-image.png]
So, for example, if I used this command locally with an image node.png:
./send-image.sh http://localhost:9001 node.png node2.png
To start up the server, clone the repository and run the following command in the project's root directory:
node server.js
This will start up a server running on port 9001 on localhost.
This server accepts an image as binary data as part of a POST request.
As an example, node.png is included in the root directory. To get and receive the same file, you can run the following command:
curl --request POST --data-binary "@node.png" http://localhost:9001/ >> node2.png
The image can be found on Docker Hub.
Clone the repository and run the following command in the project's root directory:
docker build -t node-image-manipulator .
This will build the image. You can now spin up a container:
docker run -d -p 9001:9001 node-image-manipulator
This will spin up a container running the web server on port 9001 on localhost.
Content type
Image
Digest
Size
261.4 MB
Last updated
almost 10 years ago
docker pull devshawn/node-image-manipulator