Skip to content

Instantly share code, notes, and snippets.

@hc2p
hc2p / .travis.yml
Last active November 13, 2020 04:26
This is a prove of concept for leveraging the travis directory caching for speeding up docker builds. It works by configuring the docker deamon to use a folder under current user's (travis) control. That way you have the privileges to use the caching feature of travis ci.
sudo: false
services:
- docker
before_script:
- sudo service docker stop
- if [ "$(ls -A /home/travis/docker)" ]; then echo "/home/travis/docker already set"; else sudo mv /var/lib/docker /home/travis/docker; fi
- sudo bash -c "echo 'DOCKER_OPTS=\"-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -g /home/travis/docker\"' > /etc/default/docker"
- sudo service docker start

Keybase proof

I hereby claim:

  • I am hc2p on github.
  • I am hc2p (https://keybase.io/hc2p) on keybase.
  • I have a public key ASBpxWiTPsUoj7RqN-8XiOGL8pV4VKMqPlKO7uXKXfrMAAo

To claim this, I am signing this object:

@hc2p
hc2p / nexus.yaml
Created March 1, 2023 15:29
Manifest for installing Nexus OSS on Kubernetes
apiVersion: v1
kind: Namespace
metadata:
name: nexus
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nexus-pvc
namespace: nexus