Documentation for creating/managing repositories and images for the STINGAR organization on Docker Hub.
NOTE: This should ONLY be done this way until we get some automation.
Images are organized by Organization (STINGAR), Repostitory (mongodb), and tag (v1.1-centos, latest, etc).
"Repository" refers to the same general idea as the Github Repository.
mkdir docs/
touch docs/Dockerhub.md
- Fill out the
Dockerhub.md
from this template, replacing links and names, and commit it to your project:
# Supported tags and respective Dockerfile links
* latest, 1.1, 1.1-centos \([Dockerfile-centos](https://github.com/CommunityHoneyNetwork/mongodb/blob/v1.1/Dockerfile-centos)\)
* 1.1, 1.1-ubuntu \([Dockerfile-ubuntu](https://github.com/CommunityHoneyNetwork/mongodb/blob/v1.1/Dockerfile-ubuntu)\)
# CommunityHoneyNetwork MongoDB
MongoDB implementation for use with the [CommunityHoneyNetwork](https://communityhoneynetwork.github.io/) project.
**Where to get help:**
the CommunityHoneyNetwork [mailing list]([email protected])
**Where to file issues:**
https://github.com/CommunityHoneyNetwork/mongodb/issues
**Maintained by:**
the [CommunityHoneyNetwork]https://communityhoneynetwork.github.io) maintainers
**How to use this image:**
Check out the [CommunityHoneyNetwork documentation](https://communityhoneynetwork.github.io/)
- Login to DockerHub
- Select "Create" -> "Repository"
- Choose the "stingar" organization, and enter the image name as it matches our documentation (eg. "mongodb")
- Enter the "Short Description" from the Dockerhub.md as the "Short Description", removing links. It must be less than 100 characters.
- Paste the contets of the Dockerhub.md into the "Full Description" field.
- Make sure "Visibility" is public
From the Repository:
- Select "Collaborators"
- Set the "owners" team as admins
- Select "Add team"
For each tag in the "Supported Tags" section, build a corresponding image.
Example:
# Checkout the published Git tag
git checkout v1.1
# Build the images
docker build -t stingar/mongodb:1.1-centos -f Dockerfile-centos .
docker build -t stingar/mongodb:1.1-ubuntu -f Dockerfile-ubuntu .
# Test the images, then continue...
# Tag the images
docker tag stingar/mongodb:1.1-centos stingar/mongodb:latest
# Login to DockerHub
docker login --username=<your username>
# Push your images
docker push stingar/mongodb:1.1-centos
docker push stingar/mongodb:latest
docker push stingar/mongodb:1.1-ubuntu
# LOGOUT (!!) of DockerHub
docker logout