GithubHelp home page GithubHelp logo

quickstart-tutorials's Introduction

Jenkins Tutorial Files

This repository includes the files necessary for transitioning from docker to docker compose in our Jenkins tutorials and installation guides.

How to Set Up the Repository in Gitpod?

  • To initialize your Gitpod workspace, prepend gitpod.io/# to any GitHub, GitLab, or Bitbucket repository URL.
  • Access our Gitpod workspace here.
  • If you plan to use Gitpod regularly, we recommend installing the Gitpod extension. This extension adds a Gitpod button to every GitHub repository you visit, making it easy to launch a workspace. You can find the extension here for Chromium and here for Firefox.

Gitpod

Gitpod is a cloud-based development environment designed for teams. It supports various IDEs, including VScode, IntelliJ, and many more, enabling efficient and secure software development.

Steps to Run Examples from the Repository

  • Use docker compose up to run examples from this project. Currently, we have four working examples:

    • maven
    • node
    • python
    • multibranch pipeline
  • To run different examples with docker compose up -d, append the example name to the command, like so:

    • maven => docker compose --profile maven up -d
    • python => docker compose --profile python up -d
    • node => docker compose --profile node up -d
    • multi => docker compose --profile multi up -d
  • If no tutorial-related argument is used (i.e., docker compose --profile default up -d), the command runs the latest default example.

  • If no argument regarding profiles is used at all (i.e., docker compose up -d), then you will have a Jenkins controller desperately waiting for a non existent agent to connect.

  • If you prefer to build images yourself, append -f build-docker-compose.yaml after docker compose. For example, to build the node tutorial Jenkins instance, use: docker compose -f build-docker-compose.yaml --profile node up -d.

How to Verify Jenkins Installation

  • Check the status of the container with the docker ps or docker compose ps commands.
  • Access your running Jenkins instance at http://127.0.0.1:8080.
  • On Gitpod, if containers are running successfully after entering docker compose --profile <tutorial-name> up, a pop-up titled A service is available on port 8080 should appear. If it doesn't, you can view the running service in the PORTS section on the right side of the terminal.

Clean Up Instructions

  • To stop and remove running containers, use docker compose --profile <tutorial-name> down.
  • If you encounter a Resource is still in use warning, use the --remove-orphans option which would give docker compose --profile <tutorial-name> down --remove-orphans.
  • To remove the created volumes (should you need to restart from scratch), add the -v option which would give docker compose --profile <tutorial-name> down -v.

Suppressing Jenkins Warning using JCASC

To improve the Gitpod experience with Jenkins, we've suppressed a reverse proxy setup warning in Jenkins that was causing issues in the Gitpod environment. We achieved this using Jenkins Configuration as Code (JCASC) and added the following property to the JCASC YAML file:

jenkins:
  disabledAdministrativeMonitors:
    - "hudson.diagnosis.ReverseProxySetupMonitor"

For more detailed information about this configuration and the context behind it, please refer to the corresponding issue.

Encountering Issues?

If you encounter any issues while running the examples, please open an issue in this repository. We will be happy to help you resolve the issue. Please let us know the following details when you open an issue:

  • The command you used to run the example.
  • The error message you received.
  • The steps you took before encountering the issue.
  • The version of docker you're using via the docker version command.
  • The version of docker compose you're using via the docker compose version command.

The tutorials have been tested with:

  • Docker version 24.0.9
  • Docker Compose version 2.23.3

quickstart-tutorials's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar gounthar avatar markewaite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

quickstart-tutorials's Issues

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.