/gitlab-ci

Custom docker image for quick deploys using GitLab runner https://hub.docker.com/r/cunpey/gitlab-ci

Primary LanguageDockerfile

Lightweight CI/CD Docker image

Docker Stars Docker Pulls Docker Automated Docker Build

Created for simple CI/CD Pipelines* such as Bitbucket's or GitLab's.

Available at Docker Hub: https://hub.docker.com/r/cunpey/gitlab-ci

It uses bash, SSH and LFTP to connect a remote server and mirror (upload) the Git repository using the Git CI/CD repo vendor.

The tzdata package is to set the TimeZone when using date like so: CURRENT_DATE=$(TZ="America/Argentina/Buenos_Aires" date +%F_%H-%M-%S);

Includes:

Alpine Linux

"Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox."

https://alpinelinux.org/

Node.js ( 10.16.1 )

"Node.js is a JavaScript-based platform for server-side and networking applications."

https://nodejs.org/

Bash

"The GNU Bourne-Again Shell"

http://savannah.gnu.org/projects/bash/

OpenSSH

"OpenSSH is the premier connectivity tool for remote login with the SSH protocol."

https://www.openssh.com/

LFTP

"LFTP is a sophisticated file transfer program supporting a number of network protocols (ftp, http, sftp, fish, torrent)."

https://lftp.yar.ru/

tzdata

"The Time Zone Database (often called tz or zoneinfo) contains code and data that represent the history of local time for many representative locations around the globe"

https://www.iana.org/time-zones

Notes:

  • It'll automatically update Linux and install the non-cached packages.
  • Packages installation will run quietly (apk add --no-cache <package> -q).
  • It'll automatically use bash instead of Alpine's default shell (sh).