Skip to content

Instantly share code, notes, and snippets.

@hlavki
hlavki / deleteSnapshots.groovy
Last active May 28, 2018 05:21
Delete relased snapshots images from nexus 3 docker registry
import org.sonatype.nexus.repository.storage.Asset
import org.sonatype.nexus.repository.storage.Component
import org.sonatype.nexus.repository.storage.Query
import org.sonatype.nexus.repository.storage.StorageFacet
// https://gist.github.com/kellyrob99/2d1483828c5de0e41732327ded3ab224
// https://gist.github.com/emexelem/bcf6b504d81ea9019ad4ab2369006e66
final SNAPSHOT_SUFFIX = "-SNAPSHOT"
final REPOSITORY = "docker"
@hlavki
hlavki / Dockerfile
Last active January 19, 2018 07:30
Build mattermost-mobile in ubuntu:xenial
FROM ubuntu:xenial
RUN apt-get clean && apt-get update && apt-get install -y locales && locale-gen en_US.UTF-8 && rm -rf /var/lib/apt/lists/*
ENV USERNAME=docker
ENV DEVEL_HOME="/home/${USERNAME}/develop"
ENV ANDROID_HOME="${DEVEL_HOME}/android/sdk"
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' \
PATH="${ANDROID_HOME}/platform-tools:${ANDROID_HOME}/tools:$PATH" \
SUBMIT_ANDROID_TO_GOOGLE_PLAY=false ANDROID_BUILD_FOR_RELEASE=true SUPPLY_TRACK=beta