Skip to content

Instantly share code, notes, and snippets.

View ronaldmiranda's full-sized avatar

Ronald Carvalho ronaldmiranda

View GitHub Profile
################################################################
# Rancher Provider
################################################################
# Enable Rancher Provider.
[rancher]
# Default base domain used for the frontend rules.
# Can be overridden by setting the "traefik.domain" label on an service.
#
FROM debian:buster-slim
ENV DEBIAN_FRONTEND noninteractive
USER root
WORKDIR /opt/app/
RUN apt-get update && apt-get -y install --no-install-recommends \
lsb-release=10.2* \
ca-certificates=20190110 \
git=1:2* \
#!/bin/bash
STABLE_GIT_COMMIT_SUFFIX=$([[ -n "$(git status --porcelain)" ]] && echo '-dirty')
echo "STABLE_GIT_COMMIT $(git rev-parse --short HEAD)"
echo "STABLE_GIT_COMMIT_SUFFIX $STABLE_GIT_COMMIT_SUFFIX"
echo "STABLE_GIT_DATE $(TZ=UTC git show --quiet --date='format-local:%Y-%m-%dT%H:%M:%SZ' --format="%cd")"
echo "STABLE_K8S_VERSION $(git log -n 1 --pretty='format:%cd' --date=format:'%Y.%m.%d.%H%M')$STABLE_GIT_COMMIT_SUFFIX"
echo "STABLE_DOCKER_TAG $(git log -n 1 --pretty='format:%cd-%h' --date=format:'%Y%m%d%H%M')$STABLE_GIT_COMMIT_SUFFIX"
echo "STABLE_VERSION_LABEL $(date '+%y.%m.%d.%H%M')$STABLE_GIT_COMMIT_SUFFIX"

Keybase proof

I hereby claim:

  • I am ronaldmiranda on github.
  • I am rronaldm (https://keybase.io/rronaldm) on keybase.
  • I have a public key whose fingerprint is EE1E 87A5 0A62 3C34 37A2 05C0 04D4 85ED 72AB D2BC

To claim this, I am signing this object: