# Setup gosu for easier command execution
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-amd64" \
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-amd64.asc" \
&& gpg --verify /usr/local/bin/gosu.asc \
&& rm /usr/local/bin/gosu.asc \
&& rm -r /root/.gnupg/ \
&& chmod +x /usr/local/bin/gosu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pypi configuration file : ~/.pypirc | |
``` | |
[distutils] | |
index-servers = | |
nexus | |
[nexus] | |
repository = http://<NEXUS_URL>/repository/<PYTHON_REPOSITORY_NAME>/ | |
username = ******* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Démarrer un serveur Jenkins avec Docker : | |
docker run -d -p 8888:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkinsci/blueocean:latest | |
docker run -d -p 8888:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --privileged jenkinsci/blueocean:latest | |
Note : Les données seront persistées dans le volume "jenkins_home" | |
○ Accéder à http://localhost:8888 et entrer le mot de passe admin indiqué dans les logs de démarrage du serveur | |
○ Sélectionner les plugins souhaités |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[http] | |
sslverify = false | |
[user] | |
name = Guillaume Dupin | |
email = [email protected] | |
[color] | |
# Enable colors in color-supporting terminals | |
ui = auto | |
[alias] | |
st = status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Steps to build and install tmux from source. | |
# Takes < 25 seconds on EC2 env [even on a low-end config instance]. | |
# C compiler must be installed ! e.g. "yum -y install gcc" | |
VERSION=2.5 | |
sudo yum -y remove tmux | |
sudo yum -y install wget tar libevent-devel ncurses-devel | |
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz | |
tar xzf tmux-${VERSION}.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VBoxManage.exe list vms | |
"default" {f60ab799-3b88-4830-8662-cdda7d1d4765} | |
VBoxManage.exe showvminfo f60ab799-3b88-4830-8662-cdda7d1d4765 | |
VBoxManage.exe list hdds | |
UUID: d00b24b4-9efd-452a-98af-3e2f91d6eef8 | |
[...] | |
VBoxManage.exe closemedium e0befe42-e1fe-4cd8-8965-23d3e41253e0 --delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
disk = './secondDisk.vdi' | |
Vagrant.configure(2) do |config| | |
#config.vm.box = "ubuntu/xenial64" | |
config.vm.box = "VM-CO72-BASE" | |
# config.vm.box_check_update = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get compose file | |
wget https://raw.githubusercontent.com/containous/traefik/master/examples/compose-traefik.yml | |
# Edit it to use different frontents for the 2 backends | |
# Launch services | |
docker-compose -f compose-traefik.yml up | |
# Connect to Traefik UI : http://IP:8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get install ... | |
# grab gosu for easy step-down from root | |
ENV GOSU_VERSION 1.10 | |
RUN set -x \ | |
&& curl -sSLo /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \ | |
&& curl -sSLo /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \ | |
&& export GNUPGHOME="$(mktemp -d)" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/sysconfig/docker | |
HTTP_PROXY=http://10.31.255.65:8080 | |
NO_PROXY=localhost,127.0.0.1 | |
http_proxy=http://10.31.255.65:8080 | |
no_proxy=localhost,127.0.0.1 | |
OlderNewer