Quantcast
Channel: Active questions tagged bash - DevOps Stack Exchange
Browsing all 48 articles
Browse latest View live

How to gain root access to an existing docker container?

Able to get a response from the docker hub basex container:nicholas $ nicholas $ lynx http://localhost:8984/ --dumpNo function found that matches the request.nicholas $ Ran the container as:root $ root...

View Article



docker: Error response from daemon: Conflict. The container name "/basexhttp"...

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 \> --publish...

View Article

cannot get bash prompt: Error response from daemon: Container foo is not running

A basic jetty container:CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES7c10b0ca16bd jetty "/docker-entrypoint.…" 21 seconds ago Up 18 seconds 8080/tcp, 0.0.0.0:80->800/tcp,...

View Article

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:~ $...

View Article

How to fix sed command to work in groovy

I have the following code which works in gitlab (without the sh part):sh '''mkdir ./pylintdocker run --rm --entrypoint=/usr/local/bin/pylint ${IMAGE_NAME}:${IMAGE_VERSION} --rcfile=.pylintrc...

View Article


create entry-point script to get all env variables starting with VUE_APP_ and...

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...

View Article

Command "git [command] --help" opens as HTML in my code editor - no output to...

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 the...

View Article

How can I get the Docker target platform inside the Build Environment /...

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...

View Article


How to use jhbuild on azure-hosted-mac without uninstalling homebrew

I try to update a mac-pipeline for an open source project.This project requires to build the dependencies over jhbuild.Currently, it uses a binary blob, which contains the jhbuild env and all prebuild...

View Article


Access vault secret from bash script

I am looking for help on a direction on where to go from here. I have a Hasicorp Vault server running and accessible over DNS (local). I need to have a script get a secret from it then use that secret....

View Article

Why does Jenkins Pipeline script returnStatus value not match status examined...

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}" def stdout = sh( script:...

View Article

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 following...

View Article

Automating the creation of an Apache virtual-host file specifically

When I create new web applications on my up-2-date Ubuntu-LAMP with Apache 2.4.x environment, I create their virtual-host files this...

View Article


How can I diagnose php cli command execution time inside a docker container

I've recently migrated an event subscription service called by a bash script from Ubuntu, into a Dockerised container.The Docker image I am using is: FROM php:7.1-apacheThe script itself is pretty...

View Article

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...

View Article


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: cmd: "echo...

View Article

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 allow...

View Article


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"...

View Article

how 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 Article

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 { withCredentials([...

View Article
Browsing all 48 articles
Browse latest View live




Latest Images