From 22618db24c6452e5ee5d979a938cc3925faa1f54 Mon Sep 17 00:00:00 2001 From: Bruno Bzeznik Date: Thu, 29 Nov 2018 16:13:14 +0100 Subject: [PATCH] More doc --- ci/gitlab-ci_memo.md | 6 ++++++ ci/openstack_memo.md | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 ci/gitlab-ci_memo.md diff --git a/ci/gitlab-ci_memo.md b/ci/gitlab-ci_memo.md new file mode 100644 index 0000000..ce135ec --- /dev/null +++ b/ci/gitlab-ci_memo.md @@ -0,0 +1,6 @@ +# 1 - From gitlab, get the registration token + +# 2 - Register the runner: +gitlab-runner register --executor shell --name phylodev --url https://git.metabarcoding.org --registration-token XXXXXXXXXXXX_xxxxx" + +# 3- Into the repository, create .gitlab-ci.yml diff --git a/ci/openstack_memo.md b/ci/openstack_memo.md index 87b51ae..20af5bf 100644 --- a/ci/openstack_memo.md +++ b/ci/openstack_memo.md @@ -5,17 +5,17 @@ source ./ciment-nix-ci-openrc.sh # Instanciate a new server ``` -openstack server create --flavor m1.medium --image nixos-18.03-x86_64 --key-name bzizou-rsa --nic net-id=ciment-nix-ci-int-net,v4-fixed-ip=192.168.0.200 phyloalps +openstack server create --flavor m1.medium --image nixos-18.03-x86_64 --key-name bzizou -rsa --nic net-id=ciment-nix-ci-int-net phyloalps ``` # Get a routed ip address ``` -openstack floating ip create ciment-nix-ci-ext-net +openstack floating ip create --subnet ciment-nix-ci-ext-pub-subnet ciment-nix-ci-ext-net ``` # Set the ip address to the server ``` -openstack server add floating ip phyloalps 10.1.135.13 +openstack server add floating ip phyloalps 129.88.195.27 ``` # Allow ssh @@ -23,4 +23,9 @@ openstack server add floating ip phyloalps 10.1.135.13 openstack security group create my-ssh openstack security group rule create --ingress --dst-port 22 --protocol tcp my-ssh openstack server add security group phyloalps my-ssh -``` \ No newline at end of file +``` + +# Faire une image +``` +openstack server image create phyloalps --name nixos-18.09-x86_64 +``` -- GitLab