Code Monkey home page Code Monkey logo

Comments (5)

art-of-dom avatar art-of-dom commented on September 15, 2024 2

After a little research it looks like we can do something similar to this: https://rust-lang-nursery.github.io/rust-cookbook/os/external.html#continuously-process-child-process-outputs.

It may be even simpler than this since we don't need to process the output, just display it.

from loop.

JonDum avatar JonDum commented on September 15, 2024

Might be helpful of what scripts/push-images.sh is in case this is actually not the expected behavior:

#!/bin/bash

set -e

blue=$(tput setaf 4)
magenta=$(tput setaf 5)
yellow=$(tput setaf 3)
normal=$(tput sgr0)

function tagnbag() {
	tag="$1"
	gitlabTag="registry.gitlab.com/companyname/$1"
	docker tag $tag $gitlabTag
	printf "\n${blue}Pushing $gitlabTag ${normal}\n"
	docker push $gitlabTag
}

tagnbag companyname/image1:prod
tagnbag companyname/image2:prod
tagnbag companyname/image3:prod
tagnbag companyname/image4:prod
tagnbag companyname/image5:prod

# so on and so forth

from loop.

Miserlou avatar Miserlou commented on September 15, 2024

😍 tagnbag 😍

This is an excellent use case that we should absolutely support.

I'm guessing this is possibly related to #7

Can you describe what does happen? Does it just exit with no output, or hang indefinitely? I'd like to be able to have a smallest possible reproduction of this.

from loop.

Miserlou avatar Miserlou commented on September 15, 2024

@art-of-dom any ideas about this one?

from loop.

JonDum avatar JonDum commented on September 15, 2024

Can you describe what does happen? Does it just exit with no output, or hang indefinitely? I'd like to be able to have a smallest possible reproduction of this.

I'm pretty sure loop is running it, but outputs nothing while it is running. If the command fails, it then outputs the entirety of the stdout of the command up until it failed and goes silent again.

from loop.

Related Issues (20)

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.