Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
60 views

(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 ...
fabpico's user avatar
  • 101
1 vote
1 answer
114 views

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 ...
Yanick Rochon's user avatar
1 vote
1 answer
379 views

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 ...
Evan Carroll's user avatar
  • 3,081
0 votes
1 answer
277 views

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&...
CodeWeed's user avatar
  • 139
2 votes
1 answer
9k views

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: ...
learningtech's user avatar
0 votes
1 answer
561 views

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 ...
Mukul Kumar Jha's user avatar
3 votes
5 answers
16k views

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 ...
Tracker1's user avatar
  • 133
1 vote
2 answers
74 views

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: ~ $...
Niloct's user avatar
  • 121
3 votes
1 answer
8k views

Am I even correctly following the documentation on creating and running a docker container below? [root@ ~]# [root@ ~]# docker run -d \ > --name basexhttp \ > --publish 1984:1984 \ > ...
Nicholas Saunders's user avatar
0 votes
1 answer
717 views

How can I create a MySQL docker container as below in the background: root:~# root:~# docker run -e MYSQL_ROOT_PASSWORD=pass --name sql-db -p 3306:3306 mysql & [1] 137878 root:~# 2020-09-01 08:25:...
Nicholas Saunders's user avatar
7 votes
2 answers
5k views

I thought I could slightly improve readability of repetitive sed calls when inserting secrets into a file with AWS CodeBuild. I defined a bash function: replaceConfig() { sed -i 's|{'$1'}|'${!1}'|' ...
Kyle's user avatar
  • 171
0 votes
1 answer
684 views

I want to customise my terminal on an Amazon linux device. I have colours using $(tput setaf 33);, user name with /u but the IP address not there. #blue=$(tput setaf 33); PS1="\[${blue}]\u$(tput ...
doug's user avatar
  • 533
1 vote
1 answer
1k views

I would like to Dockerize my existing vuejs app for staging , production and I used multi staged approach to create my app container and I'm using Ubuntu 18.04 and this is my, Dockerfile # build stage ...
soldier's user avatar
  • 115
5 votes
3 answers
13k views

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_var Value: aaa$...
JJ Yong's user avatar
  • 53
1 vote
1 answer
4k views

I am using docker to scale my service. I know there's a command called --add--host for adding host into /etc/host However, I have a bunch of hosts need to be added. It's just too long to launch a ...
rj487's user avatar
  • 143
0 votes
2 answers
342 views

My shell script looks like this: FAILED_REQUEST_DIRECTORY=/bla/bla2 \ java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1234 \ -jar /xyz/abc-service-1.0-SNAPSHOT.jar \ --...
systemdebt's user avatar
2 votes
1 answer
232 views

Why might the below bash commands give me an error on a Jenkins JNLP slave in Kubernetes cluster? Each work on a local machine. Error: Syntax error: redirection unexpected IFS='/' read -r -a branch &...
Brandon Clark's user avatar
1 vote
1 answer
481 views

I am trying to create a Chef cookbook that will run Hashicorp Consul in the background and will continue with the rest of the recipe and not get hung on starting Consul. I have tried the & method ...
Josh Kirby's user avatar
2 votes
1 answer
1k views

I want the Jenkins agent to build and start the server. I do this by specifying how to build and start the server in the Build step of the project configuration in Bash echo "Installing dependencies"...
Tran Triet's user avatar
1 vote
2 answers
5k views

I have a docker image that looks something like this: FROM ubuntu:16.04 # Install packages for building ruby RUN apt-get update && \ apt-get -y install build-essential git curl wget net-...
ConorSheehan1's user avatar
3 votes
1 answer
927 views

I am attempting to automate imports and exports of Oracle's PeopleSoft Application Designer. It is a GUI program but it can operate in the windows command line for certain tasks. This project has ...
Stoopkid's user avatar
  • 141
5 votes
2 answers
8k views

In this bash script under Linux Alpine they have (line 8): exec su-exec "$ZOO_USER" "$0" "$@" As far as I know, su-exec is however an Apache httpd dependecy - can I avoid it installing it under ...
Ta Mu's user avatar
  • 6,792