question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for pre-services setup steps

See original GitHub issue

The services capability is an elegant way to automate the setup and tear down of a service, but there are use-cases where preparation tasks need to occur in a hook before services are started.

Possible examples include:

  • Adjusting system parameters (e.g. file descriptor limits, socket buffer sizes, etc)
  • Creating filesystem resources shared/used by containers
  • Configuring ACLs
  • Configuring network adapters and ip filters
  • Installing packages

See https://github.com/actions/virtual-environments/issues/348 for an example use case of a workaround (although note, it will be solved by other means)

One form this could take would be something like:

runs-on: ubuntu-latest
setup-steps:
  - name: Stop Mysql
     shell: bash
     run: |
       sudo service mysql stop || true
services:
  # services
steps:
  # post-services steps

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
gitfoolcommented, Feb 12, 2020

Here’s another use case: I’d like to use containers to run my workflows, but I need to do some particular docker setup on the machine before I can. Example: setting up multiarch / QEMU support in Docker.

Another example might be configuring a docker credential helper or actually running docker login so that I can subsequently run a job / service using a container image from a private registry.

1reaction
hrosscommented, Mar 30, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Steps In Pre-Service Procedure, Basic Table Setup
Step 3-Escort the client to the front desk to schedule the next appointment and pay for the service. Set up a date, time,...
Read more >
The Blueprint Process for Enhancing Early Childhood ...
The Blueprint Process features a sequence of activities and supports for building an emphasis on cultural, linguistic and ability diversity into a preservice...
Read more >
Preservice Teachers' Conceptions of Effective and Ineffective ...
This study draws upon these two research literatures to examine the extent to which preservice teachers who are engaged in reflective practice consider ......
Read more >
(PDF) Supporting Struggling Pre-Service Teachers
Abstract. This document summarizes the major themes identified in a study of how Alberta mentor teachers support preservice teachers who are ...
Read more >
Teacher Mentoring in Service of Preservice ...
Three ideas of learning to teach lie at the core of this approach: First, psychological and emotional support is central to preservice teachers' ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found