Git Product home page Git Product logo

ansiblemoleculeworkshop-lessons's Introduction

Molecule workshop lessons

Here you find the lessons where we start the parts of our workshops from.

Most of the lessons are also the target of their previous lessons.

Please start with a new folder for every lesson. Don't begin to work in the lessons folders.

Versions

This workshop was created with

  • Python: 3.8.1
  • Ansible: 2.9.4
  • Molecule: 3.0.2

Links

Running Molecule within a role with the latest image

IMPORTANT: If you want to run these tests locally your docker engine must use the storage-engine aufs

Just create or edit the config file /etc/docker/daemon.json with content

  "storage-driver": "aufs"
}

then run in a role directory

docker run \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v $(pwd):$(pwd) -w $(pwd) \
  --user root \
  quay.io/ansible/molecule:3.0.2 \
  /bin/sh -c "pip3 install testinfra; molecule test -s default"

you want to give us your power for the workshop

docker run -d --rm --name gitlab-runner \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /home/gitlab-runner:/home/gitlab-runner \
  -v /buiilds:/builds \
  --privileged \
  gitlab/gitlab-runner:latest
docker exec -it gitlab-runner /bin/bash
gitlab-runner register -n \
  --url https://gitlab.com/ \
  --registration-token GZqpz8aRxUqiY3FsNqAz \
  --executor docker --description "MYRUNNERNAME" \
  --docker-image "docker:19.03.1" \
  --docker-volumes /var/run/docker.sock:/var/run/docker.sock \
  --docker-volumes /home/gitlab-runner:/home/gitlab-runner \
  --docker-volumes /builds:/builds --tag-list molecule-workshop

This registeres a gitlab-runner on your local machine that can be used in the workshop. This is for careful use and should be killed after the workshop.

ansiblemoleculeworkshop-lessons's People

Contributors

unglaublicherdude avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.