Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aryak007/Dockerman

A NodeJS service for firing docker operations, e.g. creating tags, deleting tags, deleting images etc.
https://github.com/aryak007/Dockerman

docker docker-image javascript nodejs

Last synced: 10 days ago
JSON representation

A NodeJS service for firing docker operations, e.g. creating tags, deleting tags, deleting images etc.

Awesome Lists containing this project

README

        

# Dockerman 1.0.0

## Usage

### Run the following commands to get the stack up and running

```javascript
npm install
gulp
```
### The above will start hosting the app at http://localhost:3000 . Check the list of available APIs to know about the routes

## List of available APIs

### Primary routes
1. GET /api/getImagesInfo - Returns information of images using the curl API
```curl --unix-socket /var/run/docker.sock http:/v1.24/images/json```

2. DELETE /api/deleteImage/:commitId - Deletes an image using its commitId.

3. DELETE /api/deleteTag/:tagName - Deletes a tag using the tag name

4. POST /tagImage/:imageName/:tagName - Creates a new tag for an image.

## Tests

The reporter used is "mocha-jenkins-reporter" in this case to make the test results compatible with Jenkins
### Unit tests
Run the following command to run the unit tests -
```
npm run unit
```
The test results can be found at the path - tests/unit/unit.xml
```xml
























```
### System tests
Run the following command to run the system tests -
```
npm run system

```
The test results can be found at the path - tests/system/system.xml

```xml




























```