Skip to content

Instantly share code, notes, and snippets.

View lerrigatto's full-sized avatar
🐻
Bla bla bla

Enrico La Cava lerrigatto

🐻
Bla bla bla
View GitHub Profile
@lerrigatto
lerrigatto / list_user_credentials.groovy
Last active March 28, 2018 12:51
jenkins groovy script to list user credentials
/**
Original Author: kuisathaverat
Description: List ID and Description of all credentials on a Jenkins Instance.
Source: https://github.com/cloudbees/jenkins-scripts/blob/master/list-credential.groovy
Changes: lerrigatto - added credential class name
**/
import com.cloudbees.plugins.credentials.Credentials
Set<Credentials> allCredentials = new HashSet<Credentials>();
Verifying that +lerrigatto is my blockchain ID. https://onename.com/lerrigatto
@lerrigatto
lerrigatto / Dockerfile
Created January 18, 2016 19:36
Odoo Dockerfile
FROM odoo-deboot:latest
MAINTAINER Enrico La Cava "[email protected]"
RUN useradd -s /sbin/nologin -u 1000 odoo
RUN mkdir /var/lib/odoo
RUN chown odoo:odoo /var/lib/odoo
COPY requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt
ENV PATH /usr/local/bin:/usr/bin:/bin:$PATH
USER odoo
EXPOSE 8069
@lerrigatto
lerrigatto / mkimage.sh
Created January 14, 2016 16:36
Create a docker image based on debootstrap(-ed) debian jessie, suitable to run odoo
#!/bin/bash
# debootstrap distro parameter
suite="jessie"
# docker build tag
tag="odoo-deboot:latest"
# override if you want to build to a non-temp directory
dir=
rootfs_chroot() {