Tag : bash

I have docker services (postgresql,django,nodejs,etc) in the production. I want to replicate one table from that DB to new docker container without losing other tables, and when someone inserts data to the table which will be replicated , I want that data to be in replicated table too. So what I wanna do is to ..

Read more

Use-case: copy a file containing some creds from local machine directory to existing and already created Docker container/volume Per the documentation on using docker cp, I constructed my command line statement like this: docker cp mynodered:/Users/<myUserName>/Documents/nodered-volume/creds.json /data/creds.json However, I consistently get an error returned: invalid output path: directory "/data" does not exist Source: Docker..

Read more

I need to run a bash script using docker that requires some arguments to be passed to it. This is what my dockerfile looks like FROM harisekhon/ubuntu-java:8 ENV BASE_DIR="foobar" ARG FILE_PATH ARG ANOTHER_ARG # ######################## # irrelevant stuff removed # ######################## RUN chmod +x myscript.sh ENTRYPOINT [ "myscript.sh" ] CMD [ "sh", "-c", "${BASE_DIR}", "${FILE_PATH}", ..

Read more

I have a base image with bash 4.2 and I’d like to upgrade it to 5.1 I’ve attempted to unzip it and then set the path variable to that folder as such: RUN curl -o /tmp/bash-5.1.tar.gz ${BASH_URL}/bash/5.1/bash-5.1.tar.gz && tar -xvf /tmp/bash-5.1.tar.gz -C /usr/local/bin && rm /tmp/bash-5.1.tar.gz ENV PATH=/usr/local/bin/bash-5.1:$PATH However when I build the image all ..

Read more