Questions tagged [bash]
Most common system shell in Unix/Linux environments. Integrates very well with other softwares having a command line interface. Widely used in CI scripts and buildscripts.
43 questions
0 votes
1 answer
68 views
How to configure container (docker compose) to start with "bash" in "Exec" of Docker Desktop?
(Was asked here, was closed because "not about programming or software development.") Situation: I have a Docker Compose setup with multiple containers from different images. I have Docker ...
0 votes
1 answer
55 views
Linux: difference between outputs of df -h and du -sh * [closed]
I want to understand how much disk space I have left on my virtual machine. I am running df -h and get results. Then to doublecheck I am running du -sh * to see which folders consume the space. I am ...
1 vote
1 answer
118 views
Are Bitbucket branches pipelines running before or after the commit to that branch?
I am adding a production deployment pipeline to a Bitbucket project. The YAML file is roughly image: php:8.2.20 pipelines: branches: master: - step: name: Deploying to ...
-1 votes
1 answer
2k views
unzip | caution: filename not matched [closed]
I'm trying to unzip multiple files which has a prefix in common service1.zip service-2.zip service_3.zip and so on... Now, when I try to unzip all those files at once using the command unzip service*....
1 vote
1 answer
380 views
Can you use the Secure File API if the container doesn't have bash? Like Alpine?
GitLab offers a Project-level Secure Files, the API has you add this to your .gitlab-ci.yml, test: variables: SECURE_FILES_DOWNLOAD_PATH: './where/files/should/go/' script: - curl --silent ...
1 vote
2 answers
677 views
Reuse block string without processing it on the fly
I have a block of code that work fine at the moment. But reuse that code is a little ugly. pipeline { agent any stages { stage('Stage 1') { steps { script { ...
0 votes
1 answer
277 views
docker command substitution fails on gitlab
I am trying to run the following command as part of a deployment in Gitlab. TIMESTAMP=$(date +%s) docker stack deploy --with-registry-auth --compose-file $(`printf "docker-compose.%s.unimark.yaml&...
2 votes
1 answer
753 views
How to modify/allow firewall rules of a GCP instance directly from the CLI?
Is there anyway to allow the ports from CLI? I have an instance in GCP and I have installed a service which by default runs on Port:8080. I know there is an option to change the firewall rules to ...
2 votes
1 answer
9k views
ansible Unsupported parameters for (command) module:
I'm trying to run a shell command in an ansible task but I keep getting an error. This is the task item and the shell command I want to run: - name: Set File Watch Limit ansible.builtin.shell: ...
1 vote
1 answer
2k views
Using access tokens on Dockerfile to clone repository: RUN command error
In a Dockerfile, I'm trying to clone several Gitlab repositories that are specified in a file, one per line, using an access token passed as an environment variable set in docker-compose.yml: COPY my-...
0 votes
1 answer
562 views
Setting up CircleCI to AWS EC2 for a simple node application deployment
I have a simple node application running on the EC2 instance, everything is working just fine and I want to integrate this application with CircleCI for the continuous deployment. I have been ...
2 votes
1 answer
14k views
Why does Jenkins Pipeline script returnStatus value not match status examined in shell?
This is my little newbie Groovy script, trying to cobble together a very beginner understanding of Jenkins Pipelines: node { stage("hello") { def var = "val" echo "${var}&...
3 votes
5 answers
16k views
How can I get the Docker target platform inside the Build Environment / Dockerfile
I'm doing multi-platform builds with buildx and would like to know if there is a way to determine what platform is currently being build so I can avoid certain steps for certain environments. For ...
1 vote
2 answers
1k views
Command "git [command] --help" opens as HTML in my code editor - no output to terminal. How do I revert to default behavior?
When I type git reset --help I don't get output in the bash terminal, but a new tab opens in my code editor to reveal some dense HTML. How can I change Git's behavior to display the help message in ...
1 vote
2 answers
75 views
od output is confusing
This isn't a deploy related question, but I believe it belongs here. I've found out about the od tool yesterday, and began to fiddle with it. The question is about utf-8 encoding. See the examples: ~ $...