semaphoreci / agent Goto Github PK
View Code? Open in Web Editor NEWAgent for running Semaphore 2.0 jobs
Agent for running Semaphore 2.0 jobs
A customer reported this issue, and I was also able to reproduce it. A better buffering scheme is necessary.
Example:
2019/07/23 09:33:01.882436 job.go:314: {"directive":"Pulling docker images...","event":"cmd_finished","exit_code":0,"finished_at":1563874381,"started_at":1563874377,"timestamp":1563874381}
2019/07/23 09:33:01.882441 docker_compose_executor.go:123: Starting stateful shell
2019/07/23 09:33:01.882727 docker_compose_executor.go:351: Waiting for initialization
2019/07/23 09:33:01.882739 docker_compose_executor.go:356: (tty) export PS1=''
2019/07/23 09:33:01.882744 docker_compose_executor.go:356: (tty) stty -echo
2019/07/23 09:33:01.882748 docker_compose_executor.go:356: (tty) echo stty `stty -g` > /tmp/restore-tty
2019/07/23 09:33:01.882751 docker_compose_executor.go:356: (tty) cd ~
2019/07/23 09:33:01.882755 docker_compose_executor.go:356: (tty) echo '87d140552e404df69f6472729d2b2c3'
2019/07/23 09:33:02.260709 docker_compose_executor.go:356: (tty) Creating network "tmp_default" with the default driver
2019/07/23 09:33:03.629848 docker_compose_executor.go:356: (tty) Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown
2019/07/23 09:33:03.668329 docker_compose_executor.go:362: Initialization complete
The Job log output should indicate that there is an issue.
Example:
If the password contains a shell quote, e.g: hello"dasda@das#adasda
, our approach of providing the password breaks the shell:
echo "hello"dasda@das#adasda" | docker login ...
Two solutions I see in this situation:
cat passord_file.txt | docker login...
Will have to test the two approaches to figure out which is the best one to use.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.