Migrate to spritsail/busybox
This commit is contained in:
		
							
								
								
									
										51
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										51
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -1,15 +1,12 @@
 | 
				
			|||||||
pipeline:
 | 
					pipeline:
 | 
				
			||||||
  build:
 | 
					  build:
 | 
				
			||||||
    image: docker
 | 
					    image: spritsail/docker-build
 | 
				
			||||||
    volumes:
 | 
					    volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
 | 
				
			||||||
      - /var/run/docker.sock:/var/run/docker.sock
 | 
					    repo: busybox-dev
 | 
				
			||||||
    commands:
 | 
					 | 
				
			||||||
      - docker build --no-cache --pull -t busybox-dev .
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test:
 | 
					  test:
 | 
				
			||||||
    image: docker
 | 
					    image: docker
 | 
				
			||||||
    volumes:
 | 
					    volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
 | 
				
			||||||
      - /var/run/docker.sock:/var/run/docker.sock
 | 
					 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - docker run --rm busybox-dev /bin/sh -xec 'true'
 | 
					      - docker run --rm busybox-dev /bin/sh -xec 'true'
 | 
				
			||||||
      - docker run --rm busybox-dev /bin/sh -xec 'test -f /lib/libc-*.so'
 | 
					      - docker run --rm busybox-dev /bin/sh -xec 'test -f /lib/libc-*.so'
 | 
				
			||||||
@@ -19,28 +16,26 @@ pipeline:
 | 
				
			|||||||
      - test "$(docker run --rm busybox-dev /bin/sh -xec 'echo This is a test string | md5sum | cut -f1 -d\ ' | tee /dev/stderr)" = 'b584c39f97dfe71ebceea3fdb860ed6c'
 | 
					      - test "$(docker run --rm busybox-dev /bin/sh -xec 'echo This is a test string | md5sum | cut -f1 -d\ ' | tee /dev/stderr)" = 'b584c39f97dfe71ebceea3fdb860ed6c'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  publish:
 | 
					  publish:
 | 
				
			||||||
    image: docker
 | 
					    image: spritsail/docker-publish
 | 
				
			||||||
    secrets: [ DOCKER_USER, DOCKER_PASS ]
 | 
					    when: { branch: [ master ], event: [ push, tag, deployment ] }
 | 
				
			||||||
    when:
 | 
					    volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
 | 
				
			||||||
      event: [push, tag, deployment]
 | 
					    secrets: [ docker_username, docker_password, microbadger_token ]
 | 
				
			||||||
    volumes:
 | 
					    from: busybox-dev
 | 
				
			||||||
      - /var/run/docker.sock:/var/run/docker.sock
 | 
					    repo: spritsail/busybox
 | 
				
			||||||
    commands:
 | 
					
 | 
				
			||||||
      - docker login -u $DOCKER_USER -p $DOCKER_PASS
 | 
					 | 
				
			||||||
      - docker tag busybox-dev adamant/busybox:latest
 | 
					 | 
				
			||||||
      - docker tag busybox-dev adamant/busybox:1.1
 | 
					 | 
				
			||||||
      - docker push adamant/busybox
 | 
					 | 
				
			||||||
      - docker rmi busybox-dev adamant/busybox
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  downstream:
 | 
					  downstream:
 | 
				
			||||||
    image: plugins/downstream
 | 
					    image: plugins/downstream
 | 
				
			||||||
    when:
 | 
					    when: { status: [ success ], event: [ push, tag, deployment ] }
 | 
				
			||||||
      event: [push, tag, deployment]
 | 
					    secrets: [ downstream_token ]
 | 
				
			||||||
    secrets: [ DOWNSTREAM_TOKEN ]
 | 
					    server: https://drone.spritsail.io
 | 
				
			||||||
    server: https://drone.adam-ant.co.uk
 | 
					 | 
				
			||||||
    fork: true
 | 
					    fork: true
 | 
				
			||||||
    repositories:
 | 
					    repositories:
 | 
				
			||||||
      - Adam-Ant/docker-busybox@libressl
 | 
					      - spritsail/busybox@libressl
 | 
				
			||||||
    when:
 | 
					
 | 
				
			||||||
      event:  [ push, tag, deployment]
 | 
					  notify:
 | 
				
			||||||
      status: [ success ]
 | 
					    image: appleboy/drone-telegram
 | 
				
			||||||
 | 
					    when: { status: [ success, failure ] }
 | 
				
			||||||
 | 
					    secrets: [ telegram_token, telegram_to ]
 | 
				
			||||||
 | 
					    message: |
 | 
				
			||||||
 | 
					      *{{repo.owner}}/{{repo.name}} [{{commit.branch}}]*: Build #{{build.number}}: *{{uppercase build.status}}*
 | 
				
			||||||
 | 
					      {{build.link}}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,12 @@
 | 
				
			|||||||
FROM frebib/debian-builder as builder
 | 
					FROM spritsail/debian-builder as builder
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARG ARCH=x86_64
 | 
					ARG ARCH=x86_64
 | 
				
			||||||
ARG ARCH_ALT=i686
 | 
					ARG ARCH_ALT=i686
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARG GLIBC_VER=2.27
 | 
					ARG GLIBC_VER=2.27
 | 
				
			||||||
ARG BUSYB_VER=1.28.0
 | 
					ARG BUSYB_VER=1.28.1
 | 
				
			||||||
ARG SU_EXEC_VER=v0.3
 | 
					ARG SU_EXEC_VER=v0.3
 | 
				
			||||||
ARG TINI_VER=v0.16.1
 | 
					ARG TINI_VER=v0.17.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARG PREFIX=/output
 | 
					ARG PREFIX=/output
 | 
				
			||||||
WORKDIR $PREFIX
 | 
					WORKDIR $PREFIX
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										19
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								README.md
									
									
									
									
									
								
							@@ -1,9 +1,16 @@
 | 
				
			|||||||
[hub]: https://hub.docker.com/r/adamant/busybox
 | 
					[hub]: https://hub.docker.com/r/spritsail/busybox
 | 
				
			||||||
 | 
					[git]: https://github.com/spritsail/busybox
 | 
				
			||||||
 | 
					[drone]: https://drone.spritsail.io/spritsail/busybox
 | 
				
			||||||
[musl]: https://www.musl-libc.org/
 | 
					[musl]: https://www.musl-libc.org/
 | 
				
			||||||
[uclibc]: https://www.uclibc.org/
 | 
					[uclibc]: https://www.uclibc.org/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# [adamant/busybox][hub] - A tiny image, nurtured from source
 | 
					# [spritsail/busybox][hub] - A tiny image, nurtured from source
 | 
				
			||||||
[](https://microbadger.com/images/adamant/busybox) [][hub] [][hub] [][hub]
 | 
					[](https://microbadger.com/images/spritsail/busybox)
 | 
				
			||||||
 | 
					[][hub]
 | 
				
			||||||
 | 
					[][git]
 | 
				
			||||||
 | 
					[][hub]
 | 
				
			||||||
 | 
					[][hub]
 | 
				
			||||||
 | 
					[][drone]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This Docker base image has been custom crafted from source to provide just enough functionality in the tiniest footprint. Included in the image are the following:
 | 
					This Docker base image has been custom crafted from source to provide just enough functionality in the tiniest footprint. Included in the image are the following:
 | 
				
			||||||
 - GNU libc6 (glibc) - _C standard library, found in most linux distributions_ | https://www.gnu.org/software/libc/
 | 
					 - GNU libc6 (glibc) - _C standard library, found in most linux distributions_ | https://www.gnu.org/software/libc/
 | 
				
			||||||
@@ -11,15 +18,15 @@ This Docker base image has been custom crafted from source to provide just enoug
 | 
				
			|||||||
 - LibreSSL - _An OpenSSL fork aiming to modernise code and improve security_ | https://www.libressl.org/
 | 
					 - LibreSSL - _An OpenSSL fork aiming to modernise code and improve security_ | https://www.libressl.org/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Additionally, the following small utilities have been included for convenience and good container practice:
 | 
					Additionally, the following small utilities have been included for convenience and good container practice:
 | 
				
			||||||
 - su-exec - _A convenient utility for changing user and dropping privilege_ | https://github.com/ncopa/su-exec
 | 
					 - su-exec - _A convenient utility for changing user and dropping privilege_ | https://github.com/frebib/su-exec
 | 
				
			||||||
 - tini - _A tiny but valid `init` for containers_ | https://github.com/krallin/tini
 | 
					 - tini - _A tiny but valid `init` for containers_ | https://github.com/krallin/tini
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Supported tags and respective `Dockerfile` links
 | 
					## Supported tags and respective `Dockerfile` links
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There are two main streams of this image: with and without LibreSSL. You can find the dockerfiles below
 | 
					There are two main streams of this image: with and without LibreSSL. You can find the dockerfiles below
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* `1.0`, `latest` - [(master/dockerfile)](https://github.com/Adam-Ant/docker-busybox/blob/master/Dockerfile)
 | 
					* `1.0`, `latest` - [(master/dockerfile)](https://github.com/spritsail/busybox/blob/master/Dockerfile)
 | 
				
			||||||
* `1.0-libressl`, `libressl` - [(libressl/dockerfile)](https://github.com/Adam-Ant/docker-busybox/blob/libressl/Dockerfile)
 | 
					* `1.0-libressl`, `libressl` - [(libressl/dockerfile)](https://github.com/spritsail/busybox/blob/libressl/Dockerfile)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Goals for a base image
 | 
					## Goals for a base image
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user