Giter Club home page Giter Club logo

dockerhub-pusher's Introduction

DockerHub Pusher

Script that downloads a repository from github, builds a Dockerfile located in the root and then publishes it into Docker Hub.

Setup guide:

You need to create 3 files in the root directory that have correct values in them.

  1. GITHUB_TOKEN
  2. HUB_USERNAME
  3. HUB_PASS

GITHUB_TOKEN

Go to Github > Settings > Developer settings > Personal access tokens > Generate new token

github token

You need to give it access to public repositories like in the screenshot.

HUB_USERNAME

This is the username you have at Docker Hub. This will be used when the image is pushed into Docker Hub. The images tag will be HUB_USERNAME/project_name. Project name is given when the docker image is run.

HUB_PASS

This can be either your Docker Hub password or a Docker Hub token. This is used to authenticate the push to Docker Hub.

Running the app

docker built . -t dockerhub-pusher
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock dockerhub-pusher -d GITHUB_LINK -n NAME

where GITHUB_LINK needs to be substituted by the HTTPS link to the repository and NAME will be used for the repo name in Docker Hub.

dockerhub-pusher's People

Contributors

jonne-sotala avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.