hub-feedback icon indicating copy to clipboard operation
hub-feedback copied to clipboard

Host & Edit Dockerfile directly on docker hub

Open c33s opened this issue 9 years ago • 0 comments

Removing the requirement of installing docker locally or creating a bitbucket&github account to create (automated) builds would be awesome.

would love if you add an option to uploading/copy and paste the dockerfile to docker hub. everytime i edit the file (online), a new build is triggered.

so if i want to use the gitlab-ci and don't find a perfect image for me, it cost nothing more than:

  • createing a docker hub account
  • creating a new docker-hub repo myname/examplerepo
  • adding a "online" dockerfile (see simple example below)
  • automatic building is started by docker hub
  • use it on gitlab with image: myname/examplerepo:latest in gitlab-ci.yml

pros:

  • no need for a compatible repo (currently github & bitbucket only)
  • no need for more accounts,
  • no need for learning the docker cli commands
  • no need of locally installing docker
  • no need for uploading the image files

just edit the simple dockerfile directly on docker hub.

FROM php:7

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install --quiet --yes --force-yes --no-install-recommends wget 

RUN wget http://robo.li/robo.phar --quiet --

c33s avatar Aug 18 '16 02:08 c33s