How to configure container (docker compose) to start with "bash" in "Exec" of...
(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 Desktop to...
View ArticleRunning bash scripts against a K8S Manifest file which uses Helm templating
I want to run a kubesec scan against some of my K8S manifest files, the issue is that I'm using Helm templating in my files and when I try to execute a simple bash script I get errors like...
View ArticleLinux: 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...
View ArticleAre Bitbucket branches pipelines running before or after the commit to that...
I am adding a production deployment pipeline to a Bitbucket project. The YAML file is roughlyimage: php:8.2.20pipelines: branches: master: - step: name: Deploying to production deployment: production...
View ArticleHow to pass Gitlab env var with sensitive characters to bash script?
I have the following situation:I'm storing sensitive data in Gitlab's environment and then passing these variables to a deployment script in bash.Gitlab's env var:Key: sensitive_varValue: aaa$bbb*%Then...
View ArticleAdd mapping ip and host into /etc/hosts with docker
I am using docker to scale my service.I know there's a command called --add--host for adding host into /etc/hostHowever, I have a bunch of hosts need to be added. It's just too long to launch a docker...
View Articlenpm not found but installed from the shell script file in Dockerfile
I have a following Dockerfile:FROM ubuntu:18.04RUN mkdir app && cd appWORKDIR app/RUN apt-get update && apt-get install -y \ software-properties-common \ curl \ sudo \&& curl -O...
View ArticleAutomatically write new bash history to change-log file
Every time I ssh into a server I might issue some bash commands and then sign off (hup signal?). Is there a way to write the shell commands that I issued on the server to some changelog file?I want to...
View ArticleIs \u the only way to output the user from .bashrc?
I can't get it to work on my Mac (catalina version 10.15.2).\u works on ubuntu when I test it but not on my Mac. I want to customize my mac terminal. Colors work fine on my Mac and it's reading the...
View ArticleTerraform code in AWS deploys instance but not not running bash script
I have Terraform code in AWS deploying an instance but not not running bash script. Script runs updates, deploys apache, creates small page etc. I can connect to instance after it's deployed, but there...
View ArticleRunning execute-command on a Fargate task with env vars
I have a Fargate task that I'm spinning up from a CICD process in order to run a MySQL database import. The container spins up fine and, on the task container, I can access the environment variables as...
View ArticleUnable to run helm --set command in bash pipeline when using semicolon
I have a CICD pipeline in yaml which runs a bash command to run a series of helm commands.Part of the process is to insert values in the pipeline into the container which is installed by helm chart via...
View ArticleGet all modified files with pipeline and Jenkins
I'm trying to get all changed files in repository, by running bash script inside Jenkins pipelinesh '''#!/bin/bashfiles=($(git whatchanged --name-only --pretty="" origin..HEAD))'''But getting...
View Articleunzip | caution: filename not matched [closed]
I'm trying to unzip multiple files which has a prefix in common service1.zipservice-2.zipservice_3.zip and so on...Now, when I try to unzip all those files at once using the command unzip service*.zip...
View ArticleCan 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...
View Article--- Article Not Found! ---
*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***
View ArticleReuse 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 { withCredentials([...
View Articlehow to pass run time environment variables into bash script
I am using GitHub actions to create an virtual machine in Azure where I am getting some variables as build parameters and storing it into the environment variables. now I need to use that environment...
View Articledocker 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"...
View ArticleHow 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 allow...
View Article