Category : sh

I am facing one issue while running my shell script via crontab . I have some docker command inside my shell script which is given below. remove_logs.sh: #!/bin/sh echo "hello world " >> /Users/subhrajp/optical/microservices/optical/logfile.txt for ID in $(docker ps -a –format "{{.ID}}");do echo "container id : $ID" >> /Users/subhrajp/optical/microservices/optical/logfile.txt done When I am running this ..

Read more

So what I wanted to do is using "COPY script.sh script.sh" (copy script from hos to container and execute) but when executing script in container , seems this script is also executing on host machine. Below is Dockerfile : FROM almalinux/almalinux:latest RUN mkdir /opt/confluent RUN mkdir /opt/confluent-hub #Confluent Home ENV CONFLUENT_HOME=/opt/confluent ENV KAFKA_CONFIG=$KAFKA_CONFIG ENV ZOOKEEPER_CONFIG=$ZOOKEEPER_CONFIG ..

Read more

am working on an existing project and it has an URL inside the pipfile that i would like to change, once i modify it, upon running script my modifications are deleted and the Pipfile is restored/recreated I have tried a global research in the project of "rm" to see where the cleaning is done to ..

Read more